Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 232345 - depclean should not unmerge webapps which are currently installed (with USE="vhosts")
Summary: depclean should not unmerge webapps which are currently installed (with USE="...
Status: RESOLVED DUPLICATE of bug 198200
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-19 15:21 UTC by Allen Brooker (AllenJB)
Modified: 2008-07-20 22:35 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Allen Brooker (AllenJB) 2008-07-19 15:21:24 UTC
(When using USE="vhosts",) emerge --depclean will suggest unmerging older versions of web applications even if they're installed to locations using webapp-config.

I'd like to have depclean not suggest webapps for uninstallation if they have installations via webapp-config.

Perhaps this could be a FEATURES option.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2008-07-19 16:10:06 UTC
Perhaps depclean is flawed by design and you shouldn't use it as such.
Perhaps depclean should imply --pretend because of the minor number of cases where it actually yields exactly what you wanted.
Perhaps the Portage developers can explain in more detail why the package manager cannot or should not make exemptions based on conditions beyond its control (i.e. after merging and before unmerging. :)
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2008-07-19 16:30:09 UTC
And another one... Perhaps webapp-config is flawed.
Comment 3 Allen Brooker (AllenJB) 2008-07-19 16:34:10 UTC
I find that in most cases declean does exactly what I want it to (and I have --ask in my default emerge options, so I always get to check the list). This is just a suggested feature to, in my view, make it work even better.

While if the issue reported in my other bug (#232333) is intended, I would consider this a very highly desired feature, even if #232333 isn't intentional and is fixed, I would still like this feature.
Comment 4 Zac Medico gentoo-dev 2008-07-19 23:05:29 UTC
Perhaps this is a variant of bug 198200. The recommended practice is to run `emerge --noreplace =cpv` to have an atom for a specific slot added to the world file so that the package won't be removed by depclean.
Comment 5 Carsten Lohrke (RETIRED) gentoo-dev 2008-07-20 17:39:34 UTC
(In reply to comment #2)
> And another one... Perhaps webapp-config is flawed.
> 

To install multiple revisions of ebuilds side by side to the degree webapps SLOT=$PVR implies or toolchains multislot "feature" is indeed conceptually broken, misuse of the package manager as sidestepping any security efforts. However, as always it's matter of perception.


That --depclean doesn't see package:slot (how about coining this e.g. "sub-package"?) as individual entities is indeed a bug,though. And this will hit lots of innocent users when KDE 4 gets unmasked, so it would be nice to ses a fixed Portage version soon.
Comment 6 Zac Medico gentoo-dev 2008-07-20 22:35:16 UTC
As far as I can see this is a duplicate of bug 198200. If this is not the case then please reopen with an explanation.

*** This bug has been marked as a duplicate of bug 198200 ***