Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 126575

Summary: revdep-rebuild not compatible with EMERGE_DEFAULT_OPTS
Product: Gentoo Linux Reporter: Joël <world.root>
Component: New packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED WORKSFORME    
Severity: normal CC: strowi
Priority: High    
Version: 2005.1   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Joël 2006-03-17 11:36:33 UTC
I recently added the following line in /etc/make.conf:

EMERGE_DEFAULT_OPTS="-v"

With this option and a recent ~x86 portage version (eg: 2.1_pre6-r3), the revdep-rebuild tool breaks.

The reason, I think, is that it uses the "emerge" command with specific flags, and parses its output. Because of EMERGE_DEFAULT_OPTS, the output can change. In my case, for example, it receives info about USE flags that it doesn't expect.

Workaround: don't use EMERGE_DEFAULT_OPTS with revdep-rebuild

Solution:
(a) adding a flag to emerge, like --clear-opts, which ignores EMERGE_DEFAULT_OPTS
(b) change every call in revdep-rebuild to call emerge as follows: 'EMERGE_DEFAULT_OPTS="" emerge xyz'
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-03-17 11:44:15 UTC
Works just fine with gentoolkit-0.2.2_pre3
Comment 2 Joël 2006-03-17 11:55:57 UTC
Sorry.. yes, I stupidly forgot to update gentoolkit (version 0.2.1 was still installed).

Thanks :-)
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-06-22 05:57:14 UTC
*** Bug 137570 has been marked as a duplicate of this bug. ***