Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 6127 - Some dep-clean / unmerge troubles portage-2.0.25
Summary: Some dep-clean / unmerge troubles portage-2.0.25
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: x86 Linux
: Highest critical (vote)
Assignee: Dave Nellans
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 6020
  Show dependency tree
 
Reported: 2002-08-06 19:50 UTC by Adrian Almenar
Modified: 2011-10-30 22:18 UTC (History)
4 users (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 Adrian Almenar 2002-08-06 19:50:21 UTC
i write emerge search glibc then i get:
*  sys-libs/glibc
      Latest version Available: 2.2.5-r5
      Latest version Installed: 2.2.5-r5
      Homepage: http://www.gnu.org/software/libc/libc.html
      Description: GNU libc6 (also called glibc2) C library

Great i have the latest version.



later i execute dep-clean then i get:

green-highlight:
app-text/dgs-0.5.10-r1
dev-java/ant-1.5
dev-libs/mm-1.2.1
gnome-base/ORBit-0.5.16
gnome-base/gconf-1.2.0-r4
gnome-base/libglade-2.0.0
media-gfx/imagemagick-5.4.7
net-libs/libpcap-0.7.1
sys-apps/baselayout-1.7.8-r1
sys-devel/gcc-2.95.3-r5
sys-libs/glibc-2.2.5-r2


yellow highlight:
dev-java/ant-1.5
sys-apps/baselayout-1.7.8-r1
sys-devel/gcc-2.95.3-r5
 

red highlight:
gnome-base/ORBit-0.5.17
gnome-base/gconf-1.2.0-r5
gnome-base/libglade-2.0.0-r1



OK, as the emerge search glibc told me that i have version 2.2.5-r5 i proceed to
unmerge version glibc-2.2.5-r2 (on the yellow and green highlight).

--------------------------------------------------------------------------

# emerge unmerge sys-libs/glibc-2.2.5-r2 

 sys-libs/glibc
    selected: 2.2.5-r2
   protected: none
     omitted: 2.2.5-r5

>>> Packages in red are slated for removal.
>>> Packages in green will not be removed.

--------------------------------------------------------------------------

and the system crashes, im unable to do ls,emerge,anything then later its unable
to boot and i need to reinstall

its this a bug or what ??

what exactly means the red,green,yellow highlights on dep-clean, cause
baselayout its on green (man says its unneeded) and the system crashes too if it
gets unmerged.

Thanks
Comment 1 John Davis (zhen) (RETIRED) gentoo-dev 2002-08-07 09:49:45 UTC
I would go along with you and say that this is a bug. Taking glibc off of your 
system will definately bork it up ;-) I did that once upgrading manually back 
in the day.
I am guessing this is a portage bug? I am wondering though why you would want 
to remove glibc...

//Davis
Comment 2 Adrian Almenar 2002-08-07 11:05:16 UTC
i just wanted to remove the OLD glibc as dep-clean reported.

but that just screw up my system.
Comment 3 Daniel Robbins (RETIRED) gentoo-dev 2002-08-18 20:00:25 UTC
This is a bug in dep-clean but not in Portage; emerge search displays the most
recent version installed, but it doesn't display the last version installed. 
dep-clean keeps the most recent version, which in your case was 2.2.5-r5, but
2.2.5-r2 was installed *after* the 2.2.5-r2 install, thus frying your system.
I'm assigning this to Karl and I suggest that dep-clean is removed from the
gentoolkit package that he maintains since it isn't safe.  "emerge --clean" will
always do the safe thing; dep-clean (just found out about this script today)
does not do the right thing.
Comment 4 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2002-08-26 11:35:22 UTC
It'd be really nice if you had the time to whip up at least a work-around for
this one by 29th of August, so that we may in good conscience ship dep-clean
with the 1.4 Gentoo release.
Comment 5 Nicholas Jones (RETIRED) gentoo-dev 2002-10-24 14:43:42 UTC
dep-clean is now deprecated, as portage can handle this via
'emerge depclean'
Comment 6 Dave Nellans 2002-10-24 14:55:05 UTC
i'm not sure this is a mute issue, perhaps you can elaborate.  according to the
changelog for portage "emerge depclean" cleans out all packages which are not
explicitly installed (i assume this means in world or system) and are not
depended on by another explicitly installed package.

depclean's current functionality (including all the bugs i haven't dealt with
because with a broken wrist for the last month limits my ability to type
significanly) lists packages which are are installed but no longer in portage
(typically just outdated), all packages which are installed but can be upgraded
including packages which aren't explicitly installed, and packages which are
installed but were not installed explicitly nor are depended on by a explicitly
installed package (this is what the emerge depclean takes care of).

so for now i believe the best option will be to remove the 3rd function from
dep-clean as it is redundant as to what is in portage, and leave the other two
intact in an updated dep-clean which i'm going to get around to this week
hopefully when the cast comes off...

input appriciated
dave
Comment 7 Adrian Almenar 2002-12-19 11:33:06 UTC
this bug can be closed ??
Comment 8 Dave Nellans 2003-01-07 11:12:24 UTC
leave this open for now... i'm trying to get a feel if its worth updating
dep-clean or if we can drop it from toolkit as a whole, will decide within the
next week.
Comment 9 Dave Nellans 2003-01-26 23:47:55 UTC
Dep-clean has been decomissioned and i don't hear any barking so i'm closing all
dep-clean related bugs.  yell if you want it back!