Gentoo Archives: gentoo-commits

From: "Miroslav Šulc" <fordfrog@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-java/oracle-jdk-bin/
Date: Thu, 17 Jan 2019 09:50:54
Message-Id: 1547718638.5a3351a36469f37a21d660639fef0f8045ea50cd.fordfrog@gentoo
1 commit: 5a3351a36469f37a21d660639fef0f8045ea50cd
2 Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jan 17 09:50:08 2019 +0000
4 Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 17 09:50:38 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5a3351a3
7
8 dev-java/oracle-jdk-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-jdk-bin/Manifest | 3 -
14 .../oracle-jdk-bin/oracle-jdk-bin-9.0.4-r2.ebuild | 245 ---------------------
15 2 files changed, 248 deletions(-)
16
17 diff --git a/dev-java/oracle-jdk-bin/Manifest b/dev-java/oracle-jdk-bin/Manifest
18 index ac4cfb4c8f3..2dc44e3f9e0 100644
19 --- a/dev-java/oracle-jdk-bin/Manifest
20 +++ b/dev-java/oracle-jdk-bin/Manifest
21 @@ -27,6 +27,3 @@ DIST jdk-8u202-solaris-sparcv9-demos.tar.gz 8838689 BLAKE2B e86ed9372d9d76abb4ee
22 DIST jdk-8u202-solaris-sparcv9.tar.gz 92381302 BLAKE2B 331eda8ffa0128853e872f7f2543e966efb2498b62f8d1179d9b47d6af8a411a59dc9b1733423ea73d330cba3cc59f10911e6c81dd6b9f5b497de6ec2f73a864 SHA512 e02fe78552e3c21d40c9bf380228bafd5ff46034d6b9040d0c08ec725003aa5be7da8c61a72a8175bf49074ba89e0e172019db8aa823b5b349414950afc56d33
23 DIST jdk-8u202-solaris-x64-demos.tar.gz 8830525 BLAKE2B 6b6ced784d5b549d647c29b5859e376bbb44d3310d424bfdb087a3043d4849c43c24a370f166739850588f2b83ec7f24b3f3d9ae68a544f4f1cc152249137057 SHA512 eaa9adf1df2e554d2c76ea5f109e0ccf2f7c4a8221c78c402d1bfeb1da74cfe8bf2b8ecdac4cdfbef6b63b7439f94daadbcecd4dadfc73456400387c6d3a6353
24 DIST jdk-8u202-solaris-x64.tar.gz 89523049 BLAKE2B 4b93344feaf6235d2e41cee688668c067ebb8107ba62b66d6cffec0b3b021a2f34537957743dfecfe7e97231ba709c948da0deac3bbbd7a9ca7de2086ee7f359 SHA512 4b4480bfc25be8d4bc8efe4aac3b5c28c240fd7f39875b5976bf735f58e11c39083d6c48387ecd81b507fd8284296df7844675450e6b5edc2c04627a73cc5923
25 -DIST jdk-9.0.4_linux-x64_bin.tar.gz 354635831 BLAKE2B 6d102ca812c7fcf03b611d95880af51916dde52f09f3a5b972abd6575c73e8cca1855fb50ac00aac3f4643a1e422b5fdb97a746608b5a4235d8664926a061730 SHA512 787addfcf3d4736507ad8fa54b22894a33d39bde01d9d187d5c9f3433b43c9e8b14404a8366d0bc8510faa8936274bbfa304109d3927aa323b3f8a285efaffd6
26 -DIST jdk-9.0.4_osx-x64_bin.dmg 400672048 BLAKE2B 0bcc3643ccbc72cd98aca71823e06fd60068a7e1d72c7ce59f8e4c26bb9461a207f57ef239b244ec05c8f843666f2854b07a5f05841819cfe79ed8fefafb3650 SHA512 34191b5802c2d369f890cb1b563f77ee040b9af6ee4fc8ae81974f46afea675401e2a02803fc4345e11bab1103397dd8b583d68bb81edcdd02902cb3e595cc52
27 -DIST jdk-9.0.4_solaris-sparcv9_bin.tar.gz 217025485 BLAKE2B 6b3d4f4701ff3349f8acce727fcfcb06ce420e54dd32d2e6b91b71aa898a8d6a293375ec2cb0c66f14a5df77a6f5b7016160572b995ad84a593e9d5c6c928184 SHA512 9418a725a33dfbedf7f692abfb92550f23fca594fa8c1b85934d601284261339f177a32af7440e0b09233b2e99b2fd7cef835c54252cec6a645ea322a389de14
28
29 diff --git a/dev-java/oracle-jdk-bin/oracle-jdk-bin-9.0.4-r2.ebuild b/dev-java/oracle-jdk-bin/oracle-jdk-bin-9.0.4-r2.ebuild
30 deleted file mode 100644
31 index d728121913c..00000000000
32 --- a/dev-java/oracle-jdk-bin/oracle-jdk-bin-9.0.4-r2.ebuild
33 +++ /dev/null
34 @@ -1,245 +0,0 @@
35 -# Copyright 1999-2018 Gentoo Foundation
36 -# Distributed under the terms of the GNU General Public License v2
37 -
38 -EAPI=6
39 -
40 -inherit desktop gnome2-utils java-vm-2 prefix
41 -
42 -KEYWORDS="-* ~amd64 ~x64-macos ~sparc64-solaris"
43 -
44 -declare -A ARCH_FILES
45 -ARCH_FILES[amd64]="jdk-${PV}_linux-x64_bin.tar.gz"
46 -ARCH_FILES[sparc64-solaris]="jdk-${PV}_solaris-sparcv9_bin.tar.gz"
47 -ARCH_FILES[x64-macos]="jdk-${PV}_osx-x64_bin.dmg"
48 -
49 -for keyword in ${KEYWORDS//-\*} ; do
50 - SRC_URI+=" ${keyword#\~}? ( ${ARCH_FILES[${keyword#\~}]} )"
51 -done
52 -
53 -DESCRIPTION="Oracle's Java SE Development Kit"
54 -HOMEPAGE="http://www.oracle.com/technetwork/java/javase/"
55 -LICENSE="Oracle-BCLA-JavaSE"
56 -SLOT="${PV%%.*}"
57 -IUSE="alsa commercial cups doc +fontconfig +gentoo-vm gtk2 gtk3 headless-awt javafx nsplugin selinux source"
58 -REQUIRED_USE="javafx? ( alsa fontconfig ^^ ( gtk2 gtk3 ) )"
59 -RESTRICT="fetch preserve-libs strip"
60 -QA_PREBUILT="*"
61 -
62 -# NOTES:
63 -#
64 -# * cups is dlopened.
65 -#
66 -# * libpng is also dlopened but only by libsplashscreen, which isn't
67 -# important, so we can exclude that.
68 -#
69 -# * We still need to work out the exact AWT and JavaFX dependencies
70 -# under MacOS. It doesn't appear to use many, if any, of the
71 -# dependencies below.
72 -#
73 -RDEPEND="!x64-macos? (
74 - !headless-awt? (
75 - x11-libs/libX11
76 - x11-libs/libXext
77 - x11-libs/libXi
78 - x11-libs/libXrender
79 - x11-libs/libXtst
80 - )
81 - javafx? (
82 - dev-libs/atk
83 - dev-libs/glib:2
84 - dev-libs/libxml2:2
85 - dev-libs/libxslt
86 - media-libs/freetype:2
87 - x11-libs/gdk-pixbuf
88 - x11-libs/libX11
89 - x11-libs/libXtst
90 - x11-libs/libXxf86vm
91 - x11-libs/pango
92 - virtual/opengl
93 -
94 - gtk2? (
95 - x11-libs/cairo
96 - x11-libs/gtk+:2
97 - )
98 - gtk3? (
99 - x11-libs/cairo[glib]
100 - x11-libs/gtk+:3
101 - )
102 - )
103 - )
104 - !prefix? (
105 - dev-libs/elfutils
106 - sys-libs/glibc:*
107 - )
108 - alsa? ( media-libs/alsa-lib )
109 - cups? ( net-print/cups )
110 - doc? ( dev-java/java-sdk-docs:${SLOT} )
111 - fontconfig? ( media-libs/fontconfig:1.0 )
112 - selinux? ( sec-policy/selinux-java )"
113 -
114 -pkg_nofetch() {
115 - einfo "Please download ${ARCH_FILES[${ARCH}]} and move it to"
116 - einfo "your distfiles directory:"
117 - einfo
118 - einfo " http://www.oracle.com/technetwork/java/javase/downloads/jdk9-downloads-3848520.html"
119 - einfo
120 - einfo "If the above mentioned URL does not point to the correct version anymore,"
121 - einfo "please download the file from Oracle's Java download archive:"
122 - einfo
123 - einfo " http://www.oracle.com/technetwork/java/javase/downloads/java-archive-javase9-3934878.html"
124 - einfo
125 -}
126 -
127 -src_unpack() {
128 - if use x64-macos ; then
129 - S="${WORKDIR}/Contents/Home"
130 - mkdir -p "${T}"/dmgmount || die
131 - hdiutil attach "${DISTDIR}/${A}" -mountpoint "${T}"/dmgmount || die
132 - ( cd "${T}" &&
133 - xar -xf "${T}/dmgmount/JDK ${PV}.pkg" \
134 - jdk${PV//.}.pkg/Payload ) || die
135 - zcat "${T}"/jdk${PV//.}.pkg/Payload | cpio -idv || die
136 - hdiutil detach "${T}"/dmgmount || die
137 - else
138 - S="${WORKDIR}/jdk-${PV}"
139 - default
140 - fi
141 -}
142 -
143 -src_install() {
144 - local dest="/opt/${P}"
145 - local ddest="${ED}${dest#/}"
146 -
147 - # Create files used as storage for system preferences.
148 - mkdir .systemPrefs || die
149 - touch .systemPrefs/.system.lock || die
150 - touch .systemPrefs/.systemRootModFile || die
151 -
152 - if ! use alsa ; then
153 - rm -vf lib/libjsoundalsa.* || die
154 - fi
155 -
156 - if ! use commercial ; then
157 - rm -vfr jmods/*.jfr.* lib/jfr* \
158 - lib/missioncontrol || die
159 - fi
160 -
161 - if use headless-awt ; then
162 - rm -vf lib/lib*{[jx]awt,splashscreen}* \
163 - bin/{appletviewer,javaws,policytool} || die
164 - fi
165 -
166 - if ! use javafx ; then
167 - rm -vf lib/lib*{decora,fx,glass,prism}* \
168 - lib/libgstreamer-lite.* lib/*fx* \
169 - bin/javapackager jmods/javafx* || die
170 - else
171 - if ! use gtk2 ; then
172 - rm -vf lib/libglassgtk2.* || die
173 - elif ! use gtk3 ; then
174 - rm -vf lib/libglassgtk3.* || die
175 - fi
176 - fi
177 -
178 - if ! use nsplugin ; then
179 - rm -vf lib/libnpjp2.* || die
180 - else
181 - local nsplugin=$(echo lib/libnpjp2.*)
182 - local nsplugin_link=${nsplugin##*/}
183 - nsplugin_link=${nsplugin_link/./-${PN}-${SLOT}.}
184 - dosym "${dest}/${nsplugin}" "/usr/$(get_libdir)/nsbrowser/plugins/${nsplugin_link}"
185 - fi
186 -
187 - if ! use source ; then
188 - rm -v lib/src.zip || die
189 - fi
190 -
191 - # Even though plugins linked against multiple ffmpeg versions are
192 - # provided, they generally lag behind what Gentoo has available.
193 - rm -vf lib/libavplugin* || die
194 -
195 - # Prune all fontconfig files so that libfontconfig will be used.
196 - rm -v lib/fontconfig.* || die
197 -
198 - # Install desktop file for the Java Control Panel. Using
199 - # ${PN}-${SLOT} to prevent file collision with JRE and other slots.
200 - if [[ -d lib/desktop/icons ]] ; then
201 - local icon
202 - pushd lib/desktop/icons >/dev/null || die
203 - for icon in */*/apps/sun-jcontrol.png ; do
204 - insinto /usr/share/icons/"${icon%/*}"
205 - newins "${icon}" sun-jcontrol-${PN}-${SLOT}.png
206 - done
207 - popd >/dev/null || die
208 - make_desktop_entry \
209 - "${dest}"/bin/jcontrol \
210 - "Java Control Panel for Oracle JDK ${SLOT}" \
211 - sun-jcontrol-${PN}-${SLOT} \
212 - "Settings;Java;"
213 - fi
214 -
215 - dodir "${dest}"
216 - cp -pPR bin conf include jmods lib "${ddest}" || die
217 -
218 - # Only install Gentoo-specific fontconfig if flag is disabled.
219 - # https://docs.oracle.com/javase/8/docs/technotes/guides/intl/fontconfig.html
220 - if ! use fontconfig ; then
221 - insinto "${dest}"/lib/
222 - doins "$(prefixify_ro "${FILESDIR}"/fontconfig.properties)"
223 - fi
224 -
225 - # Needs to be done before CDS, bug #215225.
226 - java-vm_set-pax-markings "${ddest}"
227 -
228 - # See bug #207282.
229 - einfo "Creating the Class Data Sharing archives"
230 - "${ddest}/bin/java" -server -Xshare:dump || die
231 -
232 - # Remove empty dirs we might have copied.
233 - find "${D}" -type d -empty -exec rmdir -v {} + || die
234 -
235 - if use x64-macos ; then
236 - local lib
237 - for lib in lib{decora_sse,glass,prism_{common,es2,sw}}.dylib ; do
238 - ebegin "Fixing self-reference of ${lib}"
239 - install_name_tool \
240 - -id "${EPREFIX}${dest}"/lib/${lib} \
241 - "${ddest}"/lib/${lib} || die
242 - eend $?
243 - done
244 - fi
245 -
246 - use gentoo-vm && java-vm_install-env "${FILESDIR}"/${PN}-9.env.sh
247 - java-vm_revdep-mask
248 - java-vm_sandbox-predict /dev/random /proc/self/coredump_filter
249 -}
250 -
251 -pkg_preinst() {
252 - gnome2_icon_savelist
253 -}
254 -
255 -pkg_postinst() {
256 - gnome2_icon_cache_update
257 - java-vm-2_pkg_postinst
258 -
259 - if ! use headless-awt && ! use javafx ; then
260 - ewarn "You have disabled the javafx flag. Some modern desktop Java applications"
261 - ewarn "require this and they may fail with a confusing error message."
262 - fi
263 -
264 - if use gentoo-vm ; then
265 - ewarn "WARNING! You have enabled the gentoo-vm USE flag, making this JDK"
266 - ewarn "recognised by the system. This will almost certainly break things."
267 - else
268 - ewarn "The experimental gentoo-vm USE flag has not been enabled so this JDK"
269 - ewarn "will not be recognised by the system. For example, simply calling"
270 - ewarn "\"java\" will launch a different JVM. This is necessary until Gentoo"
271 - ewarn "fully supports Java 9. This JDK must therefore be invoked using its"
272 - ewarn "absolute location under ${EPREFIX}/opt/${P}."
273 - fi
274 -}
275 -
276 -pkg_postrm() {
277 - gnome2_icon_cache_update
278 - java-vm-2_pkg_postrm
279 -}