Gentoo Archives: gentoo-commits

From: "Vlastimil Babka (caster)" <caster@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-java/sun-jre-bin: ChangeLog sun-jre-bin-1.6.0.17.ebuild sun-jre-bin-1.5.0.22.ebuild
Date: Wed, 04 Nov 2009 11:28:13
Message-Id: E1N5e28-0001Vs-1j@stork.gentoo.org
1 caster 09/11/04 11:28:12
2
3 Modified: ChangeLog
4 Added: sun-jre-bin-1.6.0.17.ebuild
5 sun-jre-bin-1.5.0.22.ebuild
6 Log:
7 Version bump, security bug #291817
8 (Portage version: 2.2_rc48/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.160 dev-java/sun-jre-bin/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/sun-jre-bin/ChangeLog?rev=1.160&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/sun-jre-bin/ChangeLog?rev=1.160&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/sun-jre-bin/ChangeLog?r1=1.159&r2=1.160
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-java/sun-jre-bin/ChangeLog,v
20 retrieving revision 1.159
21 retrieving revision 1.160
22 diff -u -r1.159 -r1.160
23 --- ChangeLog 29 Sep 2009 15:56:25 -0000 1.159
24 +++ ChangeLog 4 Nov 2009 11:28:11 -0000 1.160
25 @@ -1,6 +1,13 @@
26 # ChangeLog for dev-java/sun-jre-bin
27 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-jre-bin/ChangeLog,v 1.159 2009/09/29 15:56:25 caster Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-jre-bin/ChangeLog,v 1.160 2009/11/04 11:28:11 caster Exp $
30 +
31 +*sun-jre-bin-1.6.0.17 (04 Nov 2009)
32 +*sun-jre-bin-1.5.0.22 (04 Nov 2009)
33 +
34 + 04 Nov 2009; Vlastimil Babka <caster@g.o>
35 + +sun-jre-bin-1.5.0.22.ebuild, +sun-jre-bin-1.6.0.17.ebuild:
36 + Version bump, security bug #291817
37
38 *sun-jre-bin-1.5.0.21 (29 Sep 2009)
39
40
41
42
43 1.1 dev-java/sun-jre-bin/sun-jre-bin-1.6.0.17.ebuild
44
45 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/sun-jre-bin/sun-jre-bin-1.6.0.17.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/sun-jre-bin/sun-jre-bin-1.6.0.17.ebuild?rev=1.1&content-type=text/plain
47
48 Index: sun-jre-bin-1.6.0.17.ebuild
49 ===================================================================
50 # Copyright 1999-2009 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/dev-java/sun-jre-bin/sun-jre-bin-1.6.0.17.ebuild,v 1.1 2009/11/04 11:28:11 caster Exp $
53
54 inherit versionator pax-utils eutils java-vm-2
55
56 UPDATE="$(get_version_component_range 4)"
57 UPDATE="${UPDATE#0}"
58 MY_PV="$(get_version_component_range 2)u${UPDATE}"
59
60 SUFFIX=".bin"
61 X86_AT="jdk-${MY_PV}-dlj-linux-i586${SUFFIX}"
62 AMD64_AT="jdk-${MY_PV}-dlj-linux-amd64${SUFFIX}"
63
64 DESCRIPTION="Sun's Java SE Runtime Environment"
65 HOMEPAGE="http://java.sun.com/javase/6/"
66 URL_BASE="http://download.java.net/dlj/binaries"
67 SRC_URI="x86? ( ${URL_BASE}/${X86_AT} )
68 amd64? ( ${URL_BASE}/${AMD64_AT} )"
69 SLOT="1.6"
70 LICENSE="dlj-1.1"
71 KEYWORDS="-* ~amd64 ~x86"
72 RESTRICT="strip"
73 IUSE="X alsa nsplugin odbc"
74
75 RDEPEND="sys-libs/glibc
76 x86? ( =virtual/libstdc++-3.3 )
77 alsa? ( media-libs/alsa-lib )
78 X? (
79 x11-libs/libXext
80 x11-libs/libXi
81 x11-libs/libXp
82 x11-libs/libXtst
83 amd64? ( x11-libs/libXt )
84 x11-libs/libX11
85 )
86 odbc? ( dev-db/unixODBC )"
87 DEPEND=""
88
89 JAVA_PROVIDE="jdbc-stdext jdbc-rowset"
90
91 QA_TEXTRELS_x86="opt/${P}/lib/i386/client/libjvm.so
92 opt/${P}/lib/i386/motif21/libmawt.so
93 opt/${P}/lib/i386/libdeploy.so
94 opt/${P}/lib/i386/server/libjvm.so"
95
96 src_unpack() {
97 mkdir bundled-jdk
98 cd bundled-jdk
99 sh "${DISTDIR}"/${A} --accept-license --unpack || die "Failed to unpack"
100
101 cd ..
102 bash "${FILESDIR}/construct-1.6.sh" bundled-jdk sun-jdk-${PV} ${P} || die "construct.sh failed"
103 }
104
105 src_compile() {
106 # Set PaX markings on all JDK/JRE executables to allow code-generation on
107 # the heap by the JIT compiler. This has to be done before CDS - #215225
108 pax-mark m $(list-paxables "${S}"/bin/*)
109
110 # see bug #207282
111 if use x86; then
112 einfo "Creating the Class Data Sharing archives"
113 "${S}"/bin/java -client -Xshare:dump || die
114 "${S}"/bin/java -server -Xshare:dump || die
115 fi
116 }
117
118 src_install() {
119 local dirs="bin lib man"
120
121 # only X86 has the plugin and javaws
122 use x86 && dirs="${dirs} javaws plugin"
123 dodir /opt/${P}
124
125 cp -pPR $dirs "${D}/opt/${P}/" || die "failed to copy"
126
127 dodoc README THIRDPARTYLICENSEREADME.txt || die
128 dohtml Welcome.html || die
129 dodir /opt/${P}/share/
130
131 if use nsplugin; then
132 local plugin_dir="ns7-gcc29"
133 if has_version '>=sys-devel/gcc-3' ; then
134 plugin_dir="ns7"
135 fi
136
137 if use x86 ; then
138 install_mozilla_plugin /opt/${P}/plugin/i386/$plugin_dir/libjavaplugin_oji.so
139 install_mozilla_plugin /opt/${P}/lib/i386/libnpjp2.so plugin2
140 else
141 install_mozilla_plugin /opt/${P}/lib/amd64/libnpjp2.so
142 fi
143 fi
144
145 # install control panel for Gnome/KDE
146 if [[ -e "${D}/opt/${P}/plugin/desktop/sun_java.desktop" ]]; then
147 sed -e "s/\(Name=Java\)/\1 Control Panel for Sun JRE ${SLOT}/" \
148 -e "s#Exec=.*#Exec=/opt/${P}/bin/ControlPanel#" \
149 -e "s#Icon=.*#Icon=/opt/${P}/plugin/desktop/sun_java.png#" \
150 "${D}/opt/${P}/plugin/desktop/sun_java.desktop" > \
151 "${T}/sun_jre-${SLOT}.desktop" || die
152 domenu "${T}/sun_jre-${SLOT}.desktop" || die
153 fi
154
155 # bug #56444
156 insinto /opt/${P}/lib/
157 newins "${FILESDIR}"/fontconfig.Gentoo.properties fontconfig.properties
158
159 set_java_env
160 java-vm_revdep-mask
161 }
162
163 pkg_postinst() {
164 # Set as default VM if none exists
165 java-vm-2_pkg_postinst
166
167 if use x86 && use nsplugin; then
168 elog
169 elog "Two variants of the nsplugin are available via eselect java-nsplugin:"
170 elog "${VMHANDLE} and ${VMHANDLE}-plugin2 (the Next-Generation Plug-In) "
171 ewarn "Note that the ${VMHANDLE}-plugin2 works only in Firefox 3!"
172 elog "For more info see https://jdk6.dev.java.net/plugin2/"
173 elog
174 fi
175
176 if use amd64 && use nsplugin; then
177 elog
178 elog "This version finally brings a browser plugin for amd64"
179 elog "It is the so-called Next-Generation Plug-In (plugin2)"
180 elog "Use eselect java-nsplugin to select it (${VMHANDLE})."
181 ewarn "Note that it works only in Firefox 3 or newer browsers!"
182 elog "For more info see https://jdk6.dev.java.net/plugin2/"
183 elog
184 fi
185
186 elog "Beginning with 1.5.0.10 the hotspot vm can use epoll"
187 elog "The epoll-based implementation of SelectorProvider is not selected by"
188 elog "default."
189 elog "Use java -Djava.nio.channels.spi.SelectorProvider=sun.nio.ch.EPollSelectorProvider"
190 }
191
192
193
194 1.1 dev-java/sun-jre-bin/sun-jre-bin-1.5.0.22.ebuild
195
196 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/sun-jre-bin/sun-jre-bin-1.5.0.22.ebuild?rev=1.1&view=markup
197 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/sun-jre-bin/sun-jre-bin-1.5.0.22.ebuild?rev=1.1&content-type=text/plain
198
199 Index: sun-jre-bin-1.5.0.22.ebuild
200 ===================================================================
201 # Copyright 1999-2009 Gentoo Foundation
202 # Distributed under the terms of the GNU General Public License v2
203 # $Header: /var/cvsroot/gentoo-x86/dev-java/sun-jre-bin/sun-jre-bin-1.5.0.22.ebuild,v 1.1 2009/11/04 11:28:11 caster Exp $
204
205 inherit pax-utils versionator eutils java-vm-2
206
207 UPDATE="$(get_version_component_range 4)"
208 UPDATE="${UPDATE#0}"
209 MY_PV="$(get_version_component_range 2-3)u${UPDATE}"
210
211 X86_AT="jdk-${MY_PV}-dlj-linux-i586.bin"
212 AMD64_AT="jdk-${MY_PV}-dlj-linux-amd64.bin"
213
214 DESCRIPTION="Sun's Java SE Runtime Environment"
215 HOMEPAGE="http://java.sun.com/j2se/1.5.0/"
216 SRC_URI="x86? ( http://download.java.net/dlj/binaries/${X86_AT} )
217 amd64? ( http://download.java.net/dlj/binaries/${AMD64_AT} )"
218 SLOT="1.5"
219 LICENSE="dlj-1.1"
220 KEYWORDS="-* ~amd64 ~x86"
221 RESTRICT="strip"
222 IUSE="X alsa nsplugin odbc"
223
224 RDEPEND="sys-libs/glibc
225 alsa? ( media-libs/alsa-lib )
226 X? (
227 x11-libs/libXext
228 x11-libs/libXi
229 x11-libs/libXp
230 x11-libs/libXtst
231 x11-libs/libXt
232 x11-libs/libX11
233 )
234 odbc? ( dev-db/unixODBC )"
235 DEPEND=""
236
237 JAVA_PROVIDE="jdbc-stdext jdbc-rowset"
238
239 QA_TEXTRELS_x86="opt/${P}/lib/i386/motif21/libmawt.so
240 opt/${P}/lib/i386/libdeploy.so"
241
242 src_unpack() {
243 mkdir bundled-jdk
244 cd bundled-jdk
245 sh "${DISTDIR}/${A}" --accept-license --unpack || die "Failed to unpack"
246
247 cd ..
248 bash "${FILESDIR}/construct.sh" bundled-jdk sun-jdk-${PV} ${P} || die "construct.sh failed"
249 }
250
251 src_compile() {
252 # Set PaX markings on all JDK/JRE executables to allow code-generation on
253 # the heap by the JIT compiler. This has to be done before CDS - #215225
254 pax-mark m $(list-paxables "${S}"/bin/*)
255
256 # see bug #207282
257 if use x86; then
258 einfo "Creating the Class Data Sharing archives"
259 "${S}"/bin/java -client -Xshare:dump || die
260 fi
261 }
262
263 src_install() {
264 local dirs="bin lib man"
265 # only X86 has the plugin and javaws
266 use x86 && dirs="${dirs} javaws plugin"
267 dodir /opt/${P}
268
269 cp -pPR ${dirs} "${D}/opt/${P}/" || die "failed to copy"
270
271 dodoc CHANGES README THIRDPARTYLICENSEREADME.txt || die
272 dohtml Welcome.html || die
273
274 if use nsplugin; then
275 local plugin_dir="ns7-gcc29"
276 if has_version '>=sys-devel/gcc-3' ; then
277 plugin_dir="ns7"
278 fi
279
280 if use x86 ; then
281 install_mozilla_plugin /opt/${P}/plugin/i386/$plugin_dir/libjavaplugin_oji.so
282 else
283 eerror "No plugin available for amd64 arch"
284 fi
285 fi
286
287 # FIXME figure out how to handle the control pannel conflict with
288 # sun-jdk-bin
289
290 # install control panel for Gnome/KDE
291 # sed -e "s/INSTALL_DIR\/JRE_NAME_VERSION/\/opt\/${P}\/jre/" \
292 # -e "s/\(Name=Java\)/\1 Control Panel ${SLOT}/" \
293 # ${D}/opt/${P}/plugin/desktop/sun_java.desktop > \
294 # ${T}/sun_java-${SLOT}.desktop
295
296 # domenu ${T}/sun_java-${SLOT}.desktop
297
298 # bug #56444
299 insinto /opt/${P}/lib/
300 newins "${FILESDIR}"/fontconfig.Gentoo.properties \
301 fontconfig.properties || die
302
303 set_java_env
304 java-vm_revdep-mask
305 }
306
307 pkg_postinst() {
308 # Set as default VM if none exists
309 java-vm-2_pkg_postinst
310
311 elog "The epoll-based implementation of SelectorProvider is not selected by"
312 elog "default."
313 elog "Use java -Djava.nio.channels.spi.SelectorProvider=sun.nio.ch.EPollSelectorProvider"
314 }