Sun has just released the jdk 1.5 beta 1, please add it This is the first official sun release to support amd64, so I'm eager to test it.. Reproducible: Always Steps to Reproduce: 1. emerge -s Actual Results: No ebuils Expected Results: ebuild
Created attachment 25092 [details] beta1 ebuild (this is the real beta, unfortunately the current ebuild is the beta) This is my private ebuild for the alpha jdk changed to the beta1 jdk. It takes some changes in layout into account (javaws.jar changed location, and there is some initing work done (probably for speedups)). Further it will not change the time of existing system preference files anymore, use the correct kde location, and provide a little bit more docs. The full diff: --- /usr/portage/dev-java/sun-jdk/sun-jdk-1.5.0_beta1.ebuild 2004-01-10 20:24:05.000000000 +0100 +++ sun-jdk-1.5.0_beta1.ebuild 2004-02-06 20:28:23.034303888 +0100 @@ -1,15 +1,15 @@ -# Copyright 1999-2004 Gentoo Technologies, Inc. +# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /home/cvsroot/gentoo-x86/dev-java/sun-jdk/sun-jdk-1.5.0_beta1.ebuild,v 1.1 2004/01/10 19:24:05 strider Exp $ +# $Header: /home/cvsroot/gentoo-x86/dev-java/sun-jdk/sun-jdk-1.4.2.03.ebuild,v 1.2 2003/12/13 17:00:01 strider Exp $ IUSE="doc gnome kde mozilla" inherit java nsplugins -At="j2sdk-1_5_0-beta-bin-b31-linux-i586-11_dec_2003.bin" +At="j2sdk-1_5_0-beta-linux-i586.bin" S="${WORKDIR}/j2sdk1.5.0" DESCRIPTION="Sun's J2SE Development Kit, version ${PV}" -HOMEPAGE="http://jsecom16.sun.com/ECom/EComActionServlet?StoreId=22&PartDetailId=j2sdk-1.5.0-beta-b31-oth-JPR" +HOMEPAGE="http://java.sun.com/j2se/1.5.0/download.jsp" SRC_URI=${At} SLOT="1.5" LICENSE="sun-bcla-java-vm" @@ -18,15 +18,15 @@ DEPEND=">=dev-java/java-config-1.1.5 sys-apps/sed - doc? ( =dev-java/java-sdk-docs-1.4.2* )" + doc? ( =dev-java/java-sdk-docs-1.5.0* )" RDEPEND="sys-libs/lib-compat" -PROVIDE="virtual/jre-1.4.2 - virtual/jdk-1.4.2 - virtual/java-scheme-2" +PROVIDE="virtual/jre-1.5.0 + virtual/jdk-1.5.0" -PACKED_JARS="lib/tools.jar jre/lib/rt.jar jre/lib/jsse.jar jre/lib/charsets.jar jre/lib/ext/localedata.jar jre/lib/plugin.jar jre/javaws/javaws.jar" +PACKED_JARS="lib/tools.jar jre/lib/rt.jar jre/lib/jsse.jar jre/lib/charsets.jar + jre/lib/ext/localedata.jar jre/lib/plugin.jar jre/lib/javaws.jar" # this is needed for proper operating under a PaX kernel without activated grsecurity acl CHPAX_CONSERVATIVE_FLAGS="pemsv" @@ -62,7 +62,11 @@ rm -f ${PACK_FILE} fi done + rm -f ${UNPACK_CMD} + else + die "unpack not found" fi + ${S}/bin/java -client -Xshare:dump } src_install () { @@ -73,7 +77,7 @@ cp -a $i ${D}/opt/${P}/ done - dodoc COPYRIGHT LICENSE + dodoc COPYRIGHT README LICENSE THIRDPARTYLICENSEREADME.txt dohtml README.html dodir /opt/${P}/share/ cp -a demo src.zip ${D}/opt/${P}/share/ @@ -103,8 +107,8 @@ doins ${T}/sun_java.desktop fi if use kde ; then - dodir $KDEDIR/share/applnk/Internet - insinto $KDEDIR/share/applnk/Internet + dodir /usr/share/applnk/Internet + insinto /usr/share/applnk/Internet doins ${T}/sun_java.desktop fi @@ -117,10 +121,16 @@ pkg_postinst () { # Create files used as storage for system preferences. - touch /opt/${P}/.systemPrefs/.system.lock - chmod 644 /opt/${P}/.systemPrefs/.system.lock - touch /opt/${P}/.systemPrefs/.systemRootModFile - chmod 644 /opt/${P}/.systemPrefs/.systemRootModFile + PREFS_LOCATION=/opt/${P}/jre + mkdir -p ${PREFS_LOCATION}/.systemPrefs + if [ ! -f ${PREFS_LOCATION}/.systemPrefs/.system.lock ] ; then + touch $PREFS_LOCATION/.systemPrefs/.system.lock + chmod 644 $PREFS_LOCATION/.systemPrefs/.system.lock + fi + if [ ! -f $PREFS_LOCATION/.systemPrefs/.systemRootModFile ] ; then + touch $PREFS_LOCATION/.systemPrefs/.systemRootModFile + chmod 644 $PREFS_LOCATION/.systemPrefs/.systemRootModFile + fi # Set as default VM if none exists java_pkg_postinst
I have read the ebuild and found one small defect about it. It does not support amd64 (in 64 bit mode). The beta is the first (besides blackdown) to support amd64 One difference i know is that it is a different download from sun, so that should be taken into account, but I'm not sure if there is anything else. Perhaps you can take a look at how it is done in the latest blackdown ebuild
One more feature request for the ebuild: Place an icon to start Java Webstart in the gnome menu (and possibly kde menu)
the current ebuild available on portage its broken that why its masked, im currently working in a new one, that will have support for amd64 and x86, please stay tuned...
My one works except for amd64 support (and indeed webstart icons)
ok, i made the new ebuild with the changes Paul submitted but it still fails on amd64, ill try to fix this by thursday.
*** Bug 41137 has been marked as a duplicate of this bug. ***
Actually, the Java Web Start Applications dialog does not exist anymore in 1.5. JWS applications are given Applications menu entries themselves as well as desktop icons and MIME types associations and things like that, so there is no need for the user to run anything Web Start specific. There is still a way to view/manage your installed JWS components, it is provided as part of the Java Control Panel, and an icon for that is provided by sun-jdk-1.4.2 ebuild, so I assume it's provided by this ebuild, and if it's not, it should be or else people installing jdk1.5 will have an icon deleted from their menus.
Done added to portage. Deleted old version from portage. Support for amd64 and x86. Closing this as fixed. Any new bugs on it please report them. =)