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

Bug 5524

Summary: Portage wants to remove injected packages when using the clean option
Product: Portage Development Reporter: Cédric Paquot <cedric.paquot>
Component: UnclassifiedAssignee: Daniel Robbins (RETIRED) <drobbins>
Status: RESOLVED FIXED    
Severity: minor CC: cedric.paquot
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Cédric Paquot 2002-07-24 17:27:42 UTC
I have this version of rpm installed: app-arch/rpm-4.0.4-r2.  
Today I saw that a new revision was out (r3). As I don't need rpm (it's a  
dependency of kdeadmin) I injected app-arch/rpm-4.0.4-r3 to avoid this  
compilation.  
Now if I do an "emerge -p clean", portage wants to remove the -r3 version.  
  
I think that injected packages should not be cleaned if they are the newest  
version (and not the real one of course). So in my example, both version of  
rpm should be protected. 
 
I'm using portage 2.0.13.
Comment 1 Daniel Robbins (RETIRED) gentoo-dev 2002-07-26 14:16:18 UTC
OK, with Portage 2.0.19, injected packages will have a COUNTER file (so they
will not be unmerged by clean) but they don't have a SLOT so they will always
"stick" until they are manually unmerged.

Having them eventually auto-removed would require the user to specify a "slot"
when calling "emerge cat/pkg-v" which would be cumbersome.