-
-
Notifications
You must be signed in to change notification settings - Fork 18.3k
busybox-static: init #341780
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
base: master
Are you sure you want to change the base?
busybox-static: init #341780
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -26041,12 +26041,8 @@ with pkgs; | |
| overrideCC stdenv buildPackages.llvmPackages.clangNoLibcxx | ||
| else stdenv; | ||
| }; | ||
| busybox-sandbox-shell = callPackage ../os-specific/linux/busybox/sandbox-shell.nix { | ||
| # musl roadmap has RISC-V support projected for 1.1.20 | ||
| busybox = if !stdenv.hostPlatform.isRiscV && !stdenv.hostPlatform.isLoongArch64 && stdenv.hostPlatform.libc != "bionic" | ||
| then pkgsStatic.busybox | ||
| else busybox; | ||
| }; | ||
| busybox-static = busybox.override { enableStatic = true; }; | ||
| busybox-sandbox-shell = callPackage ../os-specific/linux/busybox/sandbox-shell.nix { }; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Busybox is used by
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If that was true, how would this have worked in the
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also, @szlend, this kind of contradicts the comment you added in https://github.com/NixOS/nixpkgs/pull/314845/files#diff-baf2a52d7f904b2863c773307b5c8fd5969e0da50b97b696ead87818f001c710R9-R11. Essentially this PR just takes it a step further and follows through on that comment.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think this is true. Just because libc can access some paths, it doesn't mean that the shell will want to, and in fact I'd say it's extremely unlikely.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You might be right, it's possible failing to find those references (e.g. glibc locales) is not fatal, but it still feels wrong to have broken
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: The |
||
|
|
||
| cachefilesd = callPackage ../os-specific/linux/cachefilesd { }; | ||
|
|
||
|
|
||
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.
I confirmed that removing the whole
prePatchmakes the build for gns3-server fail, but usingbusybox-statickeeps it working, so this change should be good!