Gentoo Archives: gentoo-commits

From: "Ralph Sennhauser (sera)" <sera@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-java/sun-jdk: sun-jdk-1.6.0.43.ebuild ChangeLog sun-jdk-1.6.0.39.ebuild
Date: Wed, 06 Mar 2013 09:12:48
Message-Id: 20130306091245.03EB72171D@flycatcher.gentoo.org
1 sera 13/03/06 09:12:44
2
3 Modified: ChangeLog
4 Added: sun-jdk-1.6.0.43.ebuild
5 Removed: sun-jdk-1.6.0.39.ebuild
6 Log:
7 Security bump. #460360
8
9 (Portage version: 2.1.11.52/cvs/Linux x86_64, signed Manifest commit with key 3C5CF75A)
10
11 Revision Changes Path
12 1.353 dev-java/sun-jdk/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/sun-jdk/ChangeLog?rev=1.353&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/sun-jdk/ChangeLog?rev=1.353&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/sun-jdk/ChangeLog?r1=1.352&r2=1.353
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/dev-java/sun-jdk/ChangeLog,v
21 retrieving revision 1.352
22 retrieving revision 1.353
23 diff -u -r1.352 -r1.353
24 --- ChangeLog 24 Feb 2013 08:27:32 -0000 1.352
25 +++ ChangeLog 6 Mar 2013 09:12:44 -0000 1.353
26 @@ -1,6 +1,12 @@
27 # ChangeLog for dev-java/sun-jdk
28 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-jdk/ChangeLog,v 1.352 2013/02/24 08:27:32 sera Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-jdk/ChangeLog,v 1.353 2013/03/06 09:12:44 sera Exp $
31 +
32 +*sun-jdk-1.6.0.43 (06 Mar 2013)
33 +
34 + 06 Mar 2013; Ralph Sennhauser <sera@g.o> -sun-jdk-1.6.0.39.ebuild,
35 + +sun-jdk-1.6.0.43.ebuild:
36 + Security bump. #460360
37
38 24 Feb 2013; Ralph Sennhauser <sera@g.o> sun-jdk-1.6.0.41.ebuild:
39 Mark stable for amd64 and x86 wrt #458444
40
41
42
43 1.1 dev-java/sun-jdk/sun-jdk-1.6.0.43.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/sun-jdk/sun-jdk-1.6.0.43.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/sun-jdk/sun-jdk-1.6.0.43.ebuild?rev=1.1&content-type=text/plain
47
48 Index: sun-jdk-1.6.0.43.ebuild
49 ===================================================================
50 # Copyright 1999-2013 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/dev-java/sun-jdk/sun-jdk-1.6.0.43.ebuild,v 1.1 2013/03/06 09:12:44 sera Exp $
53
54 EAPI="5"
55
56 inherit eutils java-vm-2 prefix versionator
57
58 # This URIs need to be updated when bumping!
59 JDK_URI="http://www.oracle.com/technetwork/java/javase/downloads/jdk6downloads-1902814.html"
60 JCE_URI="http://www.oracle.com/technetwork/java/javase/downloads/jce-6-download-429243.html"
61 # This is a list of archs supported by this update. Currently ia64 comes and goes ...
62 AT_AVAILABLE=( amd64 ia64 x86 x64-solaris x86-solaris sparc-solaris sparc64-solaris )
63 # somtimes the demos are missing
64 DEMOS_AVAILABLE=( amd64 ia64 x86 x64-solaris x86-solaris sparc-solaris sparc64-solaris )
65
66 MY_PV="$(get_version_component_range 2)u$(get_version_component_range 4)"
67 S_PV="$(replace_version_separator 3 '_')"
68
69 AT_x86="jdk-${MY_PV}-linux-i586.bin"
70 AT_amd64="jdk-${MY_PV}-linux-x64.bin"
71 AT_ia64="jdk-${MY_PV}-linux-ia64.bin"
72 AT_x86_solaris="jdk-${MY_PV}-solaris-i586.sh"
73 AT_x64_solaris="${AT_x86_solaris} jdk-${MY_PV}-solaris-x64.sh"
74 AT_sparc_solaris="jdk-${MY_PV}-solaris-sparc.sh"
75 AT_sparc64_solaris="${AT_sparc_solaris} jdk-${MY_PV}-solaris-sparcv9.sh"
76
77 DEMOS_x86="jdk-${MY_PV}-linux-i586-demos.tar.gz"
78 DEMOS_amd64="jdk-${MY_PV}-linux-x64-demos.tar.gz"
79 DEMOS_ia64="jdk-${MY_PV}-linux-ia64-demos.tar.gz"
80 DEMOS_x86_solaris="jdk-${MY_PV}-solaris-i586-demos.tar.Z"
81 DEMOS_x64_solaris="${DEMOS_x86_solaris} jdk-${MY_PV}-solaris-x64-demos.tar.Z"
82 DEMOS_sparc_solaris="jdk-${MY_PV}-solaris-sparc-demos.tar.Z"
83 DEMOS_sparc64_solaris="${DEMOS_sparc_solaris} jdk-${MY_PV}-solaris-sparcv9-demos.tar.Z"
84
85 JCE_FILE="jce_policy-6.zip"
86
87 DESCRIPTION="Oracle's Java SE Development Kit"
88 HOMEPAGE="http://www.oracle.com/technetwork/java/javase/"
89 for d in "${AT_AVAILABLE[@]}"; do
90 SRC_URI+=" ${d}? ("
91 SRC_URI+=" $(eval "echo \${$(echo AT_${d/-/_})}")"
92 if has ${d} "${DEMOS_AVAILABLE[@]}"; then
93 SRC_URI+=" examples? ( $(eval "echo \${$(echo DEMOS_${d/-/_})}") )"
94 fi
95 SRC_URI+=" )"
96 done
97 unset d
98 SRC_URI+=" jce? ( ${JCE_FILE} )"
99
100 LICENSE="Oracle-BCLA-JavaSE examples? ( BSD )"
101 SLOT="1.6"
102 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
103 IUSE="+X alsa derby doc examples jce kernel_SunOS nsplugin pax_kernel source"
104
105 RESTRICT="fetch strip"
106 QA_PREBUILT="*"
107
108 RDEPEND="
109 X? (
110 x11-libs/libX11
111 x11-libs/libXext
112 x11-libs/libXi
113 x11-libs/libXt
114 x11-libs/libXtst
115 )
116 alsa? ( media-libs/alsa-lib )
117 doc? ( dev-java/java-sdk-docs:1.6.0 )
118 !prefix? ( sys-libs/glibc )"
119 # scanelf won't create a PaX header, so depend on paxctl to avoid fallback
120 # marking. #427642
121 DEPEND="
122 jce? ( app-arch/unzip )
123 kernel_SunOS? ( app-arch/unzip )
124 pax_kernel? ( sys-apps/paxctl )"
125
126 S="${WORKDIR}"/jdk${S_PV}
127
128 check_tarballs_available() {
129 local uri=$1; shift
130 local dl= unavailable=
131 for dl in "${@}"; do
132 [[ ! -f "${DISTDIR}/${dl}" ]] && unavailable+=" ${dl}"
133 done
134
135 if [[ -n "${unavailable}" ]]; then
136 if [[ -z ${_check_tarballs_available_once} ]]; then
137 einfo
138 einfo "Due to Oracle no longer providing the distro-friendly DLJ bundles, the package"
139 einfo "has become fetch restricted again. Alternatives are switching to"
140 einfo "dev-java/icedtea-bin:6 or the source-based dev-java/icedtea:6"
141 einfo
142 einfo "Oracle requires you to download the needed files manually after"
143 einfo "accepting their license through a javascript capable web browser."
144 einfo
145 _check_tarballs_available_once=1
146 fi
147 einfo "Download the following files:"
148 for dl in ${unavailable}; do
149 einfo " ${dl}"
150 done
151 einfo "at '${uri}'"
152 einfo "and move them to '${DISTDIR}'"
153 einfo
154 fi
155 }
156
157 pkg_nofetch() {
158 local distfiles=( $(eval "echo \${$(echo AT_${ARCH/-/_})}") )
159 if use examples && has ${ARCH} "${DEMOS_AVAILABLE[@]}"; then
160 distfiles+=( $(eval "echo \${$(echo DEMOS_${ARCH/-/_})}") )
161 fi
162 check_tarballs_available "${JDK_URI}" "${distfiles[@]}"
163
164 use jce && check_tarballs_available "${JCE_URI}" "${JCE_FILE}"
165 }
166
167 src_unpack() {
168 AT=( $(eval "echo \${$(echo AT_${ARCH/-/_})}") )
169 DEMOS=( $(eval "echo \${$(echo DEMOS_${ARCH/-/_})}") )
170
171 if use kernel_SunOS; then
172 for i in ${AT}; do
173 rm -f "${S}"/jre/{LICENSE,README} "${S}"/LICENSE
174 # don't die on unzip, it always "fails"
175 unzip "${DISTDIR}"/${i}
176 done
177 for f in $(find "${S}" -name "*.pack") ; do
178 "${S}"/bin/unpack200 ${f} ${f%.pack}.jar
179 rm ${f}
180 done
181 else
182 sh "${DISTDIR}"/${AT} -noregister || die "Failed to unpack"
183 fi
184
185 if has "${ARCH}" "${DEMOS_AVAILABLE[@]}" && use examples ; then
186 unpack ${DEMOS}
187 if use kernel_SunOS; then
188 mv "${WORKDIR}"/SUNWj6dmo/reloc/jdk/instances/jdk1.6.0/{demo,sample} "${S}"/ || die
189 fi
190 fi
191
192 if use jce; then
193 unpack ${JCE_FILE}
194 mv jce "${S}"/jre/lib/security/unlimited-jce || die
195 fi
196 }
197
198 src_compile() {
199 # This needs to be done before CDS - #215225
200 java-vm_set-pax-markings "${S}"
201
202 # see bug #207282
203 einfo "Creating the Class Data Sharing archives"
204 if use x86; then
205 bin/java -client -Xshare:dump || die
206 fi
207 # limit heap size for large memory on x86 #405239
208 # this is a workaround and shouldn't be needed.
209 bin/java -server -Xmx64m -Xshare:dump || die
210 }
211
212 src_install() {
213 local dest="/opt/${P}"
214 local ddest="${ED}${dest}"
215
216 # We should not need the ancient plugin for Firefox 2 anymore, plus it has
217 # writable executable segments
218 if use x86; then
219 rm -vf {,jre/}lib/i386/libjavaplugin_oji.so \
220 {,jre/}lib/i386/libjavaplugin_nscp*.so
221 rm -vrf jre/plugin/i386
222 fi
223 # Without nsplugin flag, also remove the new plugin
224 local arch=${ARCH};
225 use x86 && arch=i386;
226 if ! use nsplugin; then
227 rm -vf {,jre/}lib/${arch}/libnpjp2.so \
228 {,jre/}lib/${arch}/libjavaplugin_jni.so
229 fi
230
231 dodoc COPYRIGHT
232 dohtml README.html
233
234 dodir "${dest}"
235 cp -pPR bin include jre lib man "${ddest}" || die
236
237 if use derby; then
238 cp -pPR db "${ddest}" || die
239 fi
240
241 if use examples && has ${ARCH} "${DEMOS_AVAILABLE[@]}"; then
242 cp -pPR demo sample "${ddest}" || die
243 fi
244
245 if use jce; then
246 dodir "${dest}"/jre/lib/security/strong-jce
247 mv "${ddest}"/jre/lib/security/US_export_policy.jar \
248 "${ddest}"/jre/lib/security/strong-jce || die
249 mv "${ddest}"/jre/lib/security/local_policy.jar \
250 "${ddest}"/jre/lib/security/strong-jce || die
251 dosym "${dest}"/jre/lib/security/unlimited-jce/US_export_policy.jar \
252 "${dest}"/jre/lib/security/US_export_policy.jar
253 dosym "${dest}"/jre/lib/security/unlimited-jce/local_policy.jar \
254 "${dest}"/jre/lib/security/local_policy.jar
255 fi
256
257 if use nsplugin; then
258 install_mozilla_plugin "${dest}"/jre/lib/${arch}/libnpjp2.so
259 fi
260
261 if use source; then
262 cp src.zip "${ddest}" || die
263 fi
264
265 # Install desktop file for the Java Control Panel.
266 # Using ${PN}-${SLOT} to prevent file collision with jre and or other slots.
267 # make_desktop_entry can't be used as ${P} would end up in filename.
268 newicon jre/lib/desktop/icons/hicolor/48x48/apps/sun-jcontrol.png \
269 sun-jcontrol-${PN}-${SLOT}.png || die
270 sed -e "s#Name=.*#Name=Java Control Panel for Oracle JDK ${SLOT} (sun-jdk)#" \
271 -e "s#Exec=.*#Exec=/opt/${P}/jre/bin/jcontrol#" \
272 -e "s#Icon=.*#Icon=sun-jcontrol-${PN}-${SLOT}#" \
273 -e "s#Application;##" \
274 -e "/Encoding/d" \
275 jre/lib/desktop/applications/sun_java.desktop \
276 > "${T}"/jcontrol-${PN}-${SLOT}.desktop || die
277 domenu "${T}"/jcontrol-${PN}-${SLOT}.desktop
278
279 # http://docs.oracle.com/javase/6/docs/technotes/guides/intl/fontconfig.html
280 rm "${ddest}"/jre/lib/fontconfig.* || die
281 cp "${FILESDIR}"/fontconfig.Gentoo.properties-r1 "${T}"/fontconfig.properties || die
282 eprefixify "${T}"/fontconfig.properties
283 insinto "${dest}"/jre/lib/
284 doins "${T}"/fontconfig.properties
285
286 # Remove empty dirs we might have copied
287 find "${D}" -type d -empty -exec rmdir -v {} + || die
288
289 set_java_env "${FILESDIR}/${VMHANDLE}.env-r1"
290 java-vm_revdep-mask
291 java-vm_sandbox-predict /dev/random
292 }
293
294 pkg_postinst() {
295 java-vm-2_pkg_postinst
296
297 elog "If you want Oracles JDK 7 'emerge oracle-jdk-bin' instead."
298 }