Open danie-dejager opened 1 year ago
I had to install gnupg2
yum install gnupg2.x86_64 --allowerasing
The right command is actually:
sudo dnf swap gnupg2-minimal gnupg2
That said, we should probably not have a dangling symlink, so I'll mark this as a bug for us to track
Thanks for that. Is gpgv2
supposed to be a part of the minimal package?
gpgv2
is just a link to gpgv
which isn't currently part of our minimal package. The question is wether it should be, I'll let @stewartsmith chime in on that one
Yeah, we also just hit this on an internal thing too, so I'll now very much look at that thing which is a bug that's entirely my fault :)
I think the right correction here is to remove the symlink from the gnupg2-minimal
package, and then everything should "just work" when it needs gpgv
.
Shouldn't we have gpgv
in minimal though ? I would think we probably should...
We might want to look at the disk space usage of doing that, as gpg itself is ~1MB, and gpgv is an additional ~500k. Arguably I wish we could move everything doing signature verification over to gpgv rather than gpg, as that significantly reduces the footprint needed to verify signatures.
Unfortunately, our main use cases for it are:
For (1), it's probably going to nearly "just work" if we go and replace all the BuildRequires: gnupg2
in the spec files, although this should probably be first done in Fedora.
For (2), it's probably difficult to do in existing RPM given gpgme et-al, and perhaps not worth it considering newer RPM moves to rpm-sequoia instead.
Describe the bug I want to build some RPM files from source packages. These want to do gpg verification using gpgv2 but it fails. Interestingly I do have the file on disk but I cannot access it at all.
To Reproduce
No matter from where I run it I will get:
bash: gpgv2: command not found
Expected behavior I should be able to execute gpgv2 to verify source gpg signed files. The binary is not installed though as I show in the screenshot below.
Screenshots