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

Bug 107241

Summary: unmerge python version says one version protected then removes all versions
Product: Portage Development Reporter: Nathan West <muppetsareus>
Component: Core - Interface (emerge)Assignee: Portage team <dev-portage>
Status: RESOLVED INVALID    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge info

Description Nathan West 2005-09-26 00:22:00 UTC
emerge --info showed my system as having two versions of python installed
(dev-lang/python: 2.3.4-r1, 2.3.5).  Trying to remove one version with the
command   emerge -C "=dev-lang/python-2.3.4-r1" -p 
gave the output; 
dev-lang/python
    selected: 2.3.4-r1
   protected: none
     omitted: 2.3.5
Running the command then removed both 2.3.4-r1 and 2.3.5
See forum 
http://forums.gentoo.org/viewtopic-t-379071-highlight-.html

Reproducible: Always
Steps to Reproduce:
1. Recover system from backup tarball (untar stage3, untar system tarball)
2. execute emerge -C "=dev-lang/python-2.3.4-r1" -p
3. emerge -C "=dev-lang/python-2.3.4-r1"

Actual Results:  
preview listed dev-lang/python-2.3.4-r1 as being selected and
dev-lang/python-2.3.5 as being omitted then removed both versions.

Expected Results:  
removed version dev-lang/python-2.3.4-r1 only as stated.

Tarball used in recovery was stage3-pentium3-2005.1.tar.bz2.
The system backup extracted over the top of this could be sanitized and made
available if necessary.
Comment 1 Nathan West 2005-09-26 00:25:59 UTC
Created attachment 69250 [details]
emerge info
Comment 2 Jason Stubbs (RETIRED) gentoo-dev 2005-10-06 05:28:10 UTC
2.3.5 was omitted. The problem was that 2.3.4-r1 was installed after 2.3.5 
hence almost all python files were owned by the version you decided to 
uninstall. `emerge --clean dev-lang/python` is what you should have ran and is 
designed specifically so that the correct version is uninstalled.