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)
This test confirms the problem: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=d1a7dc427d000f5b5e85d5dc5cfa449346bdd7d4
This is fixed in git: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=b363b5342ac918f06e8752e702e68363d1388cdb
This is fixed in 2.1.11 and 2.2.0_alpha111.