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-bin: ChangeLog icedtea-bin-6.1.13.3-r1.ebuild
Date: Tue, 03 Jun 2014 06:30:17
Message-Id: 20140603063013.068802004E@flycatcher.gentoo.org
1 caster 14/06/03 06:30:12
2
3 Modified: ChangeLog
4 Added: icedtea-bin-6.1.13.3-r1.ebuild
5 Log:
6 Revbump to use external dev-java/icedtea-web:0 for javaws and nsplugin, instead of bundling vulnerable old version. Security bug #501472.
7
8 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 4E61DE84)
9
10 Revision Changes Path
11 1.61 dev-java/icedtea-bin/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/icedtea-bin/ChangeLog?rev=1.61&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/icedtea-bin/ChangeLog?rev=1.61&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/icedtea-bin/ChangeLog?r1=1.60&r2=1.61
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-java/icedtea-bin/ChangeLog,v
20 retrieving revision 1.60
21 retrieving revision 1.61
22 diff -u -r1.60 -r1.61
23 --- ChangeLog 2 Jun 2014 22:28:44 -0000 1.60
24 +++ ChangeLog 3 Jun 2014 06:30:12 -0000 1.61
25 @@ -1,6 +1,13 @@
26 # ChangeLog for dev-java/icedtea-bin
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-java/icedtea-bin/ChangeLog,v 1.60 2014/06/02 22:28:44 caster Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-java/icedtea-bin/ChangeLog,v 1.61 2014/06/03 06:30:12 caster Exp $
30 +
31 +*icedtea-bin-6.1.13.3-r1 (03 Jun 2014)
32 +
33 + 03 Jun 2014; Vlastimil Babka <caster@g.o>
34 + +icedtea-bin-6.1.13.3-r1.ebuild:
35 + Revbump to use external dev-java/icedtea-web:0 for javaws and nsplugin,
36 + instead of bundling vulnerable old version. Security bug #501472.
37
38 *icedtea-bin-7.2.4.7 (02 Jun 2014)
39
40
41
42
43 1.1 dev-java/icedtea-bin/icedtea-bin-6.1.13.3-r1.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/icedtea-bin/icedtea-bin-6.1.13.3-r1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/icedtea-bin/icedtea-bin-6.1.13.3-r1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: icedtea-bin-6.1.13.3-r1.ebuild
49 ===================================================================
50 # Copyright 1999-2014 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/dev-java/icedtea-bin/icedtea-bin-6.1.13.3-r1.ebuild,v 1.1 2014/06/03 06:30:12 caster Exp $
53
54 EAPI="5"
55
56 inherit java-vm-2 multilib prefix
57
58 dist="http://dev.gentoo.org/~caster/distfiles/"
59 TARBALL_VERSION="${PV}"
60
61 DESCRIPTION="A Gentoo-made binary build of the IcedTea JDK"
62 HOMEPAGE="http://icedtea.classpath.org"
63 SRC_URI="
64 amd64? ( ${dist}/${PN}-core-${TARBALL_VERSION}-amd64.tar.bz2 )
65 x86? ( ${dist}/${PN}-core-${TARBALL_VERSION}-x86.tar.bz2 )
66 doc? ( ${dist}/${PN}-doc-${TARBALL_VERSION}.tar.bz2 )
67 examples? (
68 amd64? ( ${dist}/${PN}-examples-${TARBALL_VERSION}-amd64.tar.bz2 )
69 x86? ( ${dist}/${PN}-examples-${TARBALL_VERSION}-x86.tar.bz2 )
70 )
71 source? ( ${dist}/${PN}-src-${TARBALL_VERSION}.tar.bz2 )"
72
73 LICENSE="GPL-2-with-linking-exception"
74 SLOT="6"
75 KEYWORDS="-* ~amd64 ~x86"
76
77 IUSE="+X +alsa cjk +cups doc examples nsplugin selinux source webstart"
78 REQUIRED_USE="nsplugin? ( X )"
79 RESTRICT="strip"
80
81 # 423161
82 QA_PREBUILT="opt/.*"
83
84 ALSA_COMMON_DEP="
85 >=media-libs/alsa-lib-1.0.20"
86 CUPS_COMMON_DEP="
87 >=net-print/cups-1.4"
88 X_COMMON_DEP="
89 >=dev-libs/glib-2.32:2
90 >=media-libs/freetype-2.4.9:2
91 >=x11-libs/gtk+-2.24:2
92 >=x11-libs/libX11-1.4
93 >=x11-libs/libXext-1.3
94 >=x11-libs/libXi-1.6
95 >=x11-libs/libXtst-1.2"
96
97 COMMON_DEP="
98 >=media-libs/giflib-4.1.6-r1
99 >=media-libs/libpng-1.6:0=
100 >=sys-devel/gcc-4.5.4
101 >=sys-libs/glibc-2.15
102 >=sys-libs/zlib-1.2.3-r1
103 || ( virtual/jpeg:62 media-libs/jpeg:62 )
104 selinux? ( sec-policy/selinux-java )"
105
106 RDEPEND="${COMMON_DEP}
107 X? (
108 ${X_COMMON_DEP}
109 media-fonts/dejavu
110 cjk? (
111 media-fonts/arphicfonts
112 media-fonts/baekmuk-fonts
113 media-fonts/lklug
114 media-fonts/lohit-fonts
115 media-fonts/sazanami
116 )
117 )
118 alsa? ( ${ALSA_COMMON_DEP} )
119 cups? ( ${CUPS_COMMON_DEP} )"
120
121 PDEPEND="webstart? ( dev-java/icedtea-web:0 )
122 nsplugin? ( dev-java/icedtea-web:0[icedtea7] )"
123
124 src_install() {
125 local dest="/opt/${P}"
126 local ddest="${ED}/${dest}"
127 dodir "${dest}"
128
129 # Ensures HeadlessGraphicsEnvironment is used.
130 if ! use X; then
131 rm -r jre/lib/$(get_system_arch)/xawt || die
132 fi
133
134 # doins can't handle symlinks.
135 cp -pRP bin include jre lib man "${ddest}" || die
136
137 # Remove on next bump as the needed marks are already set by icedtea ebuild.
138 java-vm_set-pax-markings "${ddest}"
139
140 dodoc ../doc/{ASSEMBLY_EXCEPTION,THIRD_PARTY_README}
141
142 if use doc; then
143 dohtml -r ../doc/html/*
144 fi
145
146 if use examples; then
147 cp -pRP share/{demo,sample} "${ddest}" || die
148 fi
149
150 if use source; then
151 cp src.zip "${ddest}" || die
152 fi
153
154 # Remove after next bump, handled by icedtea ebuild. Bug 390663
155 cp "${FILESDIR}"/fontconfig.Gentoo.properties.src "${T}"/fontconfig.Gentoo.properties || die
156 eprefixify "${T}"/fontconfig.Gentoo.properties
157 insinto "${dest}"/jre/lib
158 doins "${T}"/fontconfig.Gentoo.properties
159
160 if use webstart || use nsplugin; then
161 dosym /usr/$(get_libdir)/icedtea${SLOT}-web/bin/itweb-settings ${dest}/bin/itweb-settings
162 dosym /usr/$(get_libdir)/icedtea${SLOT}-web/bin/itweb-settings ${dest}/jre/bin/itweb-settings
163 fi
164 if use webstart; then
165 dosym /usr/$(get_libdir)/icedtea${SLOT}-web/bin/javaws ${dest}/bin/javaws
166 dosym /usr/$(get_libdir)/icedtea${SLOT}-web/bin/javaws ${dest}/jre/bin/javaws
167 fi
168
169 set_java_env
170 java-vm_revdep-mask "${dest}"
171 }
172
173 pkg_preinst() {
174 if has_version "<=dev-java/icedtea-bin-1.10.4:${SLOT}"; then
175 # portage would preserve the symlink otherwise, related to bug #384397
176 rm -f "${EROOT}/usr/lib/jvm/icedtea6-bin"
177 elog "To unify the layout and simplify scripts, the identifier of Icedtea-bin-6*"
178 elog "has changed from 'icedtea6-bin' to 'icedtea-bin-6' starting from version 6.1.10.4"
179 elog "If you had icedtea6-bin as system VM, the change should be automatic, however"
180 elog "build VM settings in /etc/java-config-2/build/jdk.conf are not changed"
181 elog "and the same holds for any user VM settings. Sorry for the inconvenience."
182 fi
183 }
184
185 pkg_postinst() {
186 if use nsplugin; then
187 if [[ -n ${REPLACING_VERSIONS} ]] && ! version_is_at_least 6.1.13.3-r1 ${REPLACING_VERSIONS} ]]; then
188 elog "The nsplugin for icedtea-bin is now provided by the icedtea-web package"
189 elog "If you had icedtea-bin-6 nsplugin selected, you may see a related error below"
190 elog "The switch should complete properly during the subsequent installation of icedtea-web"
191 elog "Afterwards you may verify the output of 'eselect java-nsplugin list' and adjust accordingly'"
192 fi
193 fi
194
195 # Set as default VM if none exists
196 java-vm-2_pkg_postinst
197 }