Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 434990 - dev-java/sun-jdk-1.6.0.35[examples] fails because it has DEMOS 34 rather than 35 in ebuild
Summary: dev-java/sun-jdk-1.6.0.35[examples] fails because it has DEMOS 34 rather than...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-14 09:15 UTC by Norman Back
Modified: 2013-01-13 14:37 UTC (History)
5 users (show)

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


Attachments
ebuild patch (sun-jdk-1.6.0.35.ebuild.patch,441 bytes, patch)
2012-09-14 14:14 UTC, Mark Finnegan
Details | Diff
Manifest patch (Manifest.patch,8.45 KB, patch)
2012-09-14 14:16 UTC, Mark Finnegan
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Norman Back 2012-09-14 09:15:08 UTC
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.
Comment 1 Mark Finnegan 2012-09-14 14:14:58 UTC
Created attachment 323766 [details, diff]
ebuild patch
Comment 2 Mark Finnegan 2012-09-14 14:16:26 UTC
Created attachment 323768 [details, diff]
Manifest patch
Comment 3 Mark Finnegan 2012-09-14 14:18:48 UTC
I am having the same issue.  Proposed patches attached.
Comment 4 Ron OHara 2012-09-20 12:50:08 UTC
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.
Comment 5 Juergen Rose 2012-09-21 12:45:29 UTC
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.
Comment 6 Juergen Rose 2012-10-01 14:40:07 UTC
I still can't emerge sun-jdk-1.6.0.35 on i686 systems. Any news?
Comment 7 Ted Marston 2012-10-02 10:48:42 UTC
Mark Finnegan's patches enabled me to successfully emerge sun-jdk-1.6.0.35 for an i586 system.
Comment 8 Michael Sullivan 2012-10-03 03:13:07 UTC
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)
Comment 9 Ralph Sennhauser (RETIRED) gentoo-dev 2012-10-15 15:55:55 UTC
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.
Comment 10 Konrad Karczewski 2012-10-17 09:18:32 UTC
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
Comment 11 Ralph Sennhauser (RETIRED) gentoo-dev 2012-10-17 15:20:05 UTC
(In reply to comment #10)
> [...]

Sorry missed that one, thanks for the report, fixed in sun-jdk-1.6.0.37.ebuild.
Comment 12 Ralph Sennhauser (RETIRED) gentoo-dev 2013-01-13 14:37:09 UTC
Closing as sun-jdk-1.6.0.37 is stable. Thanks for the report.