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: sun-jre-bin-1.6.0.35.ebuild ChangeLog
Date: Fri, 31 Aug 2012 10:45:23
Message-Id: 20120831104504.C93C720D72@flycatcher.gentoo.org
1 caster 12/08/31 10:45:04
2
3 Modified: ChangeLog
4 Added: sun-jre-bin-1.6.0.35.ebuild
5 Log:
6 Version bump, security bug #433094.
7
8 (Portage version: 2.2.0_alpha121/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.220 dev-java/sun-jre-bin/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/sun-jre-bin/ChangeLog?rev=1.220&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/sun-jre-bin/ChangeLog?rev=1.220&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/sun-jre-bin/ChangeLog?r1=1.219&r2=1.220
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-java/sun-jre-bin/ChangeLog,v
20 retrieving revision 1.219
21 retrieving revision 1.220
22 diff -u -r1.219 -r1.220
23 --- ChangeLog 23 Aug 2012 20:15:34 -0000 1.219
24 +++ ChangeLog 31 Aug 2012 10:45:04 -0000 1.220
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-java/sun-jre-bin
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-jre-bin/ChangeLog,v 1.219 2012/08/23 20:15:34 caster Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-jre-bin/ChangeLog,v 1.220 2012/08/31 10:45:04 caster Exp $
30 +
31 +*sun-jre-bin-1.6.0.35 (31 Aug 2012)
32 +
33 + 31 Aug 2012; Vlastimil Babka <caster@g.o> +sun-jre-bin-1.6.0.35.ebuild:
34 + Version bump, security bug #433094.
35
36 *sun-jre-bin-1.6.0.34 (23 Aug 2012)
37
38 @@ -1115,4 +1120,3 @@
39 sun-jre-1.4.2.03.ebuild, files/sun-jre-1.4.2.03:
40 First version of the Sun JRE, I primarily based this on the sun-jdk-1.4.2.03
41 ebuild, I hope I ported it over correctly
42 -
43
44
45
46 1.1 dev-java/sun-jre-bin/sun-jre-bin-1.6.0.35.ebuild
47
48 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/sun-jre-bin/sun-jre-bin-1.6.0.35.ebuild?rev=1.1&view=markup
49 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/sun-jre-bin/sun-jre-bin-1.6.0.35.ebuild?rev=1.1&content-type=text/plain
50
51 Index: sun-jre-bin-1.6.0.35.ebuild
52 ===================================================================
53 # Copyright 1999-2012 Gentoo Foundation
54 # Distributed under the terms of the GNU General Public License v2
55 # $Header: /var/cvsroot/gentoo-x86/dev-java/sun-jre-bin/sun-jre-bin-1.6.0.35.ebuild,v 1.1 2012/08/31 10:45:04 caster Exp $
56
57 EAPI="4"
58
59 inherit java-vm-2 eutils prefix versionator
60
61 # This URIs need to be updated when bumping!
62 JRE_URI="http://www.oracle.com/technetwork/java/javase/downloads/jre6-downloads-1637595.html"
63
64 MY_PV="$(get_version_component_range 2)u$(get_version_component_range 4)"
65 S_PV="$(replace_version_separator 3 '_')"
66
67 X86_AT="jre-${MY_PV}-linux-i586.bin"
68 AMD64_AT="jre-${MY_PV}-linux-x64.bin"
69 IA64_AT="jre-${MY_PV}-linux-ia64.bin"
70
71 DESCRIPTION="Oracle's Java SE Runtime Environment"
72 HOMEPAGE="http://www.oracle.com/technetwork/java/javase/"
73 SRC_URI="
74 amd64? ( ${AMD64_AT} )
75 x86? ( ${X86_AT} )"
76 # ia64? ( ${IA64_AT} )
77
78 LICENSE="Oracle-BCLA-JavaSE"
79 SLOT="1.6"
80 KEYWORDS="~amd64 ~x86"
81
82 IUSE="X alsa jce nsplugin pax_kernel"
83
84 RESTRICT="fetch strip"
85
86 RDEPEND="
87 X? (
88 x11-libs/libXext
89 x11-libs/libXi
90 x11-libs/libXrender
91 x11-libs/libXtst
92 x11-libs/libX11
93 )
94 alsa? ( media-libs/alsa-lib )
95 jce? ( dev-java/sun-jce-bin:1.6 )
96 !prefix? ( sys-libs/glibc )"
97 # scanelf won't create a PaX header, so depend on paxctl to avoid fallback
98 # marking. #427642
99 DEPEND="
100 pax_kernel? ( sys-apps/paxctl )"
101
102 S="${WORKDIR}/jre${S_PV}"
103
104 pkg_nofetch() {
105 if use x86; then
106 AT=${X86_AT}
107 elif use amd64; then
108 AT=${AMD64_AT}
109 elif use ia64; then
110 AT=${IA64_AT}
111 fi
112
113 einfo "Due to Oracle no longer providing the distro-friendly DLJ bundles, the package"
114 einfo "has become fetch restricted again. Alternatives are switching to"
115 einfo "dev-java/icedtea-bin:6 or the source-based dev-java/icedtea:6"
116 einfo ""
117 einfo "Please download ${AT} from:"
118 einfo "${JRE_URI}"
119 einfo "and move it to ${DISTDIR}"
120 }
121
122 src_unpack() {
123 sh "${DISTDIR}"/${A} -noregister || die "Failed to unpack"
124 }
125
126 src_compile() {
127 # This needs to be done before CDS - #215225
128 java-vm_set-pax-markings "${S}"
129
130 # see bug #207282
131 einfo "Creating the Class Data Sharing archives"
132 if use x86; then
133 bin/java -client -Xshare:dump || die
134 fi
135 # limit heap size for large memory on x86 #405239
136 # this is a workaround and shouldn't be needed.
137 bin/java -server -Xmx64m -Xshare:dump || die
138 }
139
140 src_install() {
141 local dest="/opt/${P}"
142 local ddest="${ED}${dest}"
143
144 # We should not need the ancient plugin for Firefox 2 anymore, plus it has
145 # writable executable segments
146 if use x86; then
147 rm -vf lib/i386/libjavaplugin_oji.so \
148 lib/i386/libjavaplugin_nscp*.so
149 rm -vrf plugin/i386
150 fi
151 # Without nsplugin flag, also remove the new plugin
152 local arch=${ARCH};
153 use x86 && arch=i386;
154 if ! use nsplugin; then
155 rm -vf lib/${arch}/libnpjp2.so \
156 lib/${arch}/libjavaplugin_jni.so
157 fi
158
159 dodir "${dest}"
160 cp -pPR bin lib man "${ddest}" || die
161
162 # Remove empty dirs we might have copied
163 find "${D}" -type d -empty -exec rmdir {} + || die
164
165 dodoc COPYRIGHT README
166
167 if use jce; then
168 dodir "${dest}"/lib/security/strong-jce
169 mv "${ddest}"/lib/security/US_export_policy.jar \
170 "${ddest}"/lib/security/strong-jce || die
171 mv "${ddest}"/lib/security/local_policy.jar \
172 "${ddest}"/lib/security/strong-jce || die
173 dosym /opt/sun-jce-bin-1.6.0/jre/lib/security/unlimited-jce/US_export_policy.jar \
174 "${dest}"/lib/security/US_export_policy.jar
175 dosym /opt/sun-jce-bin-1.6.0/jre/lib/security/unlimited-jce/local_policy.jar \
176 "${dest}"/lib/security/local_policy.jar
177 fi
178
179 if use nsplugin; then
180 install_mozilla_plugin "${dest}"/lib/${arch}/libnpjp2.so
181 fi
182
183 # Install desktop file for the Java Control Panel.
184 # Using ${PN}-${SLOT} to prevent file collision with jre and or other slots.
185 # make_desktop_entry can't be used as ${P} would end up in filename.
186 newicon lib/desktop/icons/hicolor/48x48/apps/sun-jcontrol.png \
187 sun-jcontrol-${PN}-${SLOT}.png || die
188 sed -e "s#Name=.*#Name=Java Control Panel for Oracle JDK ${SLOT} (${PN})#" \
189 -e "s#Exec=.*#Exec=${dest}/bin/jcontrol#" \
190 -e "s#Icon=.*#Icon=sun-jcontrol-${PN}-${SLOT}.png#" \
191 lib/desktop/applications/sun_java.desktop > \
192 "${T}"/jcontrol-${PN}-${SLOT}.desktop || die
193 domenu "${T}"/jcontrol-${PN}-${SLOT}.desktop
194
195 # http://docs.oracle.com/javase/6/docs/technotes/guides/intl/fontconfig.html
196 rm "${ddest}"/lib/fontconfig.* || die
197 cp "${FILESDIR}"/fontconfig.Gentoo.properties-r1 "${T}"/fontconfig.properties || die
198 eprefixify "${T}"/fontconfig.properties
199 insinto "${dest}"/lib/
200 doins "${T}"/fontconfig.properties
201
202 set_java_env "${FILESDIR}/${VMHANDLE}.env-r1"
203 java-vm_revdep-mask
204 }
205
206 QA_TEXTRELS_x86="
207 opt/${P}/lib/i386/client/libjvm.so
208 opt/${P}/lib/i386/motif21/libmawt.so
209 opt/${P}/lib/i386/server/libjvm.so"
210 QA_FLAGS_IGNORED="
211 /opt/${P}/bin/java
212 /opt/${P}/bin/java_vm
213 /opt/${P}/bin/javaws
214 /opt/${P}/bin/keytool
215 /opt/${P}/bin/orbd
216 /opt/${P}/bin/pack200
217 /opt/${P}/bin/policytool
218 /opt/${P}/bin/rmid
219 /opt/${P}/bin/rmiregistry
220 /opt/${P}/bin/servertool
221 /opt/${P}/bin/tnameserv
222 /opt/${P}/bin/unpack200
223 /opt/${P}/lib/jexec"
224 for java_system_arch in amd64 i386; do
225 QA_FLAGS_IGNORED+="
226 /opt/${P}/lib/${java_system_arch}/headless/libmawt.so
227 /opt/${P}/lib/${java_system_arch}/jli/libjli.so
228 /opt/${P}/lib/${java_system_arch}/libawt.so
229 /opt/${P}/lib/${java_system_arch}/libcmm.so
230 /opt/${P}/lib/${java_system_arch}/libdcpr.so
231 /opt/${P}/lib/${java_system_arch}/libdeploy.so
232 /opt/${P}/lib/${java_system_arch}/libdt_socket.so
233 /opt/${P}/lib/${java_system_arch}/libfontmanager.so
234 /opt/${P}/lib/${java_system_arch}/libhprof.so
235 /opt/${P}/lib/${java_system_arch}/libinstrument.so
236 /opt/${P}/lib/${java_system_arch}/libioser12.so
237 /opt/${P}/lib/${java_system_arch}/libj2gss.so
238 /opt/${P}/lib/${java_system_arch}/libj2pcsc.so
239 /opt/${P}/lib/${java_system_arch}/libj2pkcs11.so
240 /opt/${P}/lib/${java_system_arch}/libjaas_unix.so
241 /opt/${P}/lib/${java_system_arch}/libjava_crw_demo.so
242 /opt/${P}/lib/${java_system_arch}/libjavaplugin_jni.so
243 /opt/${P}/lib/${java_system_arch}/libjava.so
244 /opt/${P}/lib/${java_system_arch}/libjawt.so
245 /opt/${P}/lib/${java_system_arch}/libJdbcOdbc.so
246 /opt/${P}/lib/${java_system_arch}/libjdwp.so
247 /opt/${P}/lib/${java_system_arch}/libjpeg.so
248 /opt/${P}/lib/${java_system_arch}/libjsig.so
249 /opt/${P}/lib/${java_system_arch}/libjsoundalsa.so
250 /opt/${P}/lib/${java_system_arch}/libjsound.so
251 /opt/${P}/lib/${java_system_arch}/libmanagement.so
252 /opt/${P}/lib/${java_system_arch}/libmlib_image.so
253 /opt/${P}/lib/${java_system_arch}/libnative_chmod_g.so
254 /opt/${P}/lib/${java_system_arch}/libnative_chmod.so
255 /opt/${P}/lib/${java_system_arch}/libnet.so
256 /opt/${P}/lib/${java_system_arch}/libnio.so
257 /opt/${P}/lib/${java_system_arch}/libnpjp2.so
258 /opt/${P}/lib/${java_system_arch}/libnpt.so
259 /opt/${P}/lib/${java_system_arch}/librmi.so
260 /opt/${P}/lib/${java_system_arch}/libsplashscreen.so
261 /opt/${P}/lib/${java_system_arch}/libunpack.so
262 /opt/${P}/lib/${java_system_arch}/libverify.so
263 /opt/${P}/lib/${java_system_arch}/libzip.so
264 /opt/${P}/lib/${java_system_arch}/motif21/libmawt.so
265 /opt/${P}/lib/${java_system_arch}/native_threads/libhpi.so
266 /opt/${P}/lib/${java_system_arch}/server/libjvm.so
267 /opt/${P}/lib/${java_system_arch}/xawt/libmawt.so"
268 done