Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 573042 - virtual/jdk-1.8.0-r1 depends on dev-java/icedtea-bin:8 which is not in portage
Summary: virtual/jdk-1.8.0-r1 depends on dev-java/icedtea-bin:8 which is not in portage
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-26 19:31 UTC by Andrei Slavoiu
Modified: 2016-02-01 22:04 UTC (History)
0 users

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


Attachments
emerge --info (emerge.info,7.18 KB, text/plain)
2016-01-27 22:33 UTC, Andrei Slavoiu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrei Slavoiu 2016-01-26 19:31:19 UTC
emerge: there are no ebuilds to satisfy "dev-java/icedtea-bin:8".
(dependency required by "virtual/jdk-1.8.0-r1::gentoo" [ebuild])
(dependency required by "virtual/jre-1.8.0-r1::gentoo" [ebuild])
(dependency required by "dev-java/icedtea-web-1.6.1::gentoo" [installed])
(dependency required by "dev-java/icedtea-bin-7.2.6.4::gentoo[webstart]" [installed])
(dependency required by "virtual/jdk-1.7.0-r1::gentoo" [ebuild])
(dependency required by "dev-util/android-studio-1.5.1.0.141.2456560::gentoo" [installed])
(dependency required by "@selected" [set])
(dependency required by "@world" [argument])


Reproducible: Always
Comment 1 James Le Cuirot gentoo-dev 2016-01-26 20:15:02 UTC
Although repoman does raise a warning about this, it isn't considered a fatal error and it wasn't a mistake in this case. icedtea-bin:8 will be added to the tree soon. I don't know what you did to trigger that output but I suspect you masked oracle-jdk-bin.
Comment 2 Andrei Slavoiu 2016-01-27 22:17:31 UTC
What's invalid about this bug? If you plan to add dev-java/icedtea-bin:8 to portage then do so and close this as fixed. Otherwise remove the bogus dependencies and add them back when they exist in portage.

I don't have oracle-jdk-bin masked, that output is the expected behavior for portage since dev-java/icedtea-bin:8 is the first option listed.
Comment 3 James Le Cuirot gentoo-dev 2016-01-27 22:28:19 UTC
Well I did try to reproduce it but it simply chose oracle-jdk-bin instead. Please post your emerge --info.

I added this to the virtual ahead of time because there was a duplicate version in java-overlay where icedtea-bin:8 does exist.
Comment 4 Andrei Slavoiu 2016-01-27 22:33:05 UTC
Created attachment 424028 [details]
emerge --info
Comment 5 Andrei Slavoiu 2016-01-27 22:50:54 UTC
It looks like even though I didn't explicitly block oracle-jdk-bin it's blocked because of the EULA and fetch restrictions:

emerge -ptv dev-java/oracle-jdk-bin

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

Calculating dependencies... done!
[ebuild  N F   ] dev-java/oracle-jdk-bin-1.8.0.72-r1:1.8::gentoo  USE="alsa cups doc fontconfig -derby -examples -headless-awt -javafx -jce -nsplugin -pax_kernel (-selinux) -source" 177091 KiB
[ebuild  N F   ]  dev-java/java-sdk-docs-1.8.0.72:1.8::gentoo  91220 KiB

Total: 2 packages (2 new), Size of downloads: 268311 KiB
Fetch Restriction: 2 packages (2 unsatisfied)

Fetch instructions for dev-java/oracle-jdk-bin-1.8.0.72-r1:
 * 
 * Oracle requires you to download the needed files manually after
 * accepting their license through a javascript capable web browser.
 * 
 * Download the following files:
 *   jdk-8u72-linux-x64.tar.gz
 * at 'http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html'
 * and move them to '/usr/portage/distfiles'
 * 
 * If the above mentioned urls do not point to the correct version anymore,
 * please download the files from Oracle's java download archive:
 * 
 *    http://www.oracle.com/technetwork/java/javase/downloads/java-archive-javase8-2177648.html#jdk-8u72-oth-JPR
 * 

Fetch instructions for dev-java/java-sdk-docs-1.8.0.72:
 * Please download jdk-8u72-docs-all.zip from 
 * http://www.oracle.com/technetwork/java/javase/documentation/jdk8-doc-downloads-2133158.html
 * (agree to the license) and place it in /usr/portage/distfiles
 * If you find the file on the download page replaced with a higher
 * version, please report to the bug 67266 (link below).
 * If emerge fails because of a checksum error it is possible that
 * the upstream release changed without renaming. Try downloading the file
 * again (or a newer revision if available). Otherwise report this to
 * https://bugs.gentoo.org/67266 and we will make a new revision.

The following license changes are necessary to proceed:
 (see "package.license" in the portage(5) man page for more details)
# required by dev-java/oracle-jdk-bin (argument)
>=dev-java/oracle-jdk-bin-1.8.0.72-r1 Oracle-BCLA-JavaSE
Comment 6 James Le Cuirot gentoo-dev 2016-01-27 23:01:52 UTC
I don't think the fetch restriction is relevant but yes, I was about to post about the license issue myself.

Admittedly the license error is more helpful and I didn't consider that oracle-jdk-bin could be masked indirectly like this. I'm also surprised to learn that oracle-jdk-bin is therefore masked by default.

I do intend to add icedtea-bin:8 in the next day or two though so I'll leave it be and close this when done.
Comment 7 Andrew John Hughes 2016-01-27 23:35:25 UTC
A workaround for now would be to turn on the Java overlay which includes dev-java/icedtea:8, which also resolves the dependency:

$ emerge -v layman
$ layman -a java

Will that be added to the main tree too, James?
Comment 8 James Le Cuirot gentoo-dev 2016-02-01 22:04:57 UTC
Even adding the ebuilds didn't resolve this. I've filed bug #573500 about this and made what adjustments I can to virtual/jdk to work around this in the meantime.