Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 250418

Summary: sys-apps/portage should display a warning when a specific version of a package is installed and this specific version is no longer available in the tree
Product: Portage Development Reporter: Fab <netbox253>
Component: CoreAssignee: Portage team <dev-portage>
Status: CONFIRMED ---    
Severity: normal CC: esigra, klaus.kusche
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=372005
https://bugs.gentoo.org/show_bug.cgi?id=452732
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 155723    

Description Fab 2008-12-09 18:23:49 UTC
Hi,

Following example : firefox-3.0.4-r1 defined in package.keywords, updating world
does nothing about it. If a security bug is discovered in 3.0.4-r1, firefox will
not be updated until a later stable version will not be available.

I know that I'm playing with ~arch, but I think that a warning should be enough
to force the user to make a choice : update the package.keywords to upgrade to
next version or downgrade the package.

Thanks.


# grep firefox /etc/portage/package.keywords
=www-client/mozilla-firefox-3.0.4-r1 ~x86

# emerge -pvuDN world

These are the packages that would be merged, in order:

Calculating dependencies... done!

Total: 0 packages, Size of downloads: 0 kB


# short-eix -e mozilla-firefox
mozilla-firefox 	2.0.0.18 ~3.0.4-r2





Same example with sys-apps/portage :

# grep portage /etc/portage/package.keywords
=sys-apps/portage-2.1.6_rc2 ~x86


# emerge -pvuDN world

These are the packages that would be merged, in order:

Calculating dependencies... done!

Total: 0 packages, Size of downloads: 0 kB


# short-eix -e portage
portage 		[P]2.1.1-r2 2.1.4.5 ~2.1.6 [M]~2.2_rc17


Reproducible: Always
Comment 1 Zac Medico gentoo-dev 2008-12-09 18:46:37 UTC
It's possible to use portage without a portage tree containing ebuilds, by using exclusively binary packages. Because of this, the warning that you suggest will not make sense for some users and therefore it should not be enabled by default.
Comment 2 Fab 2008-12-09 19:35:11 UTC
(In reply to comment #1)
> It's possible to use portage without a portage tree containing ebuilds, by
> using exclusively binary packages.
But in this case, is the following file exists ?
/var/db/pkg/www-client/mozilla-firefox-3.0.4-r1/mozilla-firefox-3.0.4-r1.ebuild

Is there a difference between emerged-built-packages and emerged-binary-packages in /var/db/pkg ?
Comment 3 Zac Medico gentoo-dev 2008-12-09 21:16:26 UTC
Binary packages do install an ebuild in /var/db/pkg, just like a normal ebuild does. However, you want a warning about ebuilds that don't exist in $PORTDIR (/usr/portage), so the ebuilds that exist in /var/db/pkg are irrelevant.
Comment 4 Fab 2008-12-09 22:37:29 UTC
Ok, I didn't know that the metadata were integrated to tbz2 files.
That's why I thought to /var/db/pkg.
After reading the following forum thread, I think I see the problem.
http://forums.gentoo.org/viewtopic-t-708730.html
Comment 5 Fab 2008-12-22 13:11:40 UTC
Correct me if I'm wrong : if PORTAGE_BINHOST is unset, emerge need a tree to update world. In this case you should be able to display a warning for missing ebuilds ?
Comment 6 Zac Medico gentoo-dev 2008-12-22 19:39:18 UTC
A PORTAGE_BINHOST setting isn't really a reliable indicator, since it's also possible to get similar results by sharing $PKGDIR over nfs. We'll have to give the user control over it by adding a configuration setting for the specific purpose of enabling/disabling the warning messages. For example, it could be an emerge option that the user configures via EMERGE_DEFAULT_OPTS, or a value that's specified in FEATURES. However, I'd prefer to add support for a new configuration file which we can use to control options such as this.
Comment 7 Zac Medico gentoo-dev 2008-12-23 00:15:32 UTC
I'm planning enable the warning whenever --usepkgonly is not enabled.

Also bug #252167 is related to this bug. Whenever --usepkgonly is not enabled, I'm planning to trigger automatic downgrades for ebuilds that no longer exist or have had keywords removed.
Comment 8 Zac Medico gentoo-dev 2020-03-03 21:49:03 UTC
*** Bug 383323 has been marked as a duplicate of this bug. ***