Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 121695 - emerge --quiet on command line does not completely override --verbose in EMERGE_DEFAULT_OPTIONS
Summary: emerge --quiet on command line does not completely override --verbose in EMER...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Dependencies (show other bugs)
Hardware: x86 Linux
: High trivial (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 115839
  Show dependency tree
 
Reported: 2006-02-05 11:17 UTC by Rani
Modified: 2006-02-26 14:57 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 Rani 2006-02-05 11:17:36 UTC
revdep-rebuild uses emerge --pretend to find ebuilds; however, the package version is garbled when make.conf has EMERGE_DEFAULT_OPTS="--verbose":

~# cat /root/.revdep-rebuild.5_order
media-gfx/imagemagick-6.2.6.05,018kB
media-libs/libao-0.8.6-r2380kB

---

colinux 0.7.1, vanilla kernel 2.16.12.5
gentoo 1.12.0_pre5 
portage 2.1_pre4-r1
app-portage/gentoolkit-0.2.2_pre2

10x,
R.
Comment 1 Zac Medico gentoo-dev 2006-02-05 12:04:49 UTC
This is another manifestation of bug 118124.  Like Jason commented in that bug, revdep-rebuild can use --quiet in order to prevent USE flags from being displayed (even when --verbose is in EMERGE_DEFAULT_OPTS).
Comment 2 Paul Varner (RETIRED) gentoo-dev 2006-02-06 20:16:05 UTC
Re-assigning to dev-portage, since as a result of that bug that version of revdep-rebuild is using --quiet

Here is an example from my test run with EMERGE_DEFAULT_OPTS="--verbose"

emerge --nospinner --pretend --oneshot --nodeps --quiet =app-antivirus/clamav-0.88 =dev-lang/python-2.3.5-r2 =dev-libs/gmp-4.1.4-r3 =kde-base/kcalc-3.5.1
[ebuild   R   ] app-antivirus/clamav-0.88  0 kB
[ebuild   R   ] dev-lang/python-2.3.5-r2  7,060 kB
[ebuild   R   ] dev-libs/gmp-4.1.4-r3  0 kB
[ebuild   R   ] kde-base/kcalc-3.5.1  0 kB

Total size of downloads: 7,060 kB

With EMERGE_DEFAULT_OPTIONS unset:

emerge --nospinner --pretend --oneshot --nodeps --quiet =app-antivirus/clamav-0.88 =dev-lang/python-2.3.5-r2 =dev-libs/gmp-4.1.4-r3 =kde-base/kcalc-3.5.1
[ebuild   R   ] app-antivirus/clamav-0.88
[ebuild   R   ] dev-lang/python-2.3.5-r2
[ebuild   R   ] dev-libs/gmp-4.1.4-r3
[ebuild   R   ] kde-base/kcalc-3.5.1

Since EMERGE_DEFAULT_OPTIONS is being set in /etc/make.conf, I can't override and/or unset it from within revdep-rebuild
Comment 3 Brian Harring (RETIRED) gentoo-dev 2006-02-07 01:32:31 UTC
I'm thinking allowing env overrides for this...
not the best, but it'll solve the issue.  Sound good?  If so, patch? :)
Comment 4 Jason Stubbs (RETIRED) gentoo-dev 2006-02-07 02:21:46 UTC
EMERGE_DEFAULT_OPTS="" emerge ... should work already because it's not an incremental.

Regardless, --verbose --quiet showing file size info is definitely a bug.
Comment 5 Paul Varner (RETIRED) gentoo-dev 2006-02-07 13:32:01 UTC
(In reply to comment #4)
> EMERGE_DEFAULT_OPTS="" emerge ... should work already because it's not an
> incremental.

It does not work as I already tried it.

garath # EMERGE_DEFAULT_OPTIONS="" emerge -p --quiet gmp
[ebuild     U ] dev-libs/gmp-4.1.4-r3 [4.1.4] 1,641 kB
Comment 6 Jason Stubbs (RETIRED) gentoo-dev 2006-02-07 15:47:47 UTC
s/OPTIONS/OPTS/
Comment 7 Jason Stubbs (RETIRED) gentoo-dev 2006-02-07 15:54:50 UTC
The --verbose/--quiet/size bug is fixed, by the way.
Comment 8 Paul Varner (RETIRED) gentoo-dev 2006-02-07 16:10:52 UTC
(In reply to comment #6)
> s/OPTIONS/OPTS/

After typing it correctly, it does work and thanks for fixing.

Just to be safe do I need to plan on having 'EMERGE_DEFAULT_OPTS="" emerge ...' in the next version of revdep-rebuild?
Comment 9 Jason Stubbs (RETIRED) gentoo-dev 2006-02-07 23:44:32 UTC
Probably a good idea to do it on any calls that are used internally.
Comment 10 Zac Medico gentoo-dev 2006-02-12 00:01:17 UTC
I've added a new emerge --ignore-default-opts option in trunk (revision 2696, for release in 2.1_pre5).
Comment 11 Zac Medico gentoo-dev 2006-02-26 14:57:52 UTC
Released in 2.1_pre5 with note about overriding EMERGE_DEFAULT_OPTS in RELEASE-NOTES.