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: | Core | Assignee: | 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
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. (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 ? 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. 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 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 ? 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. 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. *** Bug 383323 has been marked as a duplicate of this bug. *** |