Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 12682 - portage: make some ports un-unmergeable
Summary: portage: make some ports un-unmergeable
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All All
: Highest normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
: 33521 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-12-25 00:22 UTC by Dylan Carlson (RETIRED)
Modified: 2011-10-30 22:21 UTC (History)
6 users (show)

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


Attachments
The patch (warning_sys_profile.diff,1.10 KB, patch)
2003-09-16 19:26 UTC, Carlos Castillo
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dylan Carlson (RETIRED) gentoo-dev 2002-12-25 00:22:15 UTC
(i looked for a DUPLICATE but didn't find one) ... so here's the story-- 
 
without giving it much thought, i was going to upgrade bash, but somewhat 
absent-mindedly i did a '# emerge unmerge bash' beforehand and i'm sure i don't need 
to tell you that it screwed the pooch. 
 
granted it was my own fault but i'm thinking that portage should incorporate some 
intelligence to know that some ports (regardless of version) should never, under any 
circumstances, be unmerged because they are common to all archs and so forth. 
 
bash is one of them. 
 
without bash, you can't compile, vipw fails (can't change a user's shell), etc etc.  turns 
into a minor nightmare.
Comment 1 Thomas Raschbacher gentoo-dev 2002-12-29 05:54:02 UTC
carpaski: checking dependencies when unmerging should  prevent this right? 
Comment 2 Robert Moss (RETIRED) gentoo-dev 2003-09-13 15:58:17 UTC
Would it be possible to solve this by preventing portage from unmerging anything recorded in the system profile? (As in, emerge system...) A check for that shouldn't be too hard to do, but it's probably beyond me :-(
Comment 3 Carlos Castillo 2003-09-16 19:26:23 UTC
Created attachment 17835 [details, diff]
The patch

This patch matches the package to be unmerged with the simple items in the
system profile. It gives the user an extended warning. It doesn't yet match
>portage-2.0.25 to portage-2.0.49-r3 (there isn't a function to do this in
portage.py easily, or at least that I could find)
Comment 4 Marius Mauch (RETIRED) gentoo-dev 2003-11-14 17:33:53 UTC
*** Bug 33521 has been marked as a duplicate of this bug. ***
Comment 5 Simon Cooper 2004-01-11 14:50:54 UTC
another option is creating a binary package of critical packages (eg glibc, gcc, bash, portage...) and then if you bork something boot onto the livecd, extract the package into / and reboot
Comment 6 Nicholas Jones (RETIRED) gentoo-dev 2004-04-13 18:06:57 UTC
Added the warning in. :)
Comment 7 Nicholas Jones (RETIRED) gentoo-dev 2004-10-22 08:47:59 UTC
Bug has been fixed and released in stable portages on or before 2.0.51-r2