1 |
commit: 6624b07b579b5507d3bbf62ba4f1ab5c2852e02a |
2 |
Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jan 17 09:22:58 2019 +0000 |
4 |
Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jan 17 09:50:34 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6624b07b |
7 |
|
8 |
dev-java/oracle-jre-bin-9.0.4: removed (security issues #653560) |
9 |
|
10 |
Package-Manager: Portage-2.3.56, Repoman-2.3.12 |
11 |
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org> |
12 |
|
13 |
dev-java/oracle-jre-bin/Manifest | 3 - |
14 |
.../oracle-jre-bin/files/oracle-jre-bin-9.env.sh | 16 -- |
15 |
dev-java/oracle-jre-bin/metadata.xml | 3 - |
16 |
.../oracle-jre-bin/oracle-jre-bin-9.0.4-r1.ebuild | 229 --------------------- |
17 |
4 files changed, 251 deletions(-) |
18 |
|
19 |
diff --git a/dev-java/oracle-jre-bin/Manifest b/dev-java/oracle-jre-bin/Manifest |
20 |
index 4a5bb6f9703..5a30b69fc32 100644 |
21 |
--- a/dev-java/oracle-jre-bin/Manifest |
22 |
+++ b/dev-java/oracle-jre-bin/Manifest |
23 |
@@ -1,5 +1,2 @@ |
24 |
DIST jre-8u192-linux-i586.tar.gz 87804679 BLAKE2B bb1dea51f0d45dcd3aabc82668790ee274c83f2e3c596d836d7b57c971ff6535881849cce5757132fed1b537a4a9677fbbb0b8b003d423d26ee72cb71047428f SHA512 5c749f358aa5b55513765eeb52dd2e0d3cb2b3223cc93739aa36445af8c6a3171a01cab673e106312e816c0a3b584a8a1be4aed1e2662e86b6d318d86a135485 |
25 |
DIST jre-8u192-linux-x64.tar.gz 84597342 BLAKE2B 655db641df8349109e2944838f16f37ea208772580f0753e664a0642649745c123b2a781497ca3b9028f55c0bd2816cb5746d7d1d04cc83bb536ca0b467a4fc0 SHA512 d786f9e032bc286f3d4f361c382b6606c7462240b191d04606ca5ed9e59e3d7703cbaf1d57693c6763d00374c76c99cdb2f58c0bc372ef5c14c6304d556b4c8a |
26 |
-DIST jre-9.0.4_linux-x64_bin.tar.gz 87045353 BLAKE2B ccf3c0d725ca1431261a0b38cc06851fc10651415982fa2d97f512972c088c2c158ee51710b59e04f89326dd4cbb4c1ef8ecf514af190fbdc2be07cd222fd5d8 SHA512 20310fe68c89d26a89523eb1fe583eb5706fe2458342f5be0dfb4badd1d9df6ba25b00463f080fceb7c22781ff1555a61b29d187d8b02e1f9e165120b8140c3b |
27 |
-DIST jre-9.0.4_osx-x64_bin.tar.gz 74599903 BLAKE2B a1bd4d51ee645347fcb735e46ee3311d34933bb0dbb20b9a668ed7b817be1d0432f4152f53f57a9fc16d6b6b7f38ea4118f5cae86a8b71143db0091c9baf62de SHA512 fc4bc4a062313a7e33943ace27287ba6e551727f0cf81d9a18f9f8c2f57b0ae00bd0d8619a65f596d75d4869fea757fedae3efdd8ba3ced58fa28b7cf93b3a85 |
28 |
-DIST jre-9.0.4_solaris-sparcv9_bin.tar.gz 54879298 BLAKE2B fb3ce1eefdb12378b28f5af0f0bbc1d9f3252eee5646be237b2ddc0ead37ed253fb73900475777c3f67d39b47112e0c2db2a18f6a05da7c5c19cd965e5513827 SHA512 709219f51d7455c127a38953babad39b344dee1275ad0fe65a0116e8fb15a10482589ba881ccae7910acff8f00aa7856c726c03daa8f3947d742bbbc09a276dd |
29 |
|
30 |
diff --git a/dev-java/oracle-jre-bin/files/oracle-jre-bin-9.env.sh b/dev-java/oracle-jre-bin/files/oracle-jre-bin-9.env.sh |
31 |
deleted file mode 100644 |
32 |
index 7e6f9a0e668..00000000000 |
33 |
--- a/dev-java/oracle-jre-bin/files/oracle-jre-bin-9.env.sh |
34 |
+++ /dev/null |
35 |
@@ -1,16 +0,0 @@ |
36 |
-# Copyright 1999-2017 Gentoo Foundation |
37 |
-# Distributed under the terms of the GNU General Public License v2 |
38 |
- |
39 |
-VERSION="Oracle JRE ${PV}" |
40 |
-JAVA_HOME="${EPREFIX}/opt/${P}" |
41 |
-JDK_HOME="${EPREFIX}/opt/${P}" |
42 |
-JAVAC="\${JAVA_HOME}/bin/javac" |
43 |
-PATH="\${JAVA_HOME}/bin" |
44 |
-ROOTPATH="\${JAVA_HOME}/bin" |
45 |
-LDPATH="\${JAVA_HOME}/lib/:\${JAVA_HOME}/lib/server/" |
46 |
-MANPATH="" |
47 |
-PROVIDES_TYPE="JRE" |
48 |
-PROVIDES_VERSION="${SLOT}" |
49 |
-BOOTCLASSPATH="" |
50 |
-GENERATION="2" |
51 |
-ENV_VARS="JAVA_HOME JDK_HOME JAVAC PATH ROOTPATH LDPATH MANPATH" |
52 |
|
53 |
diff --git a/dev-java/oracle-jre-bin/metadata.xml b/dev-java/oracle-jre-bin/metadata.xml |
54 |
index b9fe447b128..edb6ab75a53 100644 |
55 |
--- a/dev-java/oracle-jre-bin/metadata.xml |
56 |
+++ b/dev-java/oracle-jre-bin/metadata.xml |
57 |
@@ -9,9 +9,6 @@ |
58 |
<use> |
59 |
<flag name="commercial">Install features requiring a commercial license for production use</flag> |
60 |
<flag name="headless-awt">Don't install the X backend for AWT, needed by some GUIs (used to be X flag)</flag> |
61 |
- <flag name="gentoo-vm">Allow this JRE to be recognised by Gentoo (package manager, eselect, java-config, EXPERIMENTAL!)</flag> |
62 |
- <flag name="gtk2">Enable GTK+ 2 support in JavaFX</flag> |
63 |
- <flag name="gtk3">Enable GTK+ 3 support in JavaFX</flag> |
64 |
<flag name="javafx">Install JavaFX libraries</flag> |
65 |
<flag name="jce">Install Java Cryptographic Extension Unlimited Strength Jurisdiction Policy Files</flag> |
66 |
</use> |
67 |
|
68 |
diff --git a/dev-java/oracle-jre-bin/oracle-jre-bin-9.0.4-r1.ebuild b/dev-java/oracle-jre-bin/oracle-jre-bin-9.0.4-r1.ebuild |
69 |
deleted file mode 100644 |
70 |
index 1b3a1f76ccf..00000000000 |
71 |
--- a/dev-java/oracle-jre-bin/oracle-jre-bin-9.0.4-r1.ebuild |
72 |
+++ /dev/null |
73 |
@@ -1,229 +0,0 @@ |
74 |
-# Copyright 1999-2018 Gentoo Foundation |
75 |
-# Distributed under the terms of the GNU General Public License v2 |
76 |
- |
77 |
-EAPI=6 |
78 |
- |
79 |
-inherit desktop gnome2-utils java-vm-2 prefix |
80 |
- |
81 |
-KEYWORDS="-* ~amd64 ~x64-macos ~sparc64-solaris" |
82 |
- |
83 |
-declare -A ARCH_FILES |
84 |
-ARCH_FILES[amd64]="jre-${PV}_linux-x64_bin.tar.gz" |
85 |
-ARCH_FILES[sparc64-solaris]="jre-${PV}_solaris-sparcv9_bin.tar.gz" |
86 |
-ARCH_FILES[x64-macos]="jre-${PV}_osx-x64_bin.tar.gz" |
87 |
- |
88 |
-for keyword in ${KEYWORDS//-\*} ; do |
89 |
- SRC_URI+=" ${keyword#\~}? ( ${ARCH_FILES[${keyword#\~}]} )" |
90 |
-done |
91 |
- |
92 |
-DESCRIPTION="Oracle's Java SE Runtime Environment" |
93 |
-HOMEPAGE="http://www.oracle.com/technetwork/java/javase/" |
94 |
-LICENSE="Oracle-BCLA-JavaSE" |
95 |
-SLOT="${PV%%.*}" |
96 |
-IUSE="alsa commercial cups +fontconfig +gentoo-vm gtk2 gtk3 headless-awt javafx nsplugin selinux" |
97 |
-REQUIRED_USE="javafx? ( alsa fontconfig ^^ ( gtk2 gtk3 ) )" |
98 |
-RESTRICT="fetch preserve-libs strip" |
99 |
-QA_PREBUILT="*" |
100 |
- |
101 |
-# NOTES: |
102 |
-# |
103 |
-# * cups is dlopened. |
104 |
-# |
105 |
-# * libpng is also dlopened but only by libsplashscreen, which isn't |
106 |
-# important, so we can exclude that. |
107 |
-# |
108 |
-# * We still need to work out the exact AWT and JavaFX dependencies |
109 |
-# under MacOS. It doesn't appear to use many, if any, of the |
110 |
-# dependencies below. |
111 |
-# |
112 |
-RDEPEND="!x64-macos? ( |
113 |
- !headless-awt? ( |
114 |
- x11-libs/libX11 |
115 |
- x11-libs/libXext |
116 |
- x11-libs/libXi |
117 |
- x11-libs/libXrender |
118 |
- x11-libs/libXtst |
119 |
- ) |
120 |
- javafx? ( |
121 |
- dev-libs/atk |
122 |
- dev-libs/glib:2 |
123 |
- dev-libs/libxml2:2 |
124 |
- dev-libs/libxslt |
125 |
- media-libs/freetype:2 |
126 |
- x11-libs/gdk-pixbuf |
127 |
- x11-libs/libX11 |
128 |
- x11-libs/libXtst |
129 |
- x11-libs/libXxf86vm |
130 |
- x11-libs/pango |
131 |
- virtual/opengl |
132 |
- |
133 |
- gtk2? ( |
134 |
- x11-libs/cairo |
135 |
- x11-libs/gtk+:2 |
136 |
- ) |
137 |
- gtk3? ( |
138 |
- x11-libs/cairo[glib] |
139 |
- x11-libs/gtk+:3 |
140 |
- ) |
141 |
- ) |
142 |
- ) |
143 |
- alsa? ( media-libs/alsa-lib ) |
144 |
- cups? ( net-print/cups ) |
145 |
- fontconfig? ( media-libs/fontconfig:1.0 ) |
146 |
- !prefix? ( sys-libs/glibc:* ) |
147 |
- selinux? ( sec-policy/selinux-java )" |
148 |
- |
149 |
-pkg_nofetch() { |
150 |
- einfo "Please download ${ARCH_FILES[${ARCH}]} and move it to" |
151 |
- einfo "your distfiles directory:" |
152 |
- einfo |
153 |
- einfo " http://www.oracle.com/technetwork/java/javase/downloads/jre9-downloads-3848532.html" |
154 |
- einfo |
155 |
- einfo "If the above mentioned URL does not point to the correct version anymore," |
156 |
- einfo "please download the file from Oracle's Java download archive:" |
157 |
- einfo |
158 |
- einfo " http://www.oracle.com/technetwork/java/javase/downloads/java-archive-javase9-3934878.html" |
159 |
- einfo |
160 |
-} |
161 |
- |
162 |
-src_unpack() { |
163 |
- if use x64-macos ; then |
164 |
- S="${WORKDIR}/jre-${PV}.jre/Contents/Home" |
165 |
- else |
166 |
- S="${WORKDIR}/jre-${PV}" |
167 |
- fi |
168 |
- |
169 |
- default |
170 |
-} |
171 |
- |
172 |
-src_install() { |
173 |
- local dest="/opt/${P}" |
174 |
- local ddest="${ED}${dest#/}" |
175 |
- |
176 |
- # Create files used as storage for system preferences. |
177 |
- mkdir .systemPrefs || die |
178 |
- touch .systemPrefs/.system.lock || die |
179 |
- touch .systemPrefs/.systemRootModFile || die |
180 |
- |
181 |
- if ! use alsa ; then |
182 |
- rm -vf lib/libjsoundalsa.* || die |
183 |
- fi |
184 |
- |
185 |
- if ! use commercial ; then |
186 |
- rm -vfr lib/jfr* || die |
187 |
- fi |
188 |
- |
189 |
- if use headless-awt ; then |
190 |
- rm -vf lib/lib*{[jx]awt,splashscreen}* \ |
191 |
- bin/javaws || die |
192 |
- fi |
193 |
- |
194 |
- if ! use javafx ; then |
195 |
- rm -vf lib/lib*{decora,fx,glass,prism}* \ |
196 |
- lib/libgstreamer-lite.* lib/*fx* || die |
197 |
- else |
198 |
- if ! use gtk2 ; then |
199 |
- rm -vf lib/libglassgtk2.* || die |
200 |
- elif ! use gtk3 ; then |
201 |
- rm -vf lib/libglassgtk3.* || die |
202 |
- fi |
203 |
- fi |
204 |
- |
205 |
- if ! use nsplugin ; then |
206 |
- rm -vf lib/libnpjp2.* || die |
207 |
- else |
208 |
- local nsplugin=$(echo lib/libnpjp2.*) |
209 |
- local nsplugin_link=${nsplugin##*/} |
210 |
- nsplugin_link=${nsplugin_link/./-${PN}-${SLOT}.} |
211 |
- dosym "${dest}/${nsplugin}" "/usr/$(get_libdir)/nsbrowser/plugins/${nsplugin_link}" |
212 |
- fi |
213 |
- |
214 |
- # Even though plugins linked against multiple ffmpeg versions are |
215 |
- # provided, they generally lag behind what Gentoo has available. |
216 |
- rm -vf lib/libavplugin* || die |
217 |
- |
218 |
- # Prune all fontconfig files so that libfontconfig will be used. |
219 |
- rm -v lib/fontconfig.* || die |
220 |
- |
221 |
- # Install desktop file for the Java Control Panel. Using |
222 |
- # ${PN}-${SLOT} to prevent file collision with JDK and other slots. |
223 |
- if [[ -d lib/desktop/icons ]] ; then |
224 |
- local icon |
225 |
- pushd lib/desktop/icons >/dev/null || die |
226 |
- for icon in */*/apps/sun-jcontrol.png ; do |
227 |
- insinto /usr/share/icons/"${icon%/*}" |
228 |
- newins "${icon}" sun-jcontrol-${PN}-${SLOT}.png |
229 |
- done |
230 |
- popd >/dev/null || die |
231 |
- make_desktop_entry \ |
232 |
- "${dest}"/bin/jcontrol \ |
233 |
- "Java Control Panel for Oracle JRE ${SLOT}" \ |
234 |
- sun-jcontrol-${PN}-${SLOT} \ |
235 |
- "Settings;Java;" |
236 |
- fi |
237 |
- |
238 |
- dodir "${dest}" |
239 |
- cp -pPR bin conf lib "${ddest}" || die |
240 |
- |
241 |
- # Only install Gentoo-specific fontconfig if flag is disabled. |
242 |
- # https://docs.oracle.com/javase/8/docs/technotes/guides/intl/fontconfig.html |
243 |
- if ! use fontconfig ; then |
244 |
- insinto "${dest}"/lib/ |
245 |
- doins "$(prefixify_ro "${FILESDIR}"/fontconfig.properties)" |
246 |
- fi |
247 |
- |
248 |
- # Needs to be done before CDS, bug #215225. |
249 |
- java-vm_set-pax-markings "${ddest}" |
250 |
- |
251 |
- # See bug #207282. |
252 |
- einfo "Creating the Class Data Sharing archives" |
253 |
- "${ddest}/bin/java" -server -Xshare:dump || die |
254 |
- |
255 |
- # Remove empty dirs we might have copied. |
256 |
- find "${D}" -type d -empty -exec rmdir -v {} + || die |
257 |
- |
258 |
- if use x64-macos ; then |
259 |
- local lib |
260 |
- for lib in lib{decora_sse,glass,prism_{common,es2,sw}}.dylib ; do |
261 |
- ebegin "Fixing self-reference of ${lib}" |
262 |
- install_name_tool \ |
263 |
- -id "${EPREFIX}${dest}"/lib/${lib} \ |
264 |
- "${ddest}"/lib/${lib} || die |
265 |
- eend $? |
266 |
- done |
267 |
- fi |
268 |
- |
269 |
- use gentoo-vm && java-vm_install-env "${FILESDIR}"/${PN}-9.env.sh |
270 |
- java-vm_revdep-mask |
271 |
- java-vm_sandbox-predict /dev/random /proc/self/coredump_filter |
272 |
-} |
273 |
- |
274 |
-pkg_preinst() { |
275 |
- gnome2_icon_savelist |
276 |
-} |
277 |
- |
278 |
-pkg_postinst() { |
279 |
- gnome2_icon_cache_update |
280 |
- java-vm-2_pkg_postinst |
281 |
- |
282 |
- if ! use headless-awt && ! use javafx ; then |
283 |
- ewarn "You have disabled the javafx flag. Some modern desktop Java applications" |
284 |
- ewarn "require this and they may fail with a confusing error message." |
285 |
- fi |
286 |
- |
287 |
- if use gentoo-vm ; then |
288 |
- ewarn "WARNING! You have enabled the gentoo-vm USE flag, making this JRE" |
289 |
- ewarn "recognised by the system. This will almost certainly break things." |
290 |
- else |
291 |
- ewarn "The experimental gentoo-vm USE flag has not been enabled so this JRE" |
292 |
- ewarn "will not be recognised by the system. For example, simply calling" |
293 |
- ewarn "\"java\" will launch a different JVM. This is necessary until Gentoo" |
294 |
- ewarn "fully supports Java 9. This JRE must therefore be invoked using its" |
295 |
- ewarn "absolute location under ${EPREFIX}/opt/${P}." |
296 |
- fi |
297 |
-} |
298 |
- |
299 |
-pkg_postrm() { |
300 |
- gnome2_icon_cache_update |
301 |
- java-vm-2_pkg_postrm |
302 |
-} |