Gentoo Archives: gentoo-commits

From: "Vlastimil Babka (caster)" <caster@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-emulation/emul-linux-x86-java: ChangeLog emul-linux-x86-java-1.6.0.19.ebuild
Date: Tue, 30 Mar 2010 20:31:09
Message-Id: E1Nwi5X-0008CZ-1E@stork.gentoo.org
1 caster 10/03/30 20:31:03
2
3 Modified: ChangeLog
4 Added: emul-linux-x86-java-1.6.0.19.ebuild
5 Log:
6 Version bump, security bug #306579.
7 (Portage version: 2.2_rc67/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.84 app-emulation/emul-linux-x86-java/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/emul-linux-x86-java/ChangeLog?rev=1.84&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/emul-linux-x86-java/ChangeLog?rev=1.84&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/emul-linux-x86-java/ChangeLog?r1=1.83&r2=1.84
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/app-emulation/emul-linux-x86-java/ChangeLog,v
19 retrieving revision 1.83
20 retrieving revision 1.84
21 diff -u -r1.83 -r1.84
22 --- ChangeLog 21 Jan 2010 12:59:14 -0000 1.83
23 +++ ChangeLog 30 Mar 2010 20:31:02 -0000 1.84
24 @@ -1,6 +1,12 @@
25 # ChangeLog for app-emulation/emul-linux-x86-java
26 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/emul-linux-x86-java/ChangeLog,v 1.83 2010/01/21 12:59:14 caster Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/emul-linux-x86-java/ChangeLog,v 1.84 2010/03/30 20:31:02 caster Exp $
29 +
30 +*emul-linux-x86-java-1.6.0.19 (30 Mar 2010)
31 +
32 + 30 Mar 2010; Vlastimil Babka <caster@g.o>
33 + +emul-linux-x86-java-1.6.0.19.ebuild:
34 + Version bump, security bug #306579.
35
36 *emul-linux-x86-java-1.6.0.18 (21 Jan 2010)
37
38
39
40
41 1.1 app-emulation/emul-linux-x86-java/emul-linux-x86-java-1.6.0.19.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/emul-linux-x86-java/emul-linux-x86-java-1.6.0.19.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/emul-linux-x86-java/emul-linux-x86-java-1.6.0.19.ebuild?rev=1.1&content-type=text/plain
45
46 Index: emul-linux-x86-java-1.6.0.19.ebuild
47 ===================================================================
48 # Copyright 1999-2010 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/app-emulation/emul-linux-x86-java/emul-linux-x86-java-1.6.0.19.ebuild,v 1.1 2010/03/30 20:31:02 caster Exp $
51
52 inherit versionator pax-utils java-vm-2 eutils
53
54 UPDATE="$(get_version_component_range 4)"
55 UPDATE="${UPDATE#0}"
56 MY_PV="$(get_version_component_range 2)u${UPDATE}"
57
58 At="jdk-${MY_PV}-dlj-linux-i586.bin"
59 DESCRIPTION="Sun's Java SE Runtime Environment (32bit)"
60 HOMEPAGE="http://java.sun.com/javase/6/"
61 #SRC_URI="http://download.java.net/dlj/binaries/${At}"
62 SRC_URI="http://dlc.sun.com/dlj/binaries/${At}"
63
64 SLOT="1.6"
65 LICENSE="dlj-1.1"
66 KEYWORDS="-* ~amd64"
67 RESTRICT="strip"
68 IUSE="X alsa nsplugin"
69
70 JAVA_VM_NO_GENERATION1=true
71
72 RDEPEND="alsa? ( app-emulation/emul-linux-x86-soundlibs )
73 X? ( app-emulation/emul-linux-x86-xlibs )"
74
75 JAVA_PROVIDE="jdbc-stdext jdbc-rowset"
76
77 QA_TEXTRELS_amd64="opt/${P}/lib/i386/motif21/libmawt.so
78 opt/${P}/lib/i386/libdeploy.so
79 opt/${P}/lib/i386/client/libjvm.so
80 opt/${P}/lib/i386/server/libjvm.so"
81 QA_DT_HASH="opt/${P}/.*"
82
83 src_unpack() {
84 mkdir bundled-jdk
85 cd bundled-jdk
86 sh "${DISTDIR}"/${At} --accept-license --unpack || die "Failed to unpack"
87
88 cd ..
89 bash "${FILESDIR}"/construct-${SLOT}.sh bundled-jdk sun-jdk-${PV} ${P} || die "construct-${SLOT}.sh failed"
90 }
91
92 src_compile() {
93 # Set PaX markings on all JDK/JRE executables to allow code-generation on
94 # the heap by the JIT compiler. This has to be done before CDS - #215225
95 pax-mark m $(list-paxables "${S}"/bin/*)
96
97 # see bug #207282
98 einfo "Creating the Class Data Sharing archives"
99 "${S}"/bin/java -client -Xshare:dump || die
100 "${S}"/bin/java -server -Xshare:dump || die
101 }
102
103 src_install() {
104 local dirs="bin lib man javaws plugin"
105 dodir /opt/${P}
106
107 cp -pPR ${dirs} "${D}/opt/${P}/" || die "failed to copy"
108
109 dodoc README THIRDPARTYLICENSEREADME.txt || die
110 dohtml Welcome.html || die
111 dodir /opt/${P}/share/
112
113 if use nsplugin; then
114 local plugin_dir="ns7-gcc29"
115 if has_version '>=sys-devel/gcc-3' ; then
116 plugin_dir="ns7"
117 fi
118
119 install_mozilla_plugin /opt/${P}/lib/i386/libnpjp2.so
120 install_mozilla_plugin /opt/${P}/plugin/i386/$plugin_dir/libjavaplugin_oji.so old_oji
121 fi
122
123 # FIXME figure out how to handle the control pannel conflict with
124 # sun-jdk-bin
125
126 # install control panel for Gnome/KDE
127 # sed -e "s/INSTALL_DIR\/JRE_NAME_VERSION/\/opt\/${P}\/jre/" \
128 # -e "s/\(Name=Java\)/\1 Control Panel ${SLOT}/" \
129 # ${D}/opt/${P}/plugin/desktop/sun_java.desktop > \
130 # ${T}/sun_java-${SLOT}.desktop
131
132 # domenu ${T}/sun_java-${SLOT}.desktop
133
134 set_java_env
135 java-vm_revdep-mask
136 }
137
138 pkg_postinst() {
139 # Set as default VM if none exists
140 java-vm-2_pkg_postinst
141
142 elog
143 elog "Two variants of the nsplugin are available via eselect java-nsplugin."
144 elog "Note that starting with ${PN}-1.6.0.19 their naming and the default changed,"
145 elog "users with the old plugin set are switched to the new default automatically."
146 elog "The default ${VMHANDLE} is the new 'plugin2' which works in Firefox 3 (xulrunner-1.9)"
147 elog "and newer, the ${VMHANDLE}-old_oji is the old plugin using the OJI API"
148 elog "that was removed in Firefox 3.6 (xulrunner-1.9.2)."
149 elog "For more info see https://jdk6.dev.java.net/plugin2/"
150 elog
151
152 if ! use X; then
153 local xwarn="X11 libraries and/or"
154 fi
155
156 echo
157 ewarn "Some parts of Sun's JDK require ${xwarn} virtual/lpr to be installed."
158 ewarn "Be careful which Java libraries you attempt to use."
159 }