-
-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
gnupg: fix cross compilation #298001
gnupg: fix cross compilation #298001
Conversation
when `npth` upgraded 1.6 -> 1.7, the `npth-config` binary it previously provided was removed, and functionality folded into `gpgrt-config`. see: <https://github.com/gpg/npth/blob/417abd56fd7bf45cd4948414050615cb1ad59134/NEWS#L8>
Tested using |
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.
Ran into this issue too. gnupg was able to find gpgrt-config
in a native scenario because it was on $PATH
, being supplied as a buildInput. Specifying it directly in this way allows it to be found in a cross scenario as well.
Tested native x86_64-linux
, aarch64-linux
, and x86_64-linux -> aarch64-linux
.
If possible it may also be a good idea to enable strictDeps. But make sure to verify native compilation for that. |
Is anyone running with this PR, and uses an openpgp smartcard or yubikey? I can't tell quite what's going on but EDIT: I don't have any idea what was going on but I have no issues after rebooting into the same generation. |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/why-does-nixos-rebuild-want-me-to-install-a-library/43733/14 |
when
npth
upgraded 1.6 -> 1.7, thenpth-config
binary it previously provided was removed, and functionality folded intogpgrt-config
. see: https://github.com/gpg/npth/blob/417abd56fd7bf45cd4948414050615cb1ad59134/NEWS#L8Description of changes
Things done
.#pkgsCross.aarch64-multiplatform.gnupg
)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.