Skip to content

treewide: move fixDarwinDylibNames to nativeBuildInputs#100388

Merged
LnL7 merged 2 commits intoNixOS:stagingfrom
thefloweringash:darwin-dylib-names-hook
Oct 21, 2020
Merged

treewide: move fixDarwinDylibNames to nativeBuildInputs#100388
LnL7 merged 2 commits intoNixOS:stagingfrom
thefloweringash:darwin-dylib-names-hook

Conversation

@thefloweringash
Copy link
Member

Motivation for this change

Hopefully simple cleanup. I discovered some inconsistencies when cross compiling where install_name_tool has a target prefix, and checked through the uses in the entire tree.

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.

@ofborg ofborg bot added the 6.topic: darwin Running or building packages on Darwin label Oct 13, 2020
@thefloweringash thefloweringash force-pushed the darwin-dylib-names-hook branch 3 times, most recently from 837c8e8 to 9488d79 Compare October 13, 2020 07:24
@ofborg ofborg bot added 10.rebuild-darwin-stdenv This PR causes stdenv to rebuild on Darwin and must target a staging branch. 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 5001+ This PR causes many rebuilds on Darwin and must target the staging branches. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 1001-2500 This PR causes many rebuilds on Linux and should target the staging branches. labels Oct 13, 2020
Copy link
Member

@LnL7 LnL7 left a comment

Choose a reason for hiding this comment

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

Looks good to me otherwise.

Copy link
Member

@LnL7 LnL7 Oct 13, 2020

Choose a reason for hiding this comment

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

This should never be propagated, that makes it impossible to build libraries with rpath or executable relative references when this is a dependency.

primeos added a commit that referenced this pull request Oct 16, 2020
llvmPackages_11: 11.0.0rc5 -> 11.0.0 and various fixes/improvements:
- llvmPackages_11 now compiles on Darwin
- libcxx now compiles on Linux
- Ported #91293 to 11.0.0
- Try to anticipate #100388
@FRidh
Copy link
Member

FRidh commented Oct 20, 2020

needs a rebase

This hook runs at build time and depends on executing
install_name_tool from binutils.
This package is a leaf that exports no libraries, so propagating its
inputs should have no effect.

The fixDarwinDylibNames hook only applies to *.dylib files, which this
package does not contain.
@thefloweringash thefloweringash force-pushed the darwin-dylib-names-hook branch from 4175101 to 5b5d38a Compare October 21, 2020 04:31
@thefloweringash
Copy link
Member Author

Rebased!

@LnL7 LnL7 merged commit bb0b872 into NixOS:staging Oct 21, 2020
@thefloweringash thefloweringash deleted the darwin-dylib-names-hook branch October 23, 2020 04:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: darwin Running or building packages on Darwin 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 5001+ This PR causes many rebuilds on Darwin and must target the staging branches. 10.rebuild-darwin-stdenv This PR causes stdenv to rebuild on Darwin and must target a staging branch. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 1001-2500 This PR causes many rebuilds on Linux and should target the staging branches.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants