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

Bug 307023

Summary: revdep-rebuild passes --usepkg to emerge
Product: Portage Development Reporter: Albert W. Hopkins <marduk>
Component: ToolsAssignee: Portage Tools Team <tools-portage>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 237964    

Description Albert W. Hopkins 2010-02-27 00:22:10 UTC
I have the following in my make.conf:

  EMERGE_DEFAULT_OPTS="--keep-going --quiet-build --usepkg --jobs=3"

But I don't want --usepkg used in revdep-rebuild (for obvious reasons).  I run revdep-rebuild like this:

    # revdep-rebuild -i -- --keep-going --ignore-default-opts --jobs \
        --load-average=9.0 --usepkg=n

Even when I explicitely pass "--usepkg=n" to revdep-rebuild. It calls emerge like this:

    emerge --oneshot --keep-going --ignore-default-opts --jobs \
        --load-average=9.0 -- usepkg=n --keep-going --quiet-build \
        --usepkg --jobs=3 net-news/liferea:0

Notice it puts my EMERGE_DEFAULT_OPTS *after* my command-line opts, so they always take precedence. 

So basically I have to remember to comment out EMERGE_DEFAULT_OPTS in make.conf in order for revdep-rebuild to work.

This is gentoolkit-0.3.0_rc9
Comment 1 Christian Ruppert (idl0r) gentoo-dev 2010-04-01 15:07:26 UTC
Albert, EMERGE_DEFAULT_OPTS are now before EMERGE_OPTIONS so you should be able to overwrite them.
You can test it in app-portage/gentoolkit-9999 or wait until app-portage/gentoolkit-0.3.0_rc10 will be released.
Thanks!
Comment 2 Christian Ruppert (idl0r) gentoo-dev 2010-04-06 10:00:44 UTC
This bug has been fixed in app-portage/gentoolkit-0.3.0_rc10, thanks for reporting this issue.