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

Bug 420847

Summary: emerge --autounmask allows testing keywords when only a license is preventing emerge
Product: Portage Development Reporter: Ben Kohler <bkohler>
Component: Core - External InteractionAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal Keywords: InVCS
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 376695, 423075    

Description Ben Kohler gentoo-dev 2012-06-12 16:44:56 UTC
I noticed today that on a normal x86 stable, "emerge -pv sun-jdk" with autounmask on (as per defaults), it tries to pull a testing version.  I believe autounmask sees it needs to create a package.license entry to "unmask" but it goes ahead and allows ~x86 too.  And of course if the user goes ahead and uses --autounmask-write like portage encourages, it would allow testing for no good reason.

Remind me again why autounmask is turned on by default, instead of just saying "Masked by: foo license" and mentioning a relevant doc?


Reproducible: Always

Steps to Reproduce:
1.  emerge -pv sun-jdk

Actual Results:  
Out of the box on x86 stable:

# emerge -pv sun-jdk

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

Calculating dependencies... done!
[ebuild  N     ] dev-java/java-config-wrapper-0.16  8 kB
[ebuild  N     ] dev-java/java-config-2.1.11-r3  60 kB
[ebuild  N F  ~] dev-java/sun-jdk-1.6.0.32  USE="source -X -alsa -derby -doc -examples -jce -nsplugin" 70,065 kB
[ebuild  N     ] virtual/jdk-1.6.0  0 kB
[ebuild  N     ] virtual/jre-1.6.0  0 kB

Total: 5 packages (5 new), Size of downloads: 70,132 kB
Fetch Restriction: 1 package (1 unsatisfied)

The following keyword changes are necessary to proceed:
#required by virtual/jdk-1.6.0[-sparc-solaris,-sparc64-solaris,-x86-linux,-amd64-linux,-x86-solaris,-x64-solaris], required by virtual/jre-1.6.0, required by dev-java/java-config-2.1.11-r3
=dev-java/sun-jdk-1.6.0.32 ~x86

The following license changes are necessary to proceed:
#required by virtual/jdk-1.6.0[-sparc-solaris,-sparc64-solaris,-x86-linux,-amd64-linux,-x86-solaris,-x64-solaris], required by virtual/jre-1.6.0, required by dev-java/java-config-2.1.11-r3
>=dev-java/sun-jdk-1.6.0.32 Oracle-BCLA-JavaSE



Expected Results:  
When the license is allowed, things go as normal (no ~x86 suggested):

ACCEPT_LICENSE="Oracle-BCLA-JavaSE" emerge -pv sun-jdk

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

Calculating dependencies... done!
[ebuild  N     ] dev-java/java-config-wrapper-0.16  8 kB
[ebuild  N     ] dev-java/java-config-2.1.11-r3  60 kB
[ebuild  N F   ] dev-java/sun-jdk-1.6.0.31  USE="source -X -alsa -derby -doc -examples -jce -nsplugin" 83,294 kB
[ebuild  N     ] virtual/jdk-1.6.0  0 kB
[ebuild  N     ] virtual/jre-1.6.0  0 kB

Total: 5 packages (5 new), Size of downloads: 83,360 kB
Fetch Restriction: 1 package (1 unsatisfied)
Comment 3 Zac Medico gentoo-dev 2012-06-23 07:40:02 UTC
This is fixed in 2.1.11 and 2.2.0_alpha111.