Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 52425 - sun-jdk 1.5.0 beta 2 is out
Summary: sun-jdk 1.5.0 beta 2 is out
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High enhancement
Assignee: Java team
URL:
Whiteboard:
Keywords:
: 52537 52724 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-05-30 01:30 UTC by Chris Ryan
Modified: 2004-06-11 15:29 UTC (History)
2 users (show)

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


Attachments
Ebuild for sun-jdk-1.5.0_beta2 (sun-jdk-1.5.0_beta2.ebuild,6.20 KB, text/plain)
2004-05-30 01:34 UTC, Chris Ryan
Details
do not use - contains error (sun-jdk-1.5.0_beta2.ebuild,6.20 KB, text/plain)
2004-06-01 15:57 UTC, Robert Schuster
Details
Updated ebuild - x86 filename finally corrected (sun-jdk-1.5.0_beta2.ebuild,6.20 KB, text/plain)
2004-06-01 16:00 UTC, Robert Schuster
Details
environment settings for jdk1.5.0 beta2 (sun-jdk-1.5.0_beta2,487 bytes, text/plain)
2004-06-01 16:31 UTC, Robert Schuster
Details
Updated ebuild file (sun-jdk-1.5.0_beta2.ebuild,6.62 KB, text/plain)
2004-06-02 03:29 UTC, Chris Ryan
Details
Updated ebuild - uses unpack200, etc. (sun-jdk-1.5.0_beta2.ebuild,6.60 KB, text/plain)
2004-06-02 03:40 UTC, Chris Ryan
Details
updated ebuild containing warning (sun-jdk-1.5.0_beta2.ebuild,7.02 KB, text/plain)
2004-06-10 10:24 UTC, Robert Schuster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Ryan 2004-05-30 01:30:34 UTC
The new beta for sun-jdk is out, and therefore it seems you can't d/l the old beta.

Anyway, the ebuild for sun-jdk needs updating.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Chris Ryan 2004-05-30 01:34:41 UTC
Created attachment 32298 [details]
Ebuild for sun-jdk-1.5.0_beta2

Modified for the beta 1 ebuild.  The jar unpack in src_unpack now seems
unnecessary.

The workdir needed modification as well.
Comment 2 Seemant Kulleen (RETIRED) gentoo-dev 2004-05-31 09:34:28 UTC
*** Bug 52537 has been marked as a duplicate of this bug. ***
Comment 3 Carsten Lohrke (RETIRED) gentoo-dev 2004-06-01 14:50:15 UTC
*** Bug 52724 has been marked as a duplicate of this bug. ***
Comment 4 Robert Schuster 2004-06-01 15:57:59 UTC
Created attachment 32501 [details]
do not use - contains error

don't know whats going on at sun that they do not have a consistent naming
scheme for their distribution files. last time (beta1) it was "j2dsk-" (the
jdk-naming since 1.2.2) now its the old one ('deprecated'?) "jdk-". Dont they
have automated distribution tools?
Comment 5 Robert Schuster 2004-06-01 16:00:31 UTC
Created attachment 32502 [details]
Updated ebuild - x86 filename finally corrected

ok this was my fault. i forgot to add the little 2 after beta. sorry.
Comment 6 Daniel Massie 2004-06-01 16:23:05 UTC
The attached ebuild fails to unpack the tools.pack and rt.pack meaning it cannot be used
Comment 7 Robert Schuster 2004-06-01 16:31:39 UTC
Created attachment 32504 [details]
environment settings for jdk1.5.0 beta2

this file is needed in the 'files' directory inside the package directory
sun-jdk.

btw: the path "${JAVA_HOME}/javaws" is not needed for 1.5. webstart is inside
the bin directory too.
Comment 8 Robert Schuster 2004-06-01 16:38:12 UTC
when emerging i get several errors:
cp: could not get owner for /var/tmp/portage/sun-jdk-1.5.0_beta2/image//opt/sun-jdk-1.5.0_beta2/jre/lib/i386/client/libjsig.so : file or directory not found
cp: could not get owner for /var/tmp/portage/sun-jdk-1.5.0_beta2/image//opt/sun-jdk-1.5.0_beta2/jre/lib/i386/server/libjsig.so : file or directory not found
cp: could not get owner for /var/tmp/portage/sun-jdk-1.5.0_beta2/image//opt/sun-jdk-1.5.0_beta2/man/ja: file or directory not found
mozilla
/usr/sbin/ebuild.sh: line 73: /usr/local/portage/dev-java/sun-jdk/files/sun-jdk-1.5.0_beta2: file or directory not found
(i have manually translated the error messages)

all mentioned files are actually symlinks. they are however copied and nothing is wrong but it would be nice if someone could modify the ebuild that these errors do not occur.
Comment 9 Robert Schuster 2004-06-01 16:58:14 UTC
As Daniel Massie reported tools.pack and rt.pack are not unpacked I continue: There are several other *.pack files which arent unpacked. Is this 'pack200' which packs java classes to 1/8 of they original file size as stated on several sites?

A warning message should be added to the build script that beta2's java compiler uses "-source 1.5" as default! This may be very problematic because in 1.5 several identifiers have been added which makes several existing java project incompatible. eg. apache axis uses 'enum' as package identifier which is forbidden with '-source 1.5' (a warning is displayed when using a smaller version)
Comment 10 Aris Basic 2004-06-01 18:13:36 UTC
this are the errors i get when trying to emerge on amd64

>>> Install sun-jdk-1.5.0_beta2 into /var/tmp/portage/sun-jdk-1.5.0_beta2/image/ category dev-java
cp: failed to preserve ownership for /var/tmp/portage/sun-jdk-1.5.0_beta2/image//opt/sun-jdk-1.5.0_beta2/jre/lib/amd64/server/libjsig.so: No such file or directory
cp: failed to preserve ownership for /var/tmp/portage/sun-jdk-1.5.0_beta2/image//opt/sun-jdk-1.5.0_beta2/man/ja: No such file or directory
 * No plugin available for amd64 arch
sed: can't read /var/tmp/portage/sun-jdk-1.5.0_beta2/image//opt/sun-jdk-1.5.0_beta2/jre/plugin/desktop/sun_java.desktop: No such file or directory
 * Sorry no kde, gnome support for your arch now.
/usr/sbin/ebuild.sh: line 73: /usr/local/portage/dev-java/sun-jdk/files/sun-jdk-1.5.0_beta2: No such file or directory
Comment 11 Chris Ryan 2004-06-02 02:50:02 UTC
Wrt the kde/gnome support, there's an explicit test for x86 in the ebuild for something related to sun java desktop.  I'm unsure if it would work for amd64 or if it's required.
Comment 12 Chris Ryan 2004-06-02 03:29:38 UTC
Created attachment 32516 [details]
Updated ebuild file

Drawing on the other attachments in this list, I've modified the ebuild to now
do the unpacking required.  The unpack command, unpack200 was located in the
bin directory.

I've also added in amd64 for the kde/gnome integration and for copying over the
src.zip file.

I still get this problem (as others have) for amd64:

cp: failed to preserve ownership for
/var/tmp/portage/sun-jdk-1.5.0_beta2/image//opt/sun-jdk-1.5.0_beta2/jre/lib/amd64/server/libjsig.so:
No such file or directory
Comment 13 Chris Ryan 2004-06-02 03:38:37 UTC
Comment on attachment 32516 [details]
Updated ebuild file

D'oh.  The gnome/kde integration doesn't work for amd64 as the file it's
looking for doesn't exist - it slipped passed me.  I'll modify and reattach a
new ebuild
Comment 14 Chris Ryan 2004-06-02 03:40:05 UTC
Created attachment 32517 [details]
Updated ebuild - uses unpack200, etc.

See my previous comments.
Comment 15 Travis Tilley (RETIRED) gentoo-dev 2004-06-09 15:19:42 UTC
ping? what's the status on the new release? i want to see if it fixes a large number of problems that the earlier beta and even blackdown has. we only have 64bit java betas and release candidates on amd64. :/
Comment 16 Robert Schuster 2004-06-10 10:24:58 UTC
Created attachment 33038 [details]
updated ebuild containing warning

latest ebuild works for me but I added warning message because of implicit
'-source 1.5' in this beta.
Comment 17 Travis Tilley (RETIRED) gentoo-dev 2004-06-11 15:29:53 UTC
i hope nobody kills me for this, but i've committed an ebuild for the new beta. both main java devs are apparently busy with real life things :)