Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 3371

Summary: new version of sun jdk 1.4.0
Product: Gentoo Linux Reporter: Paul de Vrieze (RETIRED) <pauldv>
Component: New packagesAssignee: Matthew Kennedy (RETIRED) <mkennedy>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: A new ebuild for this version
updated ebuild file

Description Paul de Vrieze (RETIRED) gentoo-dev 2002-06-04 04:12:39 UTC
There is a new version of sun jdk 1.4.0 that fixes some bugs
Comment 1 Paul de Vrieze (RETIRED) gentoo-dev 2002-06-04 05:20:13 UTC
Created attachment 1331 [details]
A new ebuild for this version

I adapted the existing ebuild to work with the new jdk
Comment 2 Paul de Vrieze (RETIRED) gentoo-dev 2002-06-04 05:48:22 UTC
Created attachment 1332 [details]
updated ebuild file

New version, the plugin name changed to the old one, and I didn't check yet
Comment 3 heuermh 2002-06-06 19:22:38 UTC
Hello Paul,

I didn't do a diff of your updated ebuild file to mine, but they appear to be
identical.

Don't forget to add the files

/usr/portage/dev-java/sun-jdk/files/digest-sun-jdk-1.4.0.01
/usr/portage/dev-java/sun-jdk/files/sun-jdk-1.4.0.01

adapted from the 1.4.0-r2 versions so the environment is set up correctly.

   michael
Comment 4 Maik Schreiber 2002-06-14 15:04:46 UTC
The src_unpack() procedure uses a mechanism that seems to break if used for
1.4.0_01. Better use the following:

src_unpack() {
	if [ ! -f ${DISTDIR}/${At} ] ; then
		die "Please download ${At} from ${HOMEPAGE} (select the \"Linux GNUZIP Tar shell
script\" package format of the SDK) and move it to ${DISTDIR}"
	fi

	sed <${DISTDIR}/${At} >install.bin \
		-e 's|^more <<"EOF"$|cat >/dev/null <<"EOF"|'
	yes | sh ./install.bin >/dev/null
}
Comment 5 Maik Schreiber 2002-06-14 15:12:32 UTC
It seems the "yes" construct results in a "Broken pipe" error message. Better
use this src_unpack() instead:

src_unpack() {
	if [ ! -f ${DISTDIR}/${At} ] ; then
		die "Please download ${At} from ${HOMEPAGE} (select the \"Linux GNUZIP Tar shell
script\" package format of the SDK) and move it to ${DISTDIR}"
	fi

	sed <${DISTDIR}/${At} >install.bin \
		-e 's|^more <<"EOF"$|cat >/dev/null <<"EOF"|' \
		-e 's|read reply leftover|reply=y|'
	sh ./install.bin >/dev/null
}
Comment 6 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2002-06-24 15:12:26 UTC
Here you are Matthew, the nightmare is all yours :)
Comment 7 Matthew Kennedy (RETIRED) gentoo-dev 2002-06-27 09:15:56 UTC
thanks karl, I asked for it of course :)