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/icedtea: ChangeLog icedtea-6.1.12.5.ebuild
Date: Thu, 23 May 2013 05:45:39
Message-Id: 20130523054535.B420E2171D@flycatcher.gentoo.org
1 caster 13/05/23 05:45:35
2
3 Modified: ChangeLog
4 Added: icedtea-6.1.12.5.ebuild
5 Log:
6 Version bump, security bug #466822.
7
8 (Portage version: 2.2.0_alpha171/cvs/Linux x86_64, signed Manifest commit with key 4E61DE84)
9
10 Revision Changes Path
11 1.95 dev-java/icedtea/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/icedtea/ChangeLog?rev=1.95&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/icedtea/ChangeLog?rev=1.95&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/icedtea/ChangeLog?r1=1.94&r2=1.95
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-java/icedtea/ChangeLog,v
20 retrieving revision 1.94
21 retrieving revision 1.95
22 diff -u -r1.94 -r1.95
23 --- ChangeLog 17 Mar 2013 15:26:36 -0000 1.94
24 +++ ChangeLog 23 May 2013 05:45:35 -0000 1.95
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-java/icedtea
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-java/icedtea/ChangeLog,v 1.94 2013/03/17 15:26:36 hwoarang Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-java/icedtea/ChangeLog,v 1.95 2013/05/23 05:45:35 caster Exp $
30 +
31 +*icedtea-6.1.12.5 (22 May 2013)
32 +
33 + 22 May 2013; Vlastimil Babka <caster@g.o> +icedtea-6.1.12.5.ebuild:
34 + Version bump, security bug #466822.
35
36 17 Mar 2013; Markos Chandras <hwoarang@g.o> metadata.xml:
37 Add proxy-maintainers to metadata.xml
38
39
40
41 1.1 dev-java/icedtea/icedtea-6.1.12.5.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/icedtea/icedtea-6.1.12.5.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/icedtea/icedtea-6.1.12.5.ebuild?rev=1.1&content-type=text/plain
45
46 Index: icedtea-6.1.12.5.ebuild
47 ===================================================================
48 # Copyright 1999-2013 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-java/icedtea/icedtea-6.1.12.5.ebuild,v 1.1 2013/05/23 05:45:35 caster Exp $
51 # Build written by Andrew John Hughes (gnu_andrew@××××××××××.org)
52
53 # *********************************************************
54 # * IF YOU CHANGE THIS EBUILD, CHANGE ICEDTEA-7.* AS WELL *
55 # *********************************************************
56
57 EAPI="4"
58
59 inherit java-pkg-2 java-vm-2 pax-utils prefix versionator virtualx
60
61 ICEDTEA_PKG=${PN}$(replace_version_separator 1 -)
62 ICEDTEA_BRANCH=$(get_version_component_range 2-3)
63 OPENJDK_BUILD="27"
64 OPENJDK_DATE="26_oct_2012"
65 OPENJDK_TARBALL="openjdk-6-src-b${OPENJDK_BUILD}-${OPENJDK_DATE}.tar.gz"
66 # Download cacao and jamvm regardless for use with EXTRA_ECONF
67 CACAO_TARBALL="68fe50ac34ec.tar.gz"
68 JAMVM_TARBALL="jamvm-0972452d441544f7dd29c55d64f1ce3a5db90d82.tar.gz"
69
70 CACAO_GENTOO_TARBALL="icedtea-${ICEDTEA_BRANCH}-cacao-${CACAO_TARBALL}"
71 JAMVM_GENTOO_TARBALL="icedtea-${ICEDTEA_BRANCH}-${JAMVM_TARBALL}"
72
73 DESCRIPTION="A harness to build OpenJDK using Free Software build tools and dependencies"
74 HOMEPAGE="http://icedtea.classpath.org"
75 SRC_URI="
76 http://icedtea.classpath.org/download/source/${ICEDTEA_PKG}.tar.gz
77 http://download.java.net/openjdk/jdk6/promoted/b${OPENJDK_BUILD}/${OPENJDK_TARBALL}
78 http://icedtea.classpath.org/download/drops/cacao/${CACAO_TARBALL} -> ${CACAO_GENTOO_TARBALL}
79 http://icedtea.classpath.org/download/drops/jamvm/${JAMVM_TARBALL} -> ${JAMVM_GENTOO_TARBALL}"
80
81 LICENSE="Apache-1.1 Apache-2.0 GPL-1 GPL-2 GPL-2-with-linking-exception LGPL-2 MPL-1.0 MPL-1.1 public-domain W3C"
82 SLOT="6"
83 KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~ppc64 ~x86"
84
85 IUSE="+X +alsa cacao cjk +cups debug doc examples javascript +jbootstrap +nsplugin
86 +nss pax_kernel pulseaudio +source systemtap test +webstart"
87
88 # Ideally the following were optional at build time.
89 ALSA_COMMON_DEP="
90 >=media-libs/alsa-lib-1.0"
91 CUPS_COMMON_DEP="
92 >=net-print/cups-1.2.12"
93 X_COMMON_DEP="
94 dev-libs/glib
95 >=media-libs/freetype-2.3.5
96 >=x11-libs/gtk+-2.8:2
97 >=x11-libs/libX11-1.1.3
98 >=x11-libs/libXext-1.1.1
99 >=x11-libs/libXi-1.1.3
100 >=x11-libs/libXrender-0.9.4
101 >=x11-libs/libXtst-1.0.3"
102 X_DEPEND="
103 >=x11-libs/libXau-1.0.3
104 >=x11-libs/libXdmcp-1.0.2
105 >=x11-libs/libXinerama-1.0.2
106 x11-proto/inputproto
107 >=x11-proto/xextproto-7.1.1
108 x11-proto/xineramaproto
109 x11-proto/xproto"
110
111 COMMON_DEP="
112 >=media-libs/giflib-4.1.6
113 >=media-libs/libpng-1.2
114 >=sys-libs/zlib-1.2.3
115 virtual/jpeg
116 javascript? ( dev-java/rhino:1.6 )
117 nss? ( >=dev-libs/nss-3.12.5-r1 )
118 pulseaudio? ( >=media-sound/pulseaudio-0.9.11 )
119 systemtap? ( >=dev-util/systemtap-1 )"
120
121 # media-fonts/lklug needs ppc ppc64 keywords
122 RDEPEND="${COMMON_DEP}
123 !dev-java/icedtea6
124 X? (
125 ${X_COMMON_DEP}
126 media-fonts/dejavu
127 cjk? (
128 media-fonts/arphicfonts
129 media-fonts/baekmuk-fonts
130 !ppc? ( !ppc64? ( media-fonts/lklug ) )
131 media-fonts/lohit-fonts
132 media-fonts/sazanami
133 )
134 )
135 alsa? ( ${ALSA_COMMON_DEP} )
136 cups? ( ${CUPS_COMMON_DEP} )"
137
138 # Only ant-core-1.8.1 has fixed ant -diagnostics when xerces+xalan are not present.
139 # ca-certificates, perl and openssl are used for the cacerts keystore generation
140 # xext headers have two variants depending on version - bug #288855
141 # !eclipse-ecj-3.7 - bug #392587
142 # autoconf - as long as we use eautoreconf, version restrictions for bug #294918
143 DEPEND="${COMMON_DEP} ${ALSA_COMMON_DEP} ${CUPS_COMMON_DEP} ${X_COMMON_DEP}
144 || (
145 >=dev-java/gcj-jdk-4.3
146 dev-java/icedtea-bin:6
147 dev-java/icedtea:6
148 )
149 app-arch/cpio
150 app-arch/unzip
151 app-arch/zip
152 app-misc/ca-certificates
153 >=dev-java/ant-core-1.8.1
154 dev-java/ant-nodeps
155 dev-lang/perl
156 >=dev-libs/libxslt-1.1.26
157 dev-libs/openssl
158 virtual/pkgconfig
159 sys-apps/lsb-release
160 ${X_DEPEND}
161 pax_kernel? ( sys-apps/paxctl )"
162
163 PDEPEND="webstart? ( dev-java/icedtea-web:6 )
164 nsplugin? ( dev-java/icedtea-web:6[nsplugin] )"
165
166 S="${WORKDIR}"/${ICEDTEA_PKG}
167
168 pkg_setup() {
169 JAVA_PKG_WANT_BUILD_VM="
170 icedtea-6 icedtea-bin-6 icedtea6 icedtea6-bin
171 gcj-jdk"
172 JAVA_PKG_WANT_SOURCE="1.5"
173 JAVA_PKG_WANT_TARGET="1.5"
174
175 java-vm-2_pkg_setup
176 java-pkg-2_pkg_setup
177 }
178
179 src_unpack() {
180 unpack ${ICEDTEA_PKG}.tar.gz
181 }
182
183 java_prepare() {
184 # icedtea doesn't like some locales. #330433 #389717
185 export LANG="C" LC_ALL="C"
186 }
187
188 bootstrap_impossible() {
189 # Fill this according to testing what works and what not
190 has "${1}" # icedtea6 icedtea-6 icedtea6-bin icedtea-bin-6
191 }
192
193 src_configure() {
194 local config bootstrap enable_cacao
195 local vm=$(java-pkg_get-current-vm)
196
197 # IcedTea6 can't be built using IcedTea7; its class files are too new
198 # Whether to bootstrap
199 bootstrap="disable"
200 if use jbootstrap; then
201 if bootstrap_impossible "${vm}"; then
202 einfo "Bootstrap with ${vm} is currently not possible and thus disabled, ignoring USE=jbootstrap"
203 else
204 bootstrap="enable"
205 fi
206 fi
207
208 if has "${vm}" gcj-jdk; then
209 # gcj-jdk ensures ecj is present.
210 use jbootstrap || einfo "bootstrap is necessary when building with ${vm}, ignoring USE=\"-jbootstrap\""
211 bootstrap="enable"
212 fi
213
214 config="${config} --${bootstrap}-bootstrap"
215
216 # Always use HotSpot as the primary VM if available. #389521 #368669 #357633 ...
217 # Otherwise use CACAO
218 if ! has "${ARCH}" amd64 sparc x86; then
219 enable_cacao=yes
220 elif use cacao; then
221 ewarn 'Enabling CACAO on an architecture with HotSpot support; issues may result.'
222 ewarn 'If so, please rebuild with USE="-cacao"'
223 enable_cacao=yes
224 fi
225
226 if [[ ${enable_cacao} ]]; then
227 config="${config} --enable-cacao"
228 fi
229
230 # OpenJDK-specific parallelism support. Bug #389791, #337827
231 # Implementation modified from waf-utils.eclass
232 # Note that "-j" is converted to "-j1" as the system doesn't support --load-average
233 local procs=$(echo -j1 ${MAKEOPTS} | sed -r "s/.*(-j\s*|--jobs=)([0-9]+).*/\2/" )
234 config="${config} --with-parallel-jobs=${procs}";
235 einfo "Configuring using --with-parallel-jobs=${procs}"
236
237 if use javascript ; then
238 config="${config} --with-rhino=$(java-pkg_getjar rhino-1.6 js.jar)"
239 else
240 config="${config} --without-rhino"
241 fi
242
243 unset JAVA_HOME JDK_HOME CLASSPATH JAVAC JAVACFLAGS
244
245 econf ${config} \
246 --with-openjdk-src-zip="${DISTDIR}/${OPENJDK_TARBALL}" \
247 --with-cacao-src-zip="${DISTDIR}/${CACAO_GENTOO_TARBALL}" \
248 --with-jamvm-src-zip="${DISTDIR}/${JAMVM_GENTOO_TARBALL}" \
249 --with-jdk-home="$(java-config -O)" \
250 --with-abs-install-dir=/usr/$(get_libdir)/icedtea${SLOT} \
251 --disable-downloading \
252 $(use_enable !debug optimizations) \
253 $(use_enable doc docs) \
254 $(use_enable nss) \
255 $(use_enable pulseaudio pulse-java) \
256 $(use_enable systemtap) \
257 $(use_with pax_kernel pax paxctl)
258 }
259
260 src_compile() {
261 # Would use GENTOO_VM otherwise.
262 export ANT_RESPECT_JAVA_HOME=TRUE
263
264 # Load the least that's needed to avoid possible classpath collisions.
265 export ANT_TASKS="ant-nodeps"
266
267 emake
268 }
269
270 src_test() {
271 # Use Xvfb for tests
272 unset DISPLAY
273
274 Xemake check
275 }
276
277 src_install() {
278 local dest="/usr/$(get_libdir)/icedtea${SLOT}"
279 local ddest="${ED}/${dest}"
280 dodir "${dest}"
281
282 dodoc README NEWS AUTHORS
283 dosym /usr/share/doc/${PF} /usr/share/doc/${PN}${SLOT}
284
285 cd openjdk.build/j2sdk-image || die
286
287 # Ensures HeadlessGraphicsEnvironment is used.
288 if ! use X; then
289 rm -r jre/lib/$(get_system_arch)/xawt || die
290 fi
291
292 # Don't hide classes
293 rm lib/ct.sym || die
294
295 #402507
296 mkdir jre/.systemPrefs || die
297 touch jre/.systemPrefs/.system.lock || die
298 touch jre/.systemPrefs/.systemRootModFile || die
299
300 # doins can't handle symlinks.
301 cp -vRP bin include jre lib man "${ddest}" || die
302
303 dodoc ASSEMBLY_EXCEPTION THIRD_PARTY_README
304
305 if use doc; then
306 # java-pkg_dohtml needed for package-list #302654
307 java-pkg_dohtml -r ../docs/* || die
308 fi
309
310 if use examples; then
311 dodir "${dest}/share";
312 cp -vRP demo sample "${ddest}/share/" || die
313 fi
314
315 if use source; then
316 cp src.zip "${ddest}" || die
317 fi
318
319 # Fix the permissions.
320 find "${ddest}" \! -type l \( -perm /111 -exec chmod 755 {} \; -o -exec chmod 644 {} \; \) || die
321
322 # Needs to be done before generating cacerts
323 java-vm_set-pax-markings "${ddest}"
324
325 # We need to generate keystore - bug #273306
326 einfo "Generating cacerts file from certificates in ${EPREFIX}/usr/share/ca-certificates/"
327 mkdir "${T}/certgen" && cd "${T}/certgen" || die
328 cp "${FILESDIR}/generate-cacerts.pl" . && chmod +x generate-cacerts.pl || die
329 for c in "${EPREFIX}"/usr/share/ca-certificates/*/*.crt; do
330 openssl x509 -text -in "${c}" >> all.crt || die
331 done
332 ./generate-cacerts.pl "${ddest}/bin/keytool" all.crt || die
333 cp -vRP cacerts "${ddest}/jre/lib/security/" || die
334 chmod 644 "${ddest}/jre/lib/security/cacerts" || die
335
336 # Bug 390663
337 cp "${FILESDIR}"/fontconfig.Gentoo.properties.src "${T}"/fontconfig.Gentoo.properties || die
338 eprefixify "${T}"/fontconfig.Gentoo.properties
339 insinto "${dest}"/jre/lib
340 doins "${T}"/fontconfig.Gentoo.properties
341
342 set_java_env "${FILESDIR}/icedtea.env"
343 if ! use X || ! use alsa || ! use cups; then
344 java-vm_revdep-mask "${dest}"
345 fi
346 }
347
348 pkg_preinst() {
349 if has_version "<=dev-java/icedtea-6.1.10.4:${SLOT}"; then
350 # portage would preserve the symlink otherwise, related to bug #384397
351 rm -f "${EROOT}/usr/lib/jvm/icedtea6"
352 elog "To unify the layout and simplify scripts, the identifier of Icedtea-6*"
353 elog "has changed from 'icedtea6' to 'icedtea-6' starting from version 6.1.10.4-r1"
354 elog "If you had icedtea6 as system VM, the change should be automatic, however"
355 elog "build VM settings in /etc/java-config-2/build/jdk.conf are not changed"
356 elog "and the same holds for any user VM settings. Sorry for the inconvenience."
357 fi
358 }