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

Bug 267972

Summary: sys-apps/portage-2.1.6.11: newuse and binpkg do not work together
Product: Portage Development Reporter: sf <sf-gentoo>
Component: Core - Interface (emerge)Assignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal Keywords: InVCS
Priority: High    
Version: 2.1   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 210077, 268228    
Attachments: emerge --info
fix USE comparison for binary packages

Description sf 2009-04-30 11:03:21 UTC
This is what happens:

# emerge --nodeps -N1p dev-java/ant

These are the packages that would be merged, in order:

# emerge --nodeps -kN1p dev-java/ant

These are the packages that would be merged, in order:

[binary   R   ] dev-java/ant-1.7.1  USE="antlr bcel bsf commonslogging commonsnet javamail jdepend jsch log4j oro regexp resolver" 

# emerge --nodeps -kN1 dev-java/ant

>>> Emerging binary (1 of 1) dev-java/ant-1.7.1
 * ant-1.7.1.tbz2 size ;-) ...                                   [ ok ]
>>> Extracting info
>>> Extracting dev-java/ant-1.7.1

>>> Installing dev-java/ant-1.7.1
 * Since 1.7.1, the ant-tasks meta-ebuild has been removed and its USE
 * flags have been moved to dev-java/ant.
 * 
 * You may now freely set the USE flags of this package without breaking
 * building of Java packages, which depend on the exact ant tasks they need.
 * The USE flags default to enabled (except X, jai and jmf) for convenience.
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

 * GNU info directory index is up-to-date.

# emerge --nodeps -N1p dev-java/ant

These are the packages that would be merged, in order:

# emerge --nodeps -kN1p dev-java/ant

These are the packages that would be merged, in order:

[binary   R   ] dev-java/ant-1.7.1  USE="antlr bcel bsf commonslogging commonsnet javamail jdepend jsch log4j oro regexp resolver" 

... ad infinitum

Either the package should be rebuilt with new use flags or not be reinstalled at all.

Workaround:

# emerge --nodeps -1 dev-java/ant
Comment 1 sf 2009-04-30 11:05:38 UTC
Created attachment 189946 [details]
emerge --info
Comment 2 Zac Medico gentoo-dev 2009-04-30 19:06:59 UTC
I've seen this before. It's a quirk in the USE calculation, related to IUSE defaults, that can be solved by rebuilding the package so that it contains the latest IUSE.

I'll fix it to so that the IUSE of the binary package do not affect the calculation.
Comment 3 Zac Medico gentoo-dev 2009-04-30 19:44:29 UTC
Created attachment 189995 [details, diff]
fix USE comparison for binary packages

I think this patch fixes the specific issue that you're reporting. If the patch is saved as /tmp/newuse.patch, then it can be applied as follows:

  patch /usr/lib/portage/pym/_emerge/__init__.py /tmp/newuse.patch
Comment 4 Zac Medico gentoo-dev 2009-05-02 02:45:08 UTC
This is fixed in 2.1.6.12.