Bug 626965
| Summary: | Upgrading gnupg2 removes /usr/bin/gpg | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Mark Wielaard <mjw> |
| Component: | gnupg2 | Assignee: | Rex Dieter <rdieter> |
| Status: | CLOSED WONTFIX | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | low | ||
| Version: | 13 | CC: | bcl, ericsbinaryworld, gholms, nalin, rambler8, rdieter, tmraz |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-06-28 14:03:10 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Mark Wielaard
2010-08-24 18:45:38 UTC
Note that it isn't easy to figure out you now also need to install the gnupg package since yum won't give you any hint:
$ sudo yum install /usr/bin/gpg
Loaded plugins: auto-update-debuginfo, fastestmirror, presto, refresh-
: packagekit, remove-with-leaves, rpm-warm-cache
Found 135 installed debuginfo package(s)
[...]
Setting up Install Process
Package matching gnupg2-2.0.14-2.fc13.i686 already installed. Checking for update.
Nothing to do
Rex, maybe gnupg2 should require gnupg? The output of yum install /usr/bin/gpg does not make any sense to me. Is that on system which already has installed gnupg2-2.0.14-6.fc13? Does it still happen after you do 'yum clean all'? Generally if the dependencies were right the switch back to gnupg should work fine. That means if evolution requires /usr/bin/gpg for signature checking, etc. the evolution (or its dependencies) should require it. Brian, perhaps on F13 we should have added it, although it does not make much sense to me as the 'damage' is already done. On F14 I am definitely against such requires as this would be only a workaround for missing proper requirements in other packages. I agree (if it's to be done, do for < f14 only). I'll try to find out why yum install /usr/bin/gpg doesn't do the right thing here (In reply to comment #3) > The output of yum install /usr/bin/gpg does not make any sense to me. Is that > on system which already has installed gnupg2-2.0.14-6.fc13? Does it still > happen after you do 'yum clean all'? Yes, that is with gnupg2-2.0.14-6.fc13 installed (and without gnupg installed). Doing a yum clean all doesn't change the message. The message is strange since it mentions an older version of the package gnupg2-2.0.14-2.fc13.i686. > Generally if the dependencies were right the switch back to gnupg should work > fine. That means if evolution requires /usr/bin/gpg for signature checking, > etc. the evolution (or its dependencies) should require it. evolution does indeed not appear to require gnupg[2]. It just prints "Error verifying signature Failed to execute gpg." on any email that has a gpg signature. Then I couldn't figure out why the gpg binary was missing (The above yum message is really confusing. It wasn't till I was filing this bug report that I noticed the gnupg package and I tried installing that to see if it happened to provide the gpg binary). But I also have local scripts that use the gpg binary. It is really confusing it got removed. Re: evolution's gpg support it must be considered optional enough that a dependency wasn't added for either gnupg or gnupg2 (if it were, then gnupg would've been pulled in when you updated). Anyway, spoke with seth (yum dude) on irc about the yum install /usr/bin/gpg oddity, and sounds like he's ok with fixing yum to do the right thing here (to pull in gnupg) okay so there's more going on here. I thought the issue was that newer gnupg2 was installed - and it PARTIALLY is. but the real problem is that the older gnupg2 obsoletes gnupg :( So when the pkgs are compared the older gnupg2 is at least a good ballpark. yum should fix this problem it is just less.... obvious :) not sure this is an EXCELLENT fix but it does seem to dtrt:
--- a/yum/depsolve.py
+++ b/yum/depsolve.py
@@ -1195,6 +1195,10 @@ class Depsolve(object):
# We get here from bestPackagesFromList(), give a giant
# bump to stuff that is already installed.
pkgresults[pkg] += 1000
+ elif newest.verGT(pkg):
+ # if the version we're looking at is older than what we have installed
+ # score it down like we would an obsoleted pkg
+ pkgresults[pkg] -= 1024
else:
# just b/c they're not installed pkgs doesn't mean they should
# be ignored entirely. Just not preferred
On a system that hasn't been updated yet and has gnupg2 (gnupg2-2.0.14-4.fc13.x86_64) installed and does not have gnupg installed: $ ls -al /usr/bin/gpg lrwxrwxrwx. 1 root root 4 Aug 18 13:25 /usr/bin/gpg -> gpg2 $ rpm -q --whatprovides /usr/bin/gpg gnupg2-2.0.14-4.fc13.x86_64 Are there backwards compatibility problems with gpg2? I haven't encountered any as long as the symlink from gpg -> gpg2 is in place for other packages that look for /usr/bin/gpg. If there aren't any other issues, I'm in favor of keeping the /usr/bin/gpg -> gpg2 symlink in the gnupg2 package and having gnupg2 obsolete gnupg rather than having to install both packages (In reply to comment #11) > Are there backwards compatibility problems with gpg2? I haven't encountered any > as long as the symlink from gpg -> gpg2 is in place for other packages that > look for /usr/bin/gpg. If there aren't any other issues, I'm in favor of > keeping the /usr/bin/gpg -> gpg2 symlink in the gnupg2 package and having > gnupg2 obsolete gnupg rather than having to install both packages Unfortunately there really are backwards compatibility problems which the gnupg2 upstream is not willing to fix. Most of the use cases work fine, but there are some edge cases where the gnupg2 behaves substantially differently. Most of these edge cases are related to addition of the gpg-agent to the game. The gnupg2 upstream moreover stated that gnupg2 does not obsolete gnupg and both of these packages have their own use cases and will be developed in the future. Although I am not happy with this decision of upstream as I think that with some effort gnupg2 could support almost everything in backwards compatible way with gnupg. Just updated to the latest Fedora 13 and this happened to me. Has the fix not yet been pushed to yum? There are multiple fixes needed - one fix in yum and one in evolution or gnupg2 (to require gnupg). The gnupg2 package with the added Requires was not yet even built. This message is a reminder that Fedora 13 is nearing its end of life. Approximately 30 (thirty) days from now Fedora will stop maintaining and issuing updates for Fedora 13. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as WONTFIX if it remains open with a Fedora 'version' of '13'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version prior to Fedora 13's end of life. Bug Reporter: Thank you for reporting this issue and we are sorry that we may not be able to fix it before Fedora 13 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora please change the 'version' of this bug to the applicable version. If you are unable to change the version, please add a comment here and someone will do it for you. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. The process we are following is described here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping Fedora 13 changed to end-of-life (EOL) status on 2011-06-25. Fedora 13 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. Thank you for reporting this bug and we are sorry it could not be fixed. |