dev-java/sun-jdk-1.6.0.35 has DEMOS 34 rather than 35 in ebuild This prevent building with demos Reproducible: Always Steps to Reproduce: 1. Download jdk-6u35-linux-i586.bin and jdk-6u35-linux-i586-demos.tar.gz to distfiles folder 2. Set examples use flag for dev-java/sun-jdk 3. emerge -av =dev-java/sun-jdk-1.6.0.35 Actual Results: Fails to emerge requesting download. Expected Results: emerge succeeds.
Created attachment 323766 [details, diff] ebuild patch
Created attachment 323768 [details, diff] Manifest patch
I am having the same issue. Proposed patches attached.
The ebuild requires the demos from 1.6.0.34 for download. If you do download them, the install fails when it tries to compile the 1.6.0.35 demos, which have not been unpacked into the work area, even if they are on your system.
Trying to emerge sun-jdk-1.6.0.35, I got today the information to download jdk-6u34-linux-i586-demos.tar.gz from http://www.oracle.com/technetwork/java/javase/downloads/jdk6u35-downloads-1836443.html: >>> Emerging (1 of 55) dev-java/sun-jdk-1.6.0.35 * jdk-6u35-linux-i586.bin SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ] !!! Previously fetched file: '/net/leopard/usr/portage_leopard/distfiles/jdk-6u34-linux-i586-demos.tar.gz' !!! Reason: Failed on SHA256 verification !!! Got: 5714deadec3d6bca4ba71a65146610940ca19da550032e025b46b830e1cef21a !!! Expected: 4da9460638afb9cb6ae1e48417b36a297feb455a01b9baf839cd815bca6fc2e6 Refetching... File renamed to '/net/leopard/usr/portage_leopard/distfiles/jdk-6u34-linux-i586-demos.tar.gz._checksum_failure_.x9Ec4t' ... * Also download jdk-6u34-linux-i586-demos.tar.gz from: * http://www.oracle.com/technetwork/java/javase/downloads/jdk6u35-downloads-1836443.html * and move it to /net/leopard/usr/portage_leopard/distfiles But there is not any jdk-6u34-linux-i586-demos.tar.gz at this site. I can only find jdk-6u35-linux-i586-demos.tar.gz.
I still can't emerge sun-jdk-1.6.0.35 on i686 systems. Any news?
Mark Finnegan's patches enabled me to successfully emerge sun-jdk-1.6.0.35 for an i586 system.
Using Mark Finnegan's patches I have successfully installed sun-jdk-1.6.0.35 on two i686 systems, soon to be three (the last one is my slowest box)
Oracle is playing games with us. The demos for 6u35 are now available. *sun-jdk-1.6.0.35-r1 (15 Oct 2012) 15 Oct 2012; Ralph Sennhauser <sera@gentoo.org> +sun-jdk-1.6.0.35-r1.ebuild: Demos now available for 6u35. #431492 #434990 Add back ia64 and examples for amd64. Add BSD to licenses for examples. Use QA_PREBUILT instead of individual variables. Fix desktop files for newer standard. Add elog about the name change to oracle-jdk-bin for JDK7.
On amd64 with dev-java/sun-jdk-1.6.0.35-r1 I get request to download jdk-6u35-linux-x64.bin all the time. Removing the 'examples' flags clears the issue. The main problem is that there is no info it wants DEMOS downloaded. The problem is these 2 parts: SRC_URI=" ... amd64? ( ${AMD64_AT} examples? ( ${AMD64_DEMOS} ) ) ... pkg_nofetch() { ... if use examples && ! use amd64; then einfo "" einfo "Also download ${DEMOS} from:" einfo "${JDK_URI}" einfo "and move it to ${DISTDIR}" fi ... It would be nice to either not check for the demos, or print something in the above code. As it is it's a misleading to put it gently... Sample of the output below: # ls -la /usr/portage/distfiles/jdk-6u35-linux-x64.bin -rw-rw-r-- 1 root portage 72039455 Oct 16 11:38 /usr/portage/distfiles/jdk-6u35-linux-x64.bin # emerge -pv sun-jdk These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild FU ~] dev-java/sun-jdk-1.6.0.35-r1 [1.6.0.35] USE="X alsa examples nsplugin source -derby -doc -jce -pax_kernel" 11,821 kB Total: 1 package (1 upgrade), Size of downloads: 11,821 kB Fetch Restriction: 1 package (1 unsatisfied) Fetch instructions for dev-java/sun-jdk-1.6.0.35-r1: * Due to Oracle no longer providing the distro-friendly DLJ bundles, the package * has become fetch restricted again. Alternatives are switching to * dev-java/icedtea-bin:6 or the source-based dev-java/icedtea:6 * * Please download jdk-6u35-linux-x64.bin from: * http://www.oracle.com/technetwork/java/javase/downloads/jdk6u35-downloads-1836443.html * and move it to /usr/portage/distfiles # flaggie dev-java/sun-jdk -examples # emerge -pv sun-jdk These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild fU ~] dev-java/sun-jdk-1.6.0.35-r1 [1.6.0.35] USE="X alsa nsplugin source -derby -doc -examples* -jce -pax_kernel" 0 kB Total: 1 package (1 upgrade), Size of downloads: 0 kB Fetch Restriction: 1 package
(In reply to comment #10) > [...] Sorry missed that one, thanks for the report, fixed in sun-jdk-1.6.0.37.ebuild.
Closing as sun-jdk-1.6.0.37 is stable. Thanks for the report.