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
rcs: fix darwin build #59702
rcs: fix darwin build #59702
Conversation
@GrahamcOfBorg build rcs |
97b8bc1
to
10c2fa6
Compare
I've pushed a the corrected hardening configuration, but haven't yet managed to reproduce the t999 failure seen in ofborg. |
@GrahamcOfBorg build rcs |
I'll see if I can get the test case to print what failed, and then we can see what is failing under ofborg. |
858b25d
to
f11fd5d
Compare
This latest version includes verbose reporting on test failure. Let's see what's happening. |
Interesting: for commit f11fd5d4e8801df18e8a5a8a823332b16b700a3c, on my macOS 10.12 machine, I observed the following:
[1] with both sandbox=true and sandbox=false |
I have found reason the tests fail: there's an observable difference in the build environment. The difference can be seen with
Where rcs tests pass, this returns The test failure is a result of two different methods of determining the username. In rcs, it looks at, in order, This exact situation appears to have been observed in 2014: https://lists.gnu.org/archive/html/hydra-users/2014-12/msg00002.html |
Possible upstreamable solution: Remove the call to getlogin_r in getusername (src/b-excwho.c). This could fix other cases too, like 'sudo -u anotheruser rcs ...'. (Or maybe not, and it'll break other things. I didn't look or think too carefully. =X) I'm glad you were able to find the cause for the build weirdness. I guess |
f11fd5d
to
c5c4d59
Compare
Motivation for this change
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)