Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

thin-provisioning-tools: 0.7.6 -> 0.9.0 #96010

Merged

Conversation

baloo
Copy link
Member

@baloo baloo commented Aug 22, 2020

Motivation for this change

thin-provisinoning-tool 0.9.0 includes some fixes regarding static builds.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

Copy link
Member

@vcunat vcunat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems good. NEWS

@vcunat vcunat merged commit db91969 into NixOS:master Sep 1, 2020
extraPrefix = ""; # empty means add 'a/' and 'b/'
})
];
buildInputs = [ expat libaio boost binutils ];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is binutils needed? This makes this package target-sensative, i.e. varying the target platform while keeping build and host constant changes the hash.

Copy link
Member Author

@baloo baloo Feb 27, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I remember correctly, that was to get a static build of it. But I guess I should have done something like:

buildInputs = [ expat libaio boost ] ++ lib.optional stdenv.hostPlatform.isStatic binutils;

instead.

I'll try to reproduce and get a PR in to fix that.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants