-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
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
{cc,bintools}-wrapper: Prevent NIX_HARDENING_ENABLE
clobbers
#354622
base: staging
Are you sure you want to change the base?
{cc,bintools}-wrapper: Prevent NIX_HARDENING_ENABLE
clobbers
#354622
Conversation
We've been doing the "suffix salt" for this variable like the others, but we never bothered setting role-specific variables in the setup hook. Translation from obscure gobbledygoop above: if you are using something like `buildPackage.stdednv.cc`, it might want (for the build platform) more formatting than the host platform supports, and then all hell breaks loose. Now the build platform-targetting compiler will use `NIX_HARDENING_ENABLE_FOR_BUILD` and there will be no conflict.
Any changes needed in |
@risicle That would be a good idea, but that should come separately. In the meantime it will just affect the host platform, which is fine. (And all of them during native compilation.) |
Just got around to testing if this PR builds the Linux kernel on aarch64-linux for LLVM. I seem to run into a weird failure:
I also tried removing that line and got a build failure in coreutils. This was done inside a |
I'm not sure how edits to three bash files would cause a nix eval error - guessing this is a merge/rebase conflict somewhere? |
Maybe but |
We've been doing the "suffix salt" for this variable like the others, but we never bothered setting role-specific variables in the setup hook.
Translation from obscure gobbledygoop: if you are using something like
buildPackage.stdednv.cc
, it might want (for the build platform) more formatting than the host platform supports, and then all hell breaks loose. Now the build platform-targetting compiler will useNIX_HARDENING_ENABLE_FOR_BUILD
and there will be no conflict.Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.