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