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