Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 267972 - sys-apps/portage-2.1.6.11: newuse and binpkg do not work together
Summary: sys-apps/portage-2.1.6.11: newuse and binpkg do not work together
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 210077 268228
  Show dependency tree
 
Reported: 2009-04-30 11:03 UTC by sf
Modified: 2009-05-02 02:45 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge--info,4.31 KB, text/plain)
2009-04-30 11:05 UTC, sf
Details
fix USE comparison for binary packages (newuse.patch,543 bytes, patch)
2009-04-30 19:44 UTC, Zac Medico
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.