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/oracle-jre-bin: ChangeLog oracle-jre-bin-1.8.0.25.ebuild
Date: Sat, 01 Nov 2014 13:06:41
Message-Id: 20141101130636.D79B79359@oystercatcher.gentoo.org
1 caster 14/11/01 13:06:36
2
3 Modified: ChangeLog
4 Added: oracle-jre-bin-1.8.0.25.ebuild
5 Log:
6 Version bump, security bug #525464.
7
8 (Portage version: 2.2.14/cvs/Linux x86_64, unsigned Manifest commit)
9
10 Revision Changes Path
11 1.66 dev-java/oracle-jre-bin/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/oracle-jre-bin/ChangeLog?rev=1.66&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/oracle-jre-bin/ChangeLog?rev=1.66&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/oracle-jre-bin/ChangeLog?r1=1.65&r2=1.66
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-java/oracle-jre-bin/ChangeLog,v
20 retrieving revision 1.65
21 retrieving revision 1.66
22 diff -u -r1.65 -r1.66
23 --- ChangeLog 1 Nov 2014 07:07:24 -0000 1.65
24 +++ ChangeLog 1 Nov 2014 13:06:36 -0000 1.66
25 @@ -1,6 +1,12 @@
26 # ChangeLog for dev-java/oracle-jre-bin
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-java/oracle-jre-bin/ChangeLog,v 1.65 2014/11/01 07:07:24 ercpe Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-java/oracle-jre-bin/ChangeLog,v 1.66 2014/11/01 13:06:36 caster Exp $
30 +
31 +*oracle-jre-bin-1.8.0.25 (01 Nov 2014)
32 +
33 + 01 Nov 2014; Vlastimil Babka <caster@g.o>
34 + +oracle-jre-bin-1.8.0.25.ebuild:
35 + Version bump, security bug #525464.
36
37 *oracle-jre-bin-1.7.0.71 (01 Nov 2014)
38
39
40
41
42 1.1 dev-java/oracle-jre-bin/oracle-jre-bin-1.8.0.25.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/oracle-jre-bin/oracle-jre-bin-1.8.0.25.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/oracle-jre-bin/oracle-jre-bin-1.8.0.25.ebuild?rev=1.1&content-type=text/plain
46
47 Index: oracle-jre-bin-1.8.0.25.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/oracle-jre-bin/oracle-jre-bin-1.8.0.25.ebuild,v 1.1 2014/11/01 13:06:36 caster Exp $
52
53 EAPI="5"
54
55 inherit java-vm-2 eutils prefix versionator
56
57 if [[ "$(get_version_component_range 4)" == 0 ]] ; then
58 S_PV="$(get_version_component_range 1-3)"
59 else
60 MY_PV_EXT="u$(get_version_component_range 4)"
61 S_PV="$(get_version_component_range 1-4)"
62 fi
63
64 MY_PV="$(get_version_component_range 2)${MY_PV_EXT}"
65
66 X86_AT="jre-${MY_PV}-linux-i586.tar.gz"
67 AMD64_AT="jre-${MY_PV}-linux-x64.tar.gz"
68
69 # This URIs need updating when bumping!
70 JRE_URI="http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html"
71 JCE_URI="http://www.oracle.com/technetwork/java/javase/downloads/jce8-download-2133166.html"
72
73 JCE_DIR="UnlimitedJCEPolicyJDK8"
74 JCE_FILE="jce_policy-8.zip"
75
76 DESCRIPTION="Oracle's Java SE Runtime Environment"
77 HOMEPAGE="http://www.oracle.com/technetwork/java/javase/"
78 SRC_URI="
79 x86? ( ${X86_AT} )
80 amd64? ( ${AMD64_AT} )
81 jce? ( ${JCE_FILE} )"
82
83 LICENSE="Oracle-BCLA-JavaSE"
84 SLOT="1.8"
85 KEYWORDS="~amd64 ~x86"
86 IUSE="X alsa fontconfig jce nsplugin pax_kernel selinux"
87
88 RESTRICT="fetch strip"
89 QA_PREBUILT="*"
90
91 COMMON_DEP="
92 selinux? ( sec-policy/selinux-java )"
93 RDEPEND="${COMMON_DEP}
94 X? (
95 x11-libs/libXext
96 x11-libs/libXi
97 x11-libs/libXrender
98 x11-libs/libXtst
99 x11-libs/libX11
100 )
101 alsa? ( media-libs/alsa-lib )
102 fontconfig? ( media-libs/fontconfig )
103 !prefix? ( sys-libs/glibc )"
104 # scanelf won't create a PaX header, so depend on paxctl to avoid fallback
105 # marking. #427642
106 DEPEND="${COMMON_DEP}
107 jce? ( app-arch/unzip )
108 pax_kernel? ( sys-apps/paxctl )"
109
110 S="${WORKDIR}/jre"
111
112 pkg_nofetch() {
113 if use x86; then
114 AT=${X86_AT}
115 elif use amd64; then
116 AT=${AMD64_AT}
117 fi
118
119 einfo "Please download '${AT}' from:"
120 einfo "'${JRE_URI}'"
121 einfo "and move it to '${DISTDIR}'"
122
123 if use jce; then
124 einfo "Also download '${JCE_FILE}' from:"
125 einfo "'${JCE_URI}'"
126 einfo "and move it to '${DISTDIR}'"
127 fi
128 }
129
130 src_unpack() {
131 default
132
133 # Upstream is changing their versioning scheme every release around 1.8.0.*;
134 # to stop having to change it over and over again, just wildcard match and
135 # live a happy life instead of trying to get this new jre1.8.0_05 to work.
136 mv "${WORKDIR}"/jre* "${S}" || die
137 }
138
139 src_prepare() {
140 if use jce; then
141 mv "${WORKDIR}"/${JCE_DIR} lib/security/ || die
142 fi
143 }
144
145 src_install() {
146 local dest="/opt/${P}"
147 local ddest="${ED}${dest}"
148
149 # Create files used as storage for system preferences.
150 mkdir .systemPrefs || die
151 touch .systemPrefs/.system.lock || die
152 touch .systemPrefs/.systemRootModFile || die
153
154 # We should not need the ancient plugin for Firefox 2 anymore, plus it has
155 # writable executable segments
156 if use x86; then
157 rm -vf lib/i386/libjavaplugin_oji.so \
158 lib/i386/libjavaplugin_nscp*.so
159 rm -vrf plugin/i386
160 fi
161 # Without nsplugin flag, also remove the new plugin
162 local arch=${ARCH};
163 use x86 && arch=i386;
164 if ! use nsplugin; then
165 rm -vf lib/${arch}/libnpjp2.so \
166 lib/${arch}/libjavaplugin_jni.so
167 fi
168
169 dodir "${dest}"
170 cp -pPR bin lib man "${ddest}" || die
171
172 # This needs to be done before CDS - #215225
173 java-vm_set-pax-markings "${ddest}"
174
175 # see bug #207282
176 einfo "Creating the Class Data Sharing archives"
177 case ${ARCH} in
178 arm|ia64)
179 ${ddest}/bin/java -client -Xshare:dump || die
180 ;;
181 x86)
182 ${ddest}/bin/java -client -Xshare:dump || die
183 # limit heap size for large memory on x86 #467518
184 # this is a workaround and shouldn't be needed.
185 ${ddest}/bin/java -server -Xms64m -Xmx64m -Xshare:dump || die
186 ;;
187 *)
188 ${ddest}/bin/java -server -Xshare:dump || die
189 ;;
190 esac
191 # Remove empty dirs we might have copied
192 find "${D}" -type d -empty -exec rmdir -v {} + || die
193
194 dodoc COPYRIGHT README
195
196 if use jce; then
197 dodir ${dest}/lib/security/strong-jce
198 mv "${ddest}"/lib/security/US_export_policy.jar \
199 "${ddest}"/lib/security/strong-jce || die
200 mv "${ddest}"/lib/security/local_policy.jar \
201 "${ddest}"/lib/security/strong-jce || die
202 dosym "${dest}"/lib/security/${JCE_DIR}/US_export_policy.jar \
203 "${dest}"/lib/security/US_export_policy.jar
204 dosym "${dest}"/lib/security/${JCE_DIR}/local_policy.jar \
205 "${dest}"/lib/security/local_policy.jar
206 fi
207
208 if use nsplugin; then
209 install_mozilla_plugin "${dest}"/lib/${arch}/libnpjp2.so
210 fi
211
212 # Install desktop file for the Java Control Panel.
213 # Using ${PN}-${SLOT} to prevent file collision with jre and or other slots.
214 # make_desktop_entry can't be used as ${P} would end up in filename.
215 newicon lib/desktop/icons/hicolor/48x48/apps/sun-jcontrol.png \
216 sun-jcontrol-${PN}-${SLOT}.png || die
217 sed -e "s#Name=.*#Name=Java Control Panel for Oracle JRE ${SLOT}#" \
218 -e "s#Exec=.*#Exec=/opt/${P}/bin/jcontrol#" \
219 -e "s#Icon=.*#Icon=sun-jcontrol-${PN}-${SLOT}#" \
220 -e "s#Application;##" \
221 -e "/Encoding/d" \
222 lib/desktop/applications/sun_java.desktop > \
223 "${T}"/jcontrol-${PN}-${SLOT}.desktop || die
224 domenu "${T}"/jcontrol-${PN}-${SLOT}.desktop
225
226 # Prune all fontconfig files so libfontconfig will be used and only install
227 # a Gentoo specific one if fontconfig is disabled.
228 # http://docs.oracle.com/javase/7/docs/technotes/guides/intl/fontconfig.html
229 rm "${ddest}"/lib/fontconfig.* || die
230 if ! use fontconfig; then
231 cp "${FILESDIR}"/fontconfig.Gentoo.properties "${T}"/fontconfig.properties || die
232 eprefixify "${T}"/fontconfig.properties
233 insinto "${dest}"/lib/
234 doins "${T}"/fontconfig.properties
235 fi
236
237 set_java_env
238 java-vm_revdep-mask
239 java-vm_sandbox-predict /dev/random /proc/self/coredump_filter
240 }