-
-
Notifications
You must be signed in to change notification settings - Fork 13.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
p11-kit: Fix builds on non-NixOS systems (single-user install) #278099
p11-kit: Fix builds on non-NixOS systems (single-user install) #278099
Conversation
@@ -63,6 +63,13 @@ stdenv.mkDerivation rec { | |||
])) | |||
]; | |||
|
|||
# Tests run in fakeroot for non-root users | |||
preCheck = '' | |||
if [ "$(id -u)" != "0" ]; then |
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.
Does this break things if we set this variable always? Otherwise people on just nixos cannot know, if it continue to works on other platforms.
Alsop lease follow the contributing guide when naming your commits.
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.
Thanks for such a speedy review!
Alsop lease follow the contributing guide when naming your commits.
Apologies, I believe it now follows the convention!
Does this break things if we set this variable always? Otherwise people on just nixos cannot know, if it continue to works on other platforms.
I haven't thought about this change too much, I'm just reverting it back to how it was before 3ca33e5#diff-6e5cbf6c584d88a4b8326fc03daf8650866eed33b1651b38ab379da599f57109L72-L77.
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 would skip the tests from running when building on NixOS/multi-user as well.
dcebe7b
to
2dbde03
Compare
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.
Could you please include the reference to the commit that removed it in the commit message itself so that the info is preserved for Git blame, without having to dig into GitHub?
Also please target the staging branch, since this will cause a mass rebuild. |
2dbde03
to
81dd140
Compare
81dd140
to
5ab9d67
Compare
Add back FAKED_MODE environment variable. This was removed in 3ca33e5, which caused tests to be run (and fail) that were previously skipped.
5ab9d67
to
a9323a3
Compare
Thanks. |
Add back FAKED_MODE environment variable. This was removed in 3ca33e5, which caused tests to be run (and fail) that were previously skipped. nixpkgs upstreaming PR: NixOS#278099
Description of changes
Discussed in #96715.
In 3ca33e5 the
FAKED_MODE
environment variable was no longer set. This causes tests to be run (and fail) that were previously skipped, see https://github.com/p11-glue/p11-kit/blob/81715a26a36599562793f5fe103b6bee1a141fdb/p11-kit/test-conf.c#L472-L473.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.