Summary: | sys-apps/portage-2.1.5_rc7 suggests unneeded downgrades | ||
---|---|---|---|
Product: | Portage Development | Reporter: | Marco Leogrande <dark.knight.ita> |
Component: | Core | Assignee: | Portage team <dev-portage> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | armin76, casta |
Priority: | High | Keywords: | InVCS, REGRESSION |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 216231 | ||
Attachments: |
Output of 'emerge -up app-office/dia --debug'
prevent unneeded downgrades |
Description
Marco Leogrande
2008-05-06 23:02:47 UTC
The most likely explanation is that the lower version is being pulled in as a dependency of some other package. Please post --debug output for one of the commands that results in a downgrade. emerge -up app-office/dia --debug > debug.log 2>&1 (In reply to comment #1) > The most likely explanation is that the lower version is being pulled in as a > dependency of some other package. Please post --debug output for one of the > commands that results in a downgrade. > > emerge -up app-office/dia --debug > debug.log 2>&1 > I'm not the original reporter, but I have a _very_ simple example, from the commandline: emerge -uvp --debug mailbase myaction None myopts {'--pretend': True, '--debug': True, '--update': True, '--verbose': True} These are the packages that would be merged, in order: Calculating dependencies ebuild: net-mail/mailbase-0.00-r6 ebuild: net-mail/mailbase-0.00-r6 ^H^H... done! [ebuild UD] net-mail/mailbase-0.00-r6 [1] USE="(-pam%*)" 0 kB Total: 1 package (1 downgrade), Size of downloads: 0 kB It appears to not even consider the currently installed (i.e. latest) version! I hope this helps. I don't think that app-office/dia is a dependency of some other package, as it is a mere office application (and it is listed in my world file). I will attach debug.log. Created attachment 152217 [details]
Output of 'emerge -up app-office/dia --debug'
I seems as if the code path from the patch for bug #219369 is being triggered. What KEYWORDS do the installed versions have? cat /var/db/pkg/app-office/dia-0.96.1-r1/KEYWORDS cat /var/db/pkg/net-mail/mailbase-1/KEYWORDS dark@darkplace ~ $ cat /var/db/pkg/app-office/dia-0.96.1-r1/KEYWORDS ~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd Yes, when I installed app-office/dia, it was unstable. Hi, I just get the same problem with mailbase-1 Strangelly, I have no /var/db/pkg/net-mail/mailbase-1/KEYWORDS file. Such files should have been pulled by a portage version unpgraded after I installed this package ? If I reinstall manually this package (emerge -av1 =mailbase-1), I have now the missing KEYWORDS file and the problem vanishes I have the same problem in prefix (so far on Linux only), emerge -Dua world gives a huge list with all packages being suggested to be downgraded. I believe this behaviour started for me when I installed a portage based on revision 9962, coming from revision 9894. (In reply to comment #7) > Strangelly, I have no /var/db/pkg/net-mail/mailbase-1/KEYWORDS file. > Such files should have been pulled by a portage version unpgraded after I > installed this package ? IIRC <portage-2.1 did not record KEYWORDS in /var/db/pkg, so that could be the root problem here (on my server system only 184 of 334 installed packages have a KEYWORDS entry in vdb). Created attachment 152495 [details, diff]
prevent unneeded downgrades
If this patch is saved as /tmp/downgrade.patch, then it can be applied as follows:
patch /usr/lib/portage/bin/emerge /tmp/downgrade.patch
The patch provided above solves my problem and, at the moment, has no visible side effects. Thanks. confirmed to work in r10249 This is fixed in 2.1.5_rc8. |