View previous topic :: View next topic |
Author |
Message |
CaptainBlood Advocate
Joined: 24 Jan 2010 Posts: 3999
|
Posted: Fri Oct 11, 2024 8:09 pm Post subject: command line EMERGE_DEFAULT_OPTS partial cancelling? [work@] |
|
|
EMERGE_DEFAULT_OPTS="... --tree ..." in /etc/portage/make.conf here.
wiki
I feel quite dumb asking :
How to suspend the feature from command line when calling emerge?
Thks 4 ur attention, interest & support. _________________ USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Last edited by CaptainBlood on Sat Oct 12, 2024 12:09 am; edited 5 times in total |
|
Back to top |
|
|
grknight Retired Dev
Joined: 20 Feb 2015 Posts: 1993
|
Posted: Fri Oct 11, 2024 8:37 pm Post subject: |
|
|
Example.. emerge --tree=n Every emerge option, because it is parsed by python, can have --option=value to set or enable/disable anything. |
|
Back to top |
|
|
CaptainBlood Advocate
Joined: 24 Jan 2010 Posts: 3999
|
Posted: Fri Oct 11, 2024 8:46 pm Post subject: |
|
|
Nice, Couldn't get it from
Thks 4 ur attention, interest & support _________________ USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. " |
|
Back to top |
|
|
CaptainBlood Advocate
Joined: 24 Jan 2010 Posts: 3999
|
Posted: Fri Oct 11, 2024 9:48 pm Post subject: |
|
|
Oops here: Code: | emerge --tree=n 2>&1|tail -1
emerge: error: argument --tree: ignored explicit argument 'n' |
Am I missing something?
Thks 4 ur attention, interest & support. _________________ USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. " |
|
Back to top |
|
|
grknight Retired Dev
Joined: 20 Feb 2015 Posts: 1993
|
Posted: Fri Oct 11, 2024 10:17 pm Post subject: |
|
|
Looks like this is one exception to the rule. Most of the options can do this, but not tree for some reason. Certain options make sense not to be able to be reversible for the mode (like --sync).
Maybe this could be a feature request where it makes sense. |
|
Back to top |
|
|
CaptainBlood Advocate
Joined: 24 Jan 2010 Posts: 3999
|
Posted: Fri Oct 11, 2024 10:29 pm Post subject: |
|
|
Current one liner of a workaround: Code: | eval $(emerge --info|sed -E -n "s/^(.*)(--tree)(.*)$/\1\3/p") emerge --info|grep EMERGE_DEFAULT_OPTS |
I couldn't get it work without the eval
Almost first use case here
Any idea how to avoid it?
Thks 4 ur attention, interest & support. _________________ USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. " |
|
Back to top |
|
|
CaptainBlood Advocate
Joined: 24 Jan 2010 Posts: 3999
|
Posted: Fri Oct 11, 2024 10:52 pm Post subject: |
|
|
grknight wrote: | Looks like this is one exception to the rule. Most of the options can do this, but not tree for some reason. Certain options make sense not to be able to be reversible for the mode (like --sync).
Maybe this could be a feature request where it makes sense. | Sound too much of a lost cause, rather.
Thks 4 ur attention, interest & support. _________________ USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. " |
|
Back to top |
|
|
szatox Advocate
Joined: 27 Aug 2013 Posts: 3477
|
Posted: Fri Oct 11, 2024 11:31 pm Post subject: |
|
|
I see you came up with a very creative way to override config with env.
At this point, wouldn't it be easier to make default opts environmental variable an empty string and just provide the switches you want manually instead of running emerge twice and mangling the output with an almost unreadable regexp?
I wonder, why do you NEED to unset --tree? I know it changes output format, but I don't think it's supposed to change the result of requested operation in any way. Do I miss something? _________________ Make Computing Fun Again |
|
Back to top |
|
|
CaptainBlood Advocate
Joined: 24 Jan 2010 Posts: 3999
|
Posted: Fri Oct 11, 2024 11:45 pm Post subject: |
|
|
szatox wrote: | I see you came up with a very creative way to override config with env. | Possibly slightly better, Code: | eval $(emerge --info|sed -E -n "s/^(EMERGE_DEFAULT_OPTS=\".*)(--tree)(.*)$/\1\3/p") emerge --info|grep EMERGE_DEFAULT_OPTS | eval remains though
Thks 4 ur attention, interest & support. _________________ USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. " |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 23046
|
Posted: Sat Oct 12, 2024 12:19 am Post subject: |
|
|
You can use --ignore-default-opts to disable all the defaults. However, if you have some defaults that you want and some you do not (which is how I interpret the original question), then this disables too much. |
|
Back to top |
|
|
CaptainBlood Advocate
Joined: 24 Jan 2010 Posts: 3999
|
Posted: Sun Oct 13, 2024 4:47 pm Post subject: |
|
|
I must have been tired: Code: | EMERGE_DEFAULT_OPTS="$(emerge --info|sed -E -n 's/^EMERGE_DEFAULT_OPTS="(.*)(--tree)(.*)"$/\1\3/p')" emerge --info|grep EMERGE_DEFAULT_OPTS | is eval free.
Thks 4 ur attention, interest & support. _________________ USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. " |
|
Back to top |
|
|
|