1 |
caster 10/03/31 11:55:46 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: icedtea-6.1.7.2.ebuild |
5 |
Log: |
6 |
Version bump, security bug #312297. |
7 |
(Portage version: 2.2_rc67/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.2 dev-java/icedtea/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/icedtea/ChangeLog?rev=1.2&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/icedtea/ChangeLog?rev=1.2&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/icedtea/ChangeLog?r1=1.1&r2=1.2 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/dev-java/icedtea/ChangeLog,v |
19 |
retrieving revision 1.1 |
20 |
retrieving revision 1.2 |
21 |
diff -u -r1.1 -r1.2 |
22 |
--- ChangeLog 4 Mar 2010 23:20:59 -0000 1.1 |
23 |
+++ ChangeLog 31 Mar 2010 11:55:46 -0000 1.2 |
24 |
@@ -1,6 +1,11 @@ |
25 |
# ChangeLog for dev-java/icedtea |
26 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/dev-java/icedtea/ChangeLog,v 1.1 2010/03/04 23:20:59 caster Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/dev-java/icedtea/ChangeLog,v 1.2 2010/03/31 11:55:46 caster Exp $ |
29 |
+ |
30 |
+*icedtea-6.1.7.2 (31 Mar 2010) |
31 |
+ |
32 |
+ 31 Mar 2010; Vlastimil Babka <caster@g.o> +icedtea-6.1.7.2.ebuild: |
33 |
+ Version bump, security bug #312297. |
34 |
|
35 |
*icedtea-6.1.7.1 (04 Mar 2010) |
36 |
|
37 |
|
38 |
|
39 |
|
40 |
1.1 dev-java/icedtea/icedtea-6.1.7.2.ebuild |
41 |
|
42 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/icedtea/icedtea-6.1.7.2.ebuild?rev=1.1&view=markup |
43 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/icedtea/icedtea-6.1.7.2.ebuild?rev=1.1&content-type=text/plain |
44 |
|
45 |
Index: icedtea-6.1.7.2.ebuild |
46 |
=================================================================== |
47 |
# Copyright 1999-2010 Gentoo Foundation |
48 |
# Distributed under the terms of the GNU General Public License v2 |
49 |
# $Header: /var/cvsroot/gentoo-x86/dev-java/icedtea/icedtea-6.1.7.2.ebuild,v 1.1 2010/03/31 11:55:46 caster Exp $ |
50 |
# Build written by Andrew John Hughes (gnu_andrew@××××××××××.org) |
51 |
|
52 |
# ********************************************************* |
53 |
# * IF YOU CHANGE THIS EBUILD, CHANGE ICEDTEA-7.* AS WELL * |
54 |
# ********************************************************* |
55 |
|
56 |
EAPI="2" |
57 |
|
58 |
inherit pax-utils java-pkg-2 java-vm-2 |
59 |
|
60 |
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" |
61 |
SLOT="6" |
62 |
KEYWORDS="~amd64 ~x86" |
63 |
|
64 |
DESCRIPTION="A harness to build the OpenJDK using Free Software build tools and dependencies" |
65 |
ICEDTEA_VER="1.7.2" |
66 |
ICEDTEA_PKG=icedtea${SLOT}-${ICEDTEA_VER} |
67 |
OPENJDK_BUILD="17" |
68 |
OPENJDK_DATE="14_oct_2009" |
69 |
OPENJDK_TARBALL="openjdk-6-src-b${OPENJDK_BUILD}-${OPENJDK_DATE}.tar.gz" |
70 |
HOTSPOT_TARBALL="62926c7f67a3.tar.gz" |
71 |
CACAO_TARBALL="cacao-0.99.4.tar.gz" |
72 |
SRC_URI="http://icedtea.classpath.org/download/source/${ICEDTEA_PKG}.tar.gz |
73 |
http://download.java.net/openjdk/jdk6/promoted/b${OPENJDK_BUILD}/${OPENJDK_TARBALL} |
74 |
http://hg.openjdk.java.net/hsx/hsx16/master/archive/${HOTSPOT_TARBALL} |
75 |
cacao? ( http://www.complang.tuwien.ac.at/cacaojvm/download/cacao-0.99.4/${CACAO_TARBALL} )" |
76 |
HOMEPAGE="http://icedtea.classpath.org" |
77 |
S=${WORKDIR}/${ICEDTEA_PKG} |
78 |
|
79 |
# Missing options: |
80 |
# shark - still experimental, requires llvm which is not yet packaged |
81 |
# visualvm - requries netbeans which would cause major bootstrap issues |
82 |
IUSE="cacao debug doc examples +hs16 javascript nio2 +npplugin nsplugin +nss pulseaudio systemtap +xrender zero" |
83 |
|
84 |
# JTReg doesn't pass at present |
85 |
RESTRICT="test" |
86 |
|
87 |
RDEPEND=">=net-print/cups-1.2.12 |
88 |
>=x11-libs/libX11-1.1.3 |
89 |
>=media-libs/freetype-2.3.5 |
90 |
>=media-libs/alsa-lib-1.0 |
91 |
>=x11-libs/gtk+-2.8 |
92 |
>=x11-libs/libXinerama-1.0.2 |
93 |
>=x11-libs/libXp-1.0.0 |
94 |
>=x11-libs/libXi-1.1.3 |
95 |
>=x11-libs/libXau-1.0.3 |
96 |
>=x11-libs/libXdmcp-1.0.2 |
97 |
>=x11-libs/libXtst-1.0.3 |
98 |
>=media-libs/jpeg-6b |
99 |
>=media-libs/libpng-1.2 |
100 |
>=media-libs/giflib-4.1.6 |
101 |
>=sys-libs/zlib-1.2.3 |
102 |
x11-proto/inputproto |
103 |
x11-proto/xineramaproto |
104 |
nsplugin? ( >=net-libs/xulrunner-1.9 ) |
105 |
pulseaudio? ( >=media-sound/pulseaudio-0.9.11 ) |
106 |
javascript? ( dev-java/rhino:1.6 ) |
107 |
zero? ( virtual/libffi ) |
108 |
xrender? ( >=x11-libs/libXrender-0.9.4 ) |
109 |
systemtap? ( >=dev-util/systemtap-1 ) |
110 |
!dev-java/icedtea6 |
111 |
nss? ( >=dev-libs/nss-3.12.5-r1 )" |
112 |
|
113 |
# Additional dependencies for building: |
114 |
# zip: extract OpenJDK tarball, and needed by configure |
115 |
# xalan/xerces: automatic code generation (also needed for Ant 1.8.0 to work properly) |
116 |
# ant, ecj, jdk: required to build Java code |
117 |
# Only ant-core-1.7.1-r2 and later contain a version of Ant that |
118 |
# properly respects environment variables, if the build |
119 |
# sets some environment variables. |
120 |
# ca-certificates, perl and openssl are used for the cacerts keystore generation |
121 |
# xext headers have two variants depending on version - bug #288855 |
122 |
DEPEND="${RDEPEND} |
123 |
|| ( |
124 |
dev-java/icedtea6-bin |
125 |
dev-java/icedtea:${SLOT} |
126 |
) |
127 |
>=virtual/jdk-1.5 |
128 |
app-arch/zip |
129 |
>=dev-java/xalan-2.7.0:0 |
130 |
>=dev-java/xerces-2.9.1:2 |
131 |
>=dev-java/ant-core-1.7.1-r2 |
132 |
app-misc/ca-certificates |
133 |
dev-lang/perl |
134 |
dev-libs/openssl |
135 |
|| ( |
136 |
( |
137 |
>=x11-libs/libXext-1.1.1 |
138 |
>=x11-proto/xextproto-7.1.1 |
139 |
x11-proto/xproto |
140 |
) |
141 |
<x11-libs/libXext-1.1.1 |
142 |
) |
143 |
sys-apps/lsb-release" |
144 |
|
145 |
pkg_setup() { |
146 |
# Shark support disabled for now - still experimental and needs sys-devel/llvm |
147 |
# if use shark ; then |
148 |
# if ( ! use x86 && ! use sparc && ! use ppc ) ; then |
149 |
# eerror "The Shark JIT has known issues on 64-bit platforms. Please rebuild" |
150 |
# errror "without the shark USE flag turned on." |
151 |
# die "Rebuild without the shark USE flag on." |
152 |
# fi |
153 |
# if ( ! use zero ) ; then |
154 |
# eerror "The use of the Shark JIT is only applicable when used with the zero assembler port."; |
155 |
# die "Rebuild without the shark USE flag on or with the zero USE flag turned on." |
156 |
# fi |
157 |
# fi |
158 |
|
159 |
if use nsplugin && ! use npplugin && has_version ">=net-libs/xulrunner-1.9.2"; then |
160 |
eerror "The old plugin will not work with xulrunner >= 1.9.2 / Firefox >= 3.6." |
161 |
die "Rebuild with the npplugin USE flag enabled." |
162 |
fi |
163 |
|
164 |
# quite a hack since java-config does not provide a way for a package |
165 |
# to limit supported VM's for building and their preferred order |
166 |
if [[ -n "${JAVA_PKG_FORCE_VM}" ]]; then |
167 |
einfo "Honoring user-set JAVA_PKG_FORCE_VM" |
168 |
elif has_version "dev-java/icedtea:${SLOT}"; then |
169 |
JAVA_PKG_FORCE_VM="icedtea6" |
170 |
elif has_version dev-java/icedtea6; then |
171 |
JAVA_PKG_FORCE_VM="icedtea6" |
172 |
elif has_version dev-java/icedtea6-bin; then |
173 |
JAVA_PKG_FORCE_VM="icedtea6-bin" |
174 |
elif has_version dev-java/gcj-jdk; then |
175 |
JAVA_PKG_FORCE_VM="gcj-jdk" |
176 |
elif has_version dev-java/cacao; then |
177 |
JAVA_PKG_FORCE_VM="cacao" |
178 |
else |
179 |
JAVA_PKG_FORCE_VM="" |
180 |
# don't die just yet if merging a binpkg - bug #258423 |
181 |
DIE_IF_NOT_BINPKG=true |
182 |
fi |
183 |
|
184 |
# if the previous failed, don't even run java eclasses pkg_setup |
185 |
# as it might also die when no VM is present |
186 |
if [[ -n "${JAVA_PKG_FORCE_VM}" ]]; then |
187 |
einfo "Forced vm ${JAVA_PKG_FORCE_VM}" |
188 |
java-vm-2_pkg_setup |
189 |
java-pkg-2_pkg_setup |
190 |
fi |
191 |
|
192 |
VMHANDLE="icedtea${SLOT}" |
193 |
} |
194 |
|
195 |
src_unpack() { |
196 |
if [[ -n ${DIE_IF_NOT_BINPKG} ]]; then |
197 |
die "Unable to find a supported VM for building" |
198 |
fi |
199 |
unpack ${ICEDTEA_PKG}.tar.gz |
200 |
} |
201 |
|
202 |
unset_vars() { |
203 |
unset JAVA_HOME JDK_HOME CLASSPATH JAVAC JAVACFLAGS |
204 |
} |
205 |
|
206 |
src_configure() { |
207 |
local config procs rhino_jar |
208 |
local vm=$(java-pkg_get-current-vm) |
209 |
local vmhome="/usr/lib/jvm/${vm}" |
210 |
|
211 |
# IcedTea6 can't be built using IcedTea7; its class files are too new |
212 |
if [[ "${vm}" == "icedtea6" ]] || [[ "${vm}" == "icedtea6-bin" ]] ; then |
213 |
# If we are upgrading icedtea, then we don't need to bootstrap. |
214 |
config="${config} --with-openjdk=$(java-config -O)" |
215 |
elif [[ "${vm}" == "gcj-jdk" || "${vm}" == "cacao" ]] ; then |
216 |
# For other 1.5 JDKs e.g. GCJ, CACAO. |
217 |
config="${config} --with-ecj-jar=$(java-pkg_getjar --build-only eclipse-ecj:3.3 ecj.jar)" \ |
218 |
config="${config} --with-gcj-home=${vmhome}" |
219 |
else |
220 |
eerror "IcedTea${SLOT} must be built with either a JDK based on GNU Classpath or an existing build of IcedTea${SLOT}." |
221 |
die "Install a GNU Classpath JDK (gcj-jdk, cacao)" |
222 |
fi |
223 |
|
224 |
# OpenJDK-specific parallelism support. |
225 |
procs=$(echo ${MAKEOPTS} | sed -r 's/.*-j\W*([0-9]+).*/\1/') |
226 |
if [[ -n ${procs} ]] ; then |
227 |
config="${config} --with-parallel-jobs=${procs}"; |
228 |
einfo "Configuring using --with-parallel-jobs=${procs}" |
229 |
fi |
230 |
|
231 |
if use_zero ; then |
232 |
config="${config} --enable-zero" |
233 |
else |
234 |
config="${config} --disable-zero" |
235 |
fi |
236 |
|
237 |
if use javascript ; then |
238 |
rhino_jar=$(java-pkg_getjar rhino:1.6 js.jar); |
239 |
fi |
240 |
|
241 |
if use nsplugin && use npplugin ; then |
242 |
config="${config} --enable-npplugin" |
243 |
fi |
244 |
|
245 |
if use hs16 ; then |
246 |
config="${config} --with-hotspot-build=hs16" |
247 |
fi |
248 |
|
249 |
unset_vars |
250 |
|
251 |
econf ${config} \ |
252 |
--with-openjdk-src-zip="${DISTDIR}/${OPENJDK_TARBALL}" \ |
253 |
--with-hotspot-src-zip="${DISTDIR}/${HOTSPOT_TARBALL}" \ |
254 |
--with-cacao-src-zip="${DISTDIR}/${CACAO_TARBALL}" \ |
255 |
--with-java="${vmhome}/bin/java" \ |
256 |
--with-javac="${vmhome}/bin/javac" \ |
257 |
--with-javah="${vmhome}/bin/javah" \ |
258 |
--with-abs-install-dir=/usr/$(get_libdir)/icedtea${SLOT} \ |
259 |
$(use_enable !debug optimizations) \ |
260 |
$(use_enable doc docs) \ |
261 |
$(use_enable nsplugin plugin) \ |
262 |
$(use_with javascript rhino ${rhino_jar}) \ |
263 |
$(use_enable cacao) \ |
264 |
$(use_enable pulseaudio pulse-java) \ |
265 |
$(use_enable xrender) \ |
266 |
$(use_enable systemtap) \ |
267 |
$(use_enable nio2) \ |
268 |
$(use_enable nss) \ |
269 |
|| die "configure failed" |
270 |
} |
271 |
|
272 |
src_compile() { |
273 |
# Newer versions of Gentoo's ant add |
274 |
# an environment variable so it works properly... |
275 |
export ANT_RESPECT_JAVA_HOME=TRUE |
276 |
# ant -diagnostics in Ant 1.8.0 fails without these |
277 |
# otherwise we try to load the least that's needed to avoid possible classpath collisions |
278 |
export ANT_TASKS="xerces-2 xalan" |
279 |
|
280 |
# Paludis does not respect unset from src_configure |
281 |
unset_vars |
282 |
emake -j 1 || die "make failed" |
283 |
} |
284 |
|
285 |
src_install() { |
286 |
local dest="/usr/$(get_libdir)/icedtea${SLOT}" |
287 |
local ddest="${D}/${dest}" |
288 |
dodir "${dest}" || die |
289 |
|
290 |
local arch=${ARCH} |
291 |
use x86 && arch=i586 |
292 |
|
293 |
dodoc README NEWS AUTHORS THANKYOU || die |
294 |
|
295 |
cd "${S}/openjdk/build/linux-${arch}/j2sdk-image" || die |
296 |
|
297 |
if use doc ; then |
298 |
# java-pkg_dohtml needed for package-list #302654 |
299 |
java-pkg_dohtml -r ../docs/* || die "Failed to install documentation" |
300 |
fi |
301 |
|
302 |
# doins can't handle symlinks. |
303 |
cp -vRP bin include jre lib man "${ddest}" || die "failed to copy" |
304 |
|
305 |
# Set PaX markings on all JDK/JRE executables to allow code-generation on |
306 |
# the heap by the JIT compiler. |
307 |
pax-mark m $(list-paxables "${ddest}"{,/jre}/bin/*) |
308 |
|
309 |
dodoc ASSEMBLY_EXCEPTION THIRD_PARTY_README || die |
310 |
|
311 |
if use examples; then |
312 |
dodir "${dest}/share"; |
313 |
cp -vRP demo sample "${ddest}/share/" || die |
314 |
fi |
315 |
|
316 |
cp src.zip "${ddest}" || die |
317 |
|
318 |
# Fix the permissions. |
319 |
find "${ddest}" \! -type l \( -perm /111 -exec chmod 755 {} \; -o -exec chmod 644 {} \; \) || die |
320 |
|
321 |
if use nsplugin; then |
322 |
use x86 && arch=i386; |
323 |
if use npplugin; then |
324 |
install_mozilla_plugin "${dest}/jre/lib/${arch}/IcedTeaNPPlugin.so"; |
325 |
else |
326 |
install_mozilla_plugin "${dest}/jre/lib/${arch}/IcedTeaPlugin.so"; |
327 |
fi |
328 |
fi |
329 |
|
330 |
# We need to generate keystore - bug #273306 |
331 |
einfo "Generating cacerts file from certificates in /usr/share/ca-certificates/" |
332 |
mkdir "${T}/certgen" && cd "${T}/certgen" || die |
333 |
cp "${FILESDIR}/generate-cacerts.pl" . && chmod +x generate-cacerts.pl || die |
334 |
for c in /usr/share/ca-certificates/*/*.crt; do |
335 |
openssl x509 -text -in "${c}" >> all.crt || die |
336 |
done |
337 |
./generate-cacerts.pl "${ddest}/bin/keytool" all.crt || die |
338 |
cp -vRP cacerts "${ddest}/jre/lib/security/" || die |
339 |
chmod 644 "${ddest}/jre/lib/security/cacerts" || die |
340 |
|
341 |
sed -e "s/@SLOT@/${SLOT}/g" \ |
342 |
-e "s/@PV@/${ICEDTEA_VER}/g" \ |
343 |
< "${FILESDIR}/icedtea.env" > "${T}/icedtea.env" |
344 |
set_java_env "${T}/icedtea.env" |
345 |
} |
346 |
|
347 |
use_zero() { |
348 |
use zero || ( ! use amd64 && ! use x86 && ! use sparc ) |
349 |
} |
350 |
|
351 |
pkg_postinst() { |
352 |
# Set as default VM if none exists |
353 |
java-vm-2_pkg_postinst |
354 |
|
355 |
if use nsplugin; then |
356 |
elog "The icedtea${SLOT} browser plugin can be enabled using eselect java-nsplugin" |
357 |
if use npplugin; then |
358 |
elog "Note that the IcedTeaNPPlugin works only in browsers based on xulrunner-1.9.1 or later" |
359 |
elog "such as Firefox 3.5+, Chromium and perhaps some others too, and it is considered" |
360 |
elog "alpha quality by upstream. The older plugin can be built with USE=\"-nnplugin\"" |
361 |
elog "but it does not support xulrunner-1.9.2 (Firefox 3.6) or Chromium." |
362 |
else |
363 |
elog "Note that the IcedTeaPlugin works only in browsers based on xulrunner-1.9.0 or 1.9.1" |
364 |
elog "such as Firefox 3 or 3.5, Epiphany 2.24 and not in older versions!" |
365 |
elog "Also note that you need to recompile icedtea${SLOT} if you upgrade" |
366 |
elog "from xulrunner-1.9.0 to 1.9.1." |
367 |
elog "To support xulrunner-1.9.2 (Firefox 3.6) and Chromium, enable USE=npplugin" |
368 |
fi |
369 |
fi |
370 |
} |