Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 100218 - ebuild for sun-jdk (j2sdk-1.4.2.08) for IA64 attempts to install the i586 binary.
Summary: ebuild for sun-jdk (j2sdk-1.4.2.08) for IA64 attempts to install the i586 bin...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: IA64 Linux
: High blocker (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-25 05:24 UTC by David Lennox
Modified: 2005-09-10 10:04 UTC (History)
1 user (show)

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


Attachments
Fixed ebuild (sun-jdk-1.4.2.08-r1.ebuild,6.76 KB, text/plain)
2005-07-25 12:19 UTC, Ortwin Glueck
Details
patch for sun-jdk-1.4.2.08-r1 (patch.diff,931 bytes, patch)
2005-07-27 10:41 UTC, Ortwin Glueck
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Lennox 2005-07-25 05:24:09 UTC
When attempting to emerge sun-jdk version 1.4.2.08 under IA64, the ebuild wants
the i586 verion of the sun install binary (j2sdk-1_4_2_08-linux-i586.bin),
rather than the IA64 binary (j2sdk-1_4_2_08-linux-ia64.bin)

Reproducible: Always
Steps to Reproduce:
1. added ">=dev-java/sun-jdk-1.4.2.08 -*" to /etc/portage/package.keywords
2. copy j2sdk-1_4_2_08-linux-ia64.bin into /usr/portage/distfiles
3. emerge sun-jdk

Actual Results:  
emerge fails with the following error:

 * Please download j2sdk-1_4_2_08-linux-i586.bin from:
 *
http://javashoplm.sun.com/ECom/docs/Welcome.jsp?StoreId=22&PartDetailId=j2sdk-1.4.2_08-oth-JPR&SiteId=JSC&TransactionId=noreg
 * (SDK 32-bit/64-bit for Windows/Linux/Solaris SPARC 32-bit for Solaris x86,
then select download Linux Self-extracting.
 * and move it to /usr/portage/distfiles


Expected Results:  
ebuild should have looked for the file j2sdk-1_4_2_08-linux-ia64.bin in
/usr/portage/distfiles and performed installation.

echidna distfiles # emerge sun-jdk
Calculating dependencies ...done!
>>> emerge (1 of 1) dev-java/sun-jdk-1.4.2.08 to /
!!! j2sdk-1_4_2_08-linux-i586.bin not found in /usr/portage/distfiles

!!! dev-java/sun-jdk-1.4.2.08 has fetch restriction turned on.
!!! This probably means that this ebuild's files must be downloaded
!!! manually.  See the comments in the ebuild for more information.

 * Please download j2sdk-1_4_2_08-linux-i586.bin from:
 *
http://javashoplm.sun.com/ECom/docs/Welcome.jsp?StoreId=22&PartDetailId=j2sdk-1.4.2_08-oth-JPR&SiteId=JSC&TransactionId=noreg
 * (SDK 32-bit/64-bit for Windows/Linux/Solaris SPARC 32-bit for Solaris x86,
then select download Linux Self-extracting.
 * and move it to /usr/portage/distfiles
Comment 1 Ortwin Glueck 2005-07-25 12:19:13 UTC
Created attachment 64289 [details]
Fixed ebuild

This ebuild should fix the problem. Please try it out.
Comment 2 David Lennox 2005-07-26 04:53:49 UTC
The following is not outputed:

echidna sun-jdk # ebuild sun-jdk-1.4.2.08-r1.ebuild digest
!!! jce_policy-1_4_2.zip not found in /usr/portage/distfiles

!!! dev-java/sun-jdk-1.4.2.08-r1 has fetch restriction turned on.
!!! This probably means that this ebuild's files must be downloaded
!!! manually.  See the comments in the ebuild for more information.

 * Please download j2sdk-1_4_2_08-linux-ia64.bin from:
 *
http://javashoplm.sun.com/ECom/docs/Welcome.jsp?StoreId=22&PartDetailId=j2sdk-1.4.2_08-oth-JPR&SiteId=JSC&TransactionId=noreg
 * (SDK 32-bit/64-bit for Windows/Linux/Solaris SPARC 32-bit for Solaris x86,
then select download Linux Self-extracting.
 * and move it to /usr/portage/distfiles
Comment 3 Ortwin Glueck 2005-07-27 10:38:47 UTC
David,

to create the digest all the required files must be in the distfiles directory.
If you read the output carefully you see what to do. Download the JCE file. Then
it should work.

Ortwin
Comment 4 Ortwin Glueck 2005-07-27 10:41:38 UTC
Created attachment 64447 [details, diff]
patch for sun-jdk-1.4.2.08-r1
Comment 5 David Lennox 2005-07-28 05:35:24 UTC
Patch fixed the "ebuild digest".  Thank you.

Build now fails as below:

echidna sun-jdk # emerge sun-jdk
Calculating dependencies ...done!
>>> emerge (1 of 1) dev-java/sun-jdk-1.4.2.08-r1 to /
>>> md5 files   ;-) sun-jdk-1.2.2.017.ebuild
>>> md5 files   ;-) sun-jdk-1.3.1.13.ebuild
>>> md5 files   ;-) sun-jdk-1.4.2.08.ebuild
>>> md5 files   ;-) sun-jdk-1.5.0.04.ebuild
>>> md5 files   ;-) sun-jdk-1.4.2.08-r1.ebuild
>>> md5 files   ;-) files/digest-sun-jdk-1.2.2.017
>>> md5 files   ;-) files/digest-sun-jdk-1.3.1.13
>>> md5 files   ;-) files/digest-sun-jdk-1.4.2.08
>>> md5 files   ;-) files/sun-jdk-1.2.2.017
>>> md5 files   ;-) files/sun-jdk-1.3.1.13
>>> md5 files   ;-) files/sun-jdk-1.4.2.08
>>> md5 files   ;-) files/digest-sun-jdk-1.5.0.04
>>> md5 files   ;-) files/sun-jdk-1.5.0.04
>>> md5 files   ;-) files/digest-sun-jdk-1.4.2.08-r1
>>> md5 files   ;-) files/javaws-waitid.c
>>> md5 src_uri ;-) j2sdk-1_4_2_08-linux-ia64.bin
>>> Unpacking source...
tail: +: invalid number of lines
/usr/portage/dev-java/sun-jdk/sun-jdk-1.4.2.08-r1.ebuild: line 101: cd:
/var/tmp/portage/sun-jdk-1.4.2.08-r1/work/j2sdk1.4.2_08: No such file or directory
sed: can't read jre/javaws/javaws: No such file or directory

!!! ERROR: dev-java/sun-jdk-1.4.2.08-r1 failed.
!!! Function src_unpack, Line 102, Exitcode 2
!!! javaws sed failed
!!! If you need support, post the topmost build error, NOT this status message.

Comment 6 Thomas Matthijs (RETIRED) gentoo-dev 2005-09-10 10:04:32 UTC
1. added ">=dev-java/sun-jdk-1.4.2.08 -*" to /etc/portage/package.keywords