-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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
wrapQemuBinfmtP: don't use pkgsStatic #341779
Conversation
There's no reason to bring in a whole cross toolchain just to build a zero-dependency C program.
@ofborg test systemd-binfmt |
# The wrapper has to be static so LD_* environment variables | ||
# cannot affect the execution of the wrapper itself. |
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.
Please check whether this comment is still applicable.
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.
How's that relevant to this PR? We're still building a static executable, just not via pkgsStatic.
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.
Ah. I didn't realize adding that to buildInputs would create a static binary 👍
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.
It doesn't, but passing -static
to the compiler does. You have to do this whether using pkgsStatic or not, so no change is needed here.
Description of changes
There's no reason to bring in a whole cross toolchain just to build a zero-dependency C program.
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.