-
-
Notifications
You must be signed in to change notification settings - Fork 15.4k
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
*-wrapper; Switch from infixSalt
to suffixSalt
#86166
Conversation
6e937f0
to
48263a1
Compare
04ae4ad
to
6765930
Compare
OK Linux stdenv builds, but on Darwin building Perl package
|
1c7a499
to
5a306aa
Compare
I hate the thing too even though I made it, and rather just get rid of it. But we can't do that yet. In the meantime, this brings us more inline with autoconf and will make it slightly easier for me to write a pkg-config wrapper, which we need.
<listitem> | ||
<para> | ||
The cc- and binutils-wrapper's "infix salt" and <literal>_BUILD_</literal> and <literal>_TARGET_</literal> user infixes have been replaced with with a "suffix salt" and suffixes and <literal>_FOR_BUILD</literal> and <literal>_FOR_TARGET</literal>. | ||
This matches the autotools convention for env vars which standard for these things, making interfacing with other tools easier. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In particular I am about to write a pkg-config wrapper for #86077
configureFlags="--parallel=''${NIX_BUILD_CORES:-1} CC=$BUILD_CC CXX=$BUILD_CXX $configureFlags" | ||
'' | ||
# CC_FOR_BUILD and CXX_FOR_BUILD are used to bootstrap cmake | ||
+ '' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't need to be split
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, but I like making the comments not change the hashes, so there's no perverse incentive to not keep the docs up to date.
@Ericson2314 this PR broke |
@Gaelan Thanks for noticing that! Yes do |
Will do. Also, this seems to make cross-compiled texinfoInteractive fail with a patch rejection; I haven’t figured out why this causes that. I’ll investigate more when I’m in front of my computer. |
This also broke |
This is due to a hint by @Ericson2314 in NixOS#86166 (comment)
This fixes NixOS#86166 to build cross compilied texinfoInteractive. BUILD_CC has been renamed to CC_FOR_BUILD so the patch needs to applied this renaming. tested on: pkgsCross.armv7l-hf-multiplatform.texinfoInteractive
Motivation for this change
I hate the thing too even though I made it, and rather just get rid of
it. But we can't do that yet. In the meantime, this brings us more
inline with autoconf and will make it slightly easier for me to write a
pkg-config wrapper, which we need.
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)