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