Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 120817 - esearch needs to compensate for EMERGE_DEFAULT_OPTS="--ask"
Summary: esearch needs to compensate for EMERGE_DEFAULT_OPTS="--ask"
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-29 07:13 UTC by Jose daLuz
Modified: 2006-05-25 20:44 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 Jose daLuz 2006-01-29 07:13:50 UTC
Now that portage (2.1_pre4) allows default emerge options to be set in make.conf, there's a possible issue with esearch/esync: if EMERGE_DEFAULT_OPTS="--ask", then esync, which captures console output from emerge --sync, will wait for user confirmation that will never come. It should either pass that request for confirmation on to the user or unset EMERGE_DEFAULT_OPTS for the duration of its run.
Comment 1 Timothy Kilbourn 2006-01-29 12:04:09 UTC
I agree. I think there should be a commandline switch to tell emerge to ignore the default opts. I realize it is possible to unset EMERGE_DEFAULT_OPTS for a given run of emerge, but having a --nodefaults flag or something similar would be cleaner.

In the past I aliased emerge to work with whatever commandline flags I wanted, and then it was a simple matter of using the absolute path to emerge to override the flags. It would be nice if portage could do something similar with the EMERGE_DEFAULT_OPTS variable.
Comment 2 Jason Stubbs (RETIRED) gentoo-dev 2006-01-29 15:26:42 UTC
EMERGE_DEFAULT_OPTS is not an incremental so this can be done by setting the var to empty in the environment in which emerge is started.
Comment 3 Jose daLuz 2006-01-29 15:43:04 UTC
(In reply to comment #2)
> EMERGE_DEFAULT_OPTS is not an incremental so this can be done by setting the
> var to empty in the environment in which emerge is started.
> 

I can confirm that works for me, and as I call esync from a script (that also updates my overlays) it's a good solution for me. Still, esync should be updated to do the same thing.
Comment 4 Alec Warner (RETIRED) archtester gentoo-dev Security 2006-05-25 20:44:59 UTC
Fixed in esearch-0.7.1-r3