-
-
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
libredirect tests fail for non-sandboxed, non-NixOS builds due to system() #164754
Comments
Something like (if which sh does not start with $store_root) might work. Note that the prefix is not / should not be hardcoded. |
I don't think that will work. Even without the sandbox, nix still removes The problem is that There are some details here: #236
However I think that because nixpkgs does not patch glibc, it needs to give derivations some kind of signal that "hey, |
Has there been any progress on this? I am running into this today inside of a Docker container based on
Single user install by a non-root user in the sudoers group. |
Please test #216342 |
Describe the bug
The tests for
nix-env -iA libredirect
fail in single-user (i.e. no sandbox) nixpkgs builds on systems where/bin/sh
comes from the host system rather than/nix/store
. This happens because the tests use the impuresystem()
call.Steps To Reproduce
Steps to reproduce the behavior:
nix-env -iA libredirect
Expected behavior
The
system()
tests should be skipped if an unsandboxed build environment is detected.I can't figure out how to determine, from within a derivation being built, if the build environment is sandboxed or not. If there is a reliable way to do this please let me know and I'll write the PR to close this bug.
The text was updated successfully, but these errors were encountered: