Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 265206 - sys-apps/portage-2.2_rc28: emerge --oneshot --unmerge (emerge -C1) removes package from world file
Summary: sys-apps/portage-2.2_rc28: emerge --oneshot --unmerge (emerge -C1) removes pa...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on: 259994
Blocks: 268228
  Show dependency tree
 
Reported: 2009-04-06 23:39 UTC by Denis Pesotsky
Modified: 2009-05-02 02:43 UTC (History)
0 users

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 Denis Pesotsky 2009-04-06 23:39:21 UTC
When doing emerge -C1 someapp, portage unemrges someapp AND removed it from world. I think, it must
1) Say that --oneshot can not be used with --unmerge option;
OR
2) Unmerge someapp and don't remove it from world.

I prefer №2.

Reproducible: Always

Steps to Reproduce:
1. emerge x11-themes/smplayer-themes (or any other package if nothing else depends on it)
2. emerge --oneshot --unmerge --ask x11-themes/smplayer-themes
3. emerge --update world

Actual Results:  
Nothing

Expected Results:  
Emerging x11-themes/smplayer-themes

Maybe it is bug, because in http://maple.rsvs.ulaval.ca/mediawiki/index.php/Portage_tips_and_tricks "emerge -C1" used for painless uninstalling the blocker package.

Maybe it is not bug. Becouse... man portage: "--oneshot: Emerge as normal, but do not add the packages to the world file for later updating". If it is not bug, change status of this bug to enchancement, please.
Comment 1 Dawid Węgliński (RETIRED) gentoo-dev 2009-04-06 23:45:46 UTC
Is there any reason portage should keep the package in worldfile and remove it from system? How would it handle situation while calculating dependencies afterwards and sees "hey, the package is installed, no need to pull it now"?

wtf?
Comment 2 Denis Pesotsky 2009-04-06 23:54:12 UTC
(In reply to comment #1)
> Is there any reason portage should keep the package in worldfile and remove it
> from system? How would it handle situation while calculating dependencies
> afterwards and sees "hey, the package is installed, no need to pull it now"?
> 
> wtf?
> 

Try to add any not-installed package to your world file and running emerge -u world. It will emerge this package.

It is useful at least in following situations:
1. Solving some blocks
2. Unmerging and mergin back many packages. For example, you can unmerge and then emerge kde and stuff after removing or adding kdeprefix use flag.
Comment 3 Denis Pesotsky 2009-04-06 23:58:14 UTC
(In reply to comment #2)
> (In reply to comment #1)
> > Is there any reason portage should keep the package in worldfile and remove it
> > from system? How would it handle situation while calculating dependencies
> > afterwards and sees "hey, the package is installed, no need to pull it now"?
> > 
> > wtf?
> > 
> 
> Try to add any not-installed package to your world file and running emerge -u
> world. It will emerge this package.
> 
> It is useful at least in following situations:
> 1. Solving some blocks
> 2. Unmerging and mergin back many packages. For example, you can unmerge and
> then emerge kde and stuff after removing or adding kdeprefix use flag.
> 

And I think that it is regression. According to link i've published upper, emerge -C1 worked as expected in older versions of portage.
Comment 4 Zac Medico gentoo-dev 2009-04-14 00:57:00 UTC
Rather than overload the meaning of --oneshot, I plan to solve this with a new --deselect option as described in bug #259994, comment #4.
Comment 5 Zac Medico gentoo-dev 2009-04-19 23:33:16 UTC
(In reply to comment #4)
> Rather than overload the meaning of --oneshot, I plan to solve this with a new
> --deselect option as described in bug #259994, comment #4.

This is in 2.2_rc31.
Comment 6 Zac Medico gentoo-dev 2009-05-02 02:43:41 UTC
This is fixed in 2.1.6.12.