-
-
Notifications
You must be signed in to change notification settings - Fork 17.5k
gnupg: fix availability of libexec tools #395155
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
Conversation
Yarny0
left a comment
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.
This looks good to me. Unfortunatelly, I can't judge on the purpose of those additional programs, but the for-loop was obviously broken and gets fixed here. I tested only superficially: The package still builds, and gpg -d still decrypts files.
Note: Due to the large number of package rebuilds, this pull request should probably be targeted to the staging branch -- maybe after being rebased onto a merge base of master and staging.
afh
left a comment
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.
Great find @octvs 💯
72663e5 to
4fda591
Compare
|
Unfortunatelly, I can't judge on the purpose of those additional programs,
Well, the use case I have is to imperatively unlock keys via
`gpg-preset-passphrase`, so that any process depending on them can run without
user input.
Note: Due to the large number of package rebuilds, this pull request should
probably be targeted to the `staging` branch -- [maybe after being rebased
onto a merge base of `master` and
`staging`](https://github.com/NixOS/nixpkgs/blob/b19d7721ae9325afb9ba3729a09a18d203ccd6e6/CONTRIBUTING.md#rebasing-between-branches-ie-from-master-to-staging).
Thanks for the information, done!
|
Yarny0
left a comment
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, looks good! Two automated GitHub tests are failing, but I can't see why. The diff should be alright.
stigtsp
left a comment
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.
Diff LGTM
|
Two automated GitHub tests are failing, but I can't see why. The diff should
be alright.
Yeah, I'm looking at the exact same cause, maybe I've messed up with the
being rebased onto a merge base of master and staging
part suggested above.
|
The diff looks fine to me, and Will run a local build/test |
4fda591 to
0d893d9
Compare
|
The diff looks fine to me, and should cause any eval breakage.
Did you mean "shouldn't" here?
Will run a local build/test
The failing tests passed now, as suspected it was somehow caused by the `rebase
to merge-base with staging` part, a fresh branch fixed the issue.
|
Woops, yep you are indeed right.
👍 |
fpletz
left a comment
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.
Just noticed the little typo but otherwise LGTM.
Correct typo on `postInstall` attribute of `gnupg` derivation. Commit 6f635e3 introduced a code snippet in `postInstall` to add libexec tools from gnupg (such as gpg-preset-passphrase) to `$out/bin/`, which would eventually appear on `PATH`. However with a minor typo, missing the necessary asterisk.
0d893d9 to
2c39ef9
Compare
Thanks, just fixed the commit msg as well! |
Correct typo on
postInstallattribute ofgnupgderivation.Commit 6f635e3 introduced a code snippet in
postInstallto add libexec tools from gnupg (such as gpg-preset-passphrase) to$out/bin/, which would eventually appear onPATH. However with a minor typo, missing the necessary asterisk.Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-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.