Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 287869 - add new emerge --select[=n] option for making --oneshot behavior default
Summary: add new emerge --select[=n] option for making --oneshot behavior default
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Configuration (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
: 707924 (view as bug list)
Depends on:
Blocks: 210077 288499
  Show dependency tree
 
Reported: 2009-10-06 09:17 UTC by Nils Stöckmann
Modified: 2020-02-02 23:00 UTC (History)
1 user (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 Nils Stöckmann 2009-10-06 09:17:05 UTC
Hi folks!

First of all, I'm somebody who compares different pieces of software at the same time and afterwards unmerges everything I don't need any more.
I also try around with experimental ebuilds a.s.o.

The consequence is I often emerge software that I don't want to keep on my system for long - I actually wish it would be cleaned after the next update using emerge --depclean.

So, there is the emerge --oneshot parameter for exact that use. However, I sometimes forget to set it, though I'm not sure I want to keep the software. 
So why not add an env variable, maybe within make.conf that allows to change the behavior of emerge to NOT record emerges in worldfile by DEFAULT.

Another parameter to emerge (maybe emerge -2 $EBUILD or emerge -0 $EUILD ) would be needed then to specify "i want to record this package within my world file".
Even if I forgot to set the specify parameter on a wanted piece of software emerge --depclean warns me before unmerging it.
Comment 1 Zac Medico gentoo-dev 2009-10-06 18:50:53 UTC
You can set EMERGE_DEFAULT_OPTS="--oneshot" in make.conf.

How about if we also add a --select=<y|n> option, to complement --deselect? We could make --select=n equivalent to --oneshot, and --select=y would be the opposite.
Comment 2 Nils Stöckmann 2009-10-06 19:30:47 UTC
it took me a few minutes to think about, but that sounds perfect.
--select=y would then be the method adding the atom to the worldfile and part of the default emerge process.

specifing "--select" on command line would override a specified --oneshot (i.e. within EMERGE_DEFAULT_OPTS) then and record the emerged atom after a successful merge.

If I understood you right and that's what you meant, I'd be perfectly fine with the idea.
Comment 3 Zac Medico gentoo-dev 2009-10-16 23:39:32 UTC
This is fixed in svn r14615.
Comment 4 Zac Medico gentoo-dev 2009-10-31 04:36:21 UTC
This is fixed in 2.1.7.2 and 2.2_rc47.
Comment 5 Zac Medico gentoo-dev 2020-02-02 23:00:39 UTC
*** Bug 707924 has been marked as a duplicate of this bug. ***