diff options
author | Miroslav Šulc <fordfrog@gentoo.org> | 2019-01-17 10:50:08 +0100 |
---|---|---|
committer | Miroslav Šulc <fordfrog@gentoo.org> | 2019-01-17 10:50:38 +0100 |
commit | 5a3351a36469f37a21d660639fef0f8045ea50cd (patch) | |
tree | 6d743aee9ae64d086db8ead446544a62a04b307a /dev-java | |
parent | dev-java/oracle-jre-bin-1.8.0.202: bump (diff) | |
download | gentoo-5a3351a36469f37a21d660639fef0f8045ea50cd.tar.gz gentoo-5a3351a36469f37a21d660639fef0f8045ea50cd.tar.bz2 gentoo-5a3351a36469f37a21d660639fef0f8045ea50cd.zip |
dev-java/oracle-jdk-bin-9.0.4: removed (security issues #653560)
Package-Manager: Portage-2.3.56, Repoman-2.3.12
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'dev-java')
-rw-r--r-- | dev-java/oracle-jdk-bin/Manifest | 3 | ||||
-rw-r--r-- | dev-java/oracle-jdk-bin/oracle-jdk-bin-9.0.4-r2.ebuild | 245 |
2 files changed, 0 insertions, 248 deletions
diff --git a/dev-java/oracle-jdk-bin/Manifest b/dev-java/oracle-jdk-bin/Manifest index ac4cfb4c8f3b..2dc44e3f9e03 100644 --- a/dev-java/oracle-jdk-bin/Manifest +++ b/dev-java/oracle-jdk-bin/Manifest @@ -27,6 +27,3 @@ DIST jdk-8u202-solaris-sparcv9-demos.tar.gz 8838689 BLAKE2B e86ed9372d9d76abb4ee DIST jdk-8u202-solaris-sparcv9.tar.gz 92381302 BLAKE2B 331eda8ffa0128853e872f7f2543e966efb2498b62f8d1179d9b47d6af8a411a59dc9b1733423ea73d330cba3cc59f10911e6c81dd6b9f5b497de6ec2f73a864 SHA512 e02fe78552e3c21d40c9bf380228bafd5ff46034d6b9040d0c08ec725003aa5be7da8c61a72a8175bf49074ba89e0e172019db8aa823b5b349414950afc56d33 DIST jdk-8u202-solaris-x64-demos.tar.gz 8830525 BLAKE2B 6b6ced784d5b549d647c29b5859e376bbb44d3310d424bfdb087a3043d4849c43c24a370f166739850588f2b83ec7f24b3f3d9ae68a544f4f1cc152249137057 SHA512 eaa9adf1df2e554d2c76ea5f109e0ccf2f7c4a8221c78c402d1bfeb1da74cfe8bf2b8ecdac4cdfbef6b63b7439f94daadbcecd4dadfc73456400387c6d3a6353 DIST jdk-8u202-solaris-x64.tar.gz 89523049 BLAKE2B 4b93344feaf6235d2e41cee688668c067ebb8107ba62b66d6cffec0b3b021a2f34537957743dfecfe7e97231ba709c948da0deac3bbbd7a9ca7de2086ee7f359 SHA512 4b4480bfc25be8d4bc8efe4aac3b5c28c240fd7f39875b5976bf735f58e11c39083d6c48387ecd81b507fd8284296df7844675450e6b5edc2c04627a73cc5923 -DIST jdk-9.0.4_linux-x64_bin.tar.gz 354635831 BLAKE2B 6d102ca812c7fcf03b611d95880af51916dde52f09f3a5b972abd6575c73e8cca1855fb50ac00aac3f4643a1e422b5fdb97a746608b5a4235d8664926a061730 SHA512 787addfcf3d4736507ad8fa54b22894a33d39bde01d9d187d5c9f3433b43c9e8b14404a8366d0bc8510faa8936274bbfa304109d3927aa323b3f8a285efaffd6 -DIST jdk-9.0.4_osx-x64_bin.dmg 400672048 BLAKE2B 0bcc3643ccbc72cd98aca71823e06fd60068a7e1d72c7ce59f8e4c26bb9461a207f57ef239b244ec05c8f843666f2854b07a5f05841819cfe79ed8fefafb3650 SHA512 34191b5802c2d369f890cb1b563f77ee040b9af6ee4fc8ae81974f46afea675401e2a02803fc4345e11bab1103397dd8b583d68bb81edcdd02902cb3e595cc52 -DIST jdk-9.0.4_solaris-sparcv9_bin.tar.gz 217025485 BLAKE2B 6b3d4f4701ff3349f8acce727fcfcb06ce420e54dd32d2e6b91b71aa898a8d6a293375ec2cb0c66f14a5df77a6f5b7016160572b995ad84a593e9d5c6c928184 SHA512 9418a725a33dfbedf7f692abfb92550f23fca594fa8c1b85934d601284261339f177a32af7440e0b09233b2e99b2fd7cef835c54252cec6a645ea322a389de14 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 deleted file mode 100644 index d728121913c1..000000000000 --- a/dev-java/oracle-jdk-bin/oracle-jdk-bin-9.0.4-r2.ebuild +++ /dev/null @@ -1,245 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit desktop gnome2-utils java-vm-2 prefix - -KEYWORDS="-* ~amd64 ~x64-macos ~sparc64-solaris" - -declare -A ARCH_FILES -ARCH_FILES[amd64]="jdk-${PV}_linux-x64_bin.tar.gz" -ARCH_FILES[sparc64-solaris]="jdk-${PV}_solaris-sparcv9_bin.tar.gz" -ARCH_FILES[x64-macos]="jdk-${PV}_osx-x64_bin.dmg" - -for keyword in ${KEYWORDS//-\*} ; do - SRC_URI+=" ${keyword#\~}? ( ${ARCH_FILES[${keyword#\~}]} )" -done - -DESCRIPTION="Oracle's Java SE Development Kit" -HOMEPAGE="http://www.oracle.com/technetwork/java/javase/" -LICENSE="Oracle-BCLA-JavaSE" -SLOT="${PV%%.*}" -IUSE="alsa commercial cups doc +fontconfig +gentoo-vm gtk2 gtk3 headless-awt javafx nsplugin selinux source" -REQUIRED_USE="javafx? ( alsa fontconfig ^^ ( gtk2 gtk3 ) )" -RESTRICT="fetch preserve-libs strip" -QA_PREBUILT="*" - -# NOTES: -# -# * cups is dlopened. -# -# * libpng is also dlopened but only by libsplashscreen, which isn't -# important, so we can exclude that. -# -# * We still need to work out the exact AWT and JavaFX dependencies -# under MacOS. It doesn't appear to use many, if any, of the -# dependencies below. -# -RDEPEND="!x64-macos? ( - !headless-awt? ( - x11-libs/libX11 - x11-libs/libXext - x11-libs/libXi - x11-libs/libXrender - x11-libs/libXtst - ) - javafx? ( - dev-libs/atk - dev-libs/glib:2 - dev-libs/libxml2:2 - dev-libs/libxslt - media-libs/freetype:2 - x11-libs/gdk-pixbuf - x11-libs/libX11 - x11-libs/libXtst - x11-libs/libXxf86vm - x11-libs/pango - virtual/opengl - - gtk2? ( - x11-libs/cairo - x11-libs/gtk+:2 - ) - gtk3? ( - x11-libs/cairo[glib] - x11-libs/gtk+:3 - ) - ) - ) - !prefix? ( - dev-libs/elfutils - sys-libs/glibc:* - ) - alsa? ( media-libs/alsa-lib ) - cups? ( net-print/cups ) - doc? ( dev-java/java-sdk-docs:${SLOT} ) - fontconfig? ( media-libs/fontconfig:1.0 ) - selinux? ( sec-policy/selinux-java )" - -pkg_nofetch() { - einfo "Please download ${ARCH_FILES[${ARCH}]} and move it to" - einfo "your distfiles directory:" - einfo - einfo " http://www.oracle.com/technetwork/java/javase/downloads/jdk9-downloads-3848520.html" - einfo - einfo "If the above mentioned URL does not point to the correct version anymore," - einfo "please download the file from Oracle's Java download archive:" - einfo - einfo " http://www.oracle.com/technetwork/java/javase/downloads/java-archive-javase9-3934878.html" - einfo -} - -src_unpack() { - if use x64-macos ; then - S="${WORKDIR}/Contents/Home" - mkdir -p "${T}"/dmgmount || die - hdiutil attach "${DISTDIR}/${A}" -mountpoint "${T}"/dmgmount || die - ( cd "${T}" && - xar -xf "${T}/dmgmount/JDK ${PV}.pkg" \ - jdk${PV//.}.pkg/Payload ) || die - zcat "${T}"/jdk${PV//.}.pkg/Payload | cpio -idv || die - hdiutil detach "${T}"/dmgmount || die - else - S="${WORKDIR}/jdk-${PV}" - default - fi -} - -src_install() { - local dest="/opt/${P}" - local ddest="${ED}${dest#/}" - - # Create files used as storage for system preferences. - mkdir .systemPrefs || die - touch .systemPrefs/.system.lock || die - touch .systemPrefs/.systemRootModFile || die - - if ! use alsa ; then - rm -vf lib/libjsoundalsa.* || die - fi - - if ! use commercial ; then - rm -vfr jmods/*.jfr.* lib/jfr* \ - lib/missioncontrol || die - fi - - if use headless-awt ; then - rm -vf lib/lib*{[jx]awt,splashscreen}* \ - bin/{appletviewer,javaws,policytool} || die - fi - - if ! use javafx ; then - rm -vf lib/lib*{decora,fx,glass,prism}* \ - lib/libgstreamer-lite.* lib/*fx* \ - bin/javapackager jmods/javafx* || die - else - if ! use gtk2 ; then - rm -vf lib/libglassgtk2.* || die - elif ! use gtk3 ; then - rm -vf lib/libglassgtk3.* || die - fi - fi - - if ! use nsplugin ; then - rm -vf lib/libnpjp2.* || die - else - local nsplugin=$(echo lib/libnpjp2.*) - local nsplugin_link=${nsplugin##*/} - nsplugin_link=${nsplugin_link/./-${PN}-${SLOT}.} - dosym "${dest}/${nsplugin}" "/usr/$(get_libdir)/nsbrowser/plugins/${nsplugin_link}" - fi - - if ! use source ; then - rm -v lib/src.zip || die - fi - - # Even though plugins linked against multiple ffmpeg versions are - # provided, they generally lag behind what Gentoo has available. - rm -vf lib/libavplugin* || die - - # Prune all fontconfig files so that libfontconfig will be used. - rm -v lib/fontconfig.* || die - - # Install desktop file for the Java Control Panel. Using - # ${PN}-${SLOT} to prevent file collision with JRE and other slots. - if [[ -d lib/desktop/icons ]] ; then - local icon - pushd lib/desktop/icons >/dev/null || die - for icon in */*/apps/sun-jcontrol.png ; do - insinto /usr/share/icons/"${icon%/*}" - newins "${icon}" sun-jcontrol-${PN}-${SLOT}.png - done - popd >/dev/null || die - make_desktop_entry \ - "${dest}"/bin/jcontrol \ - "Java Control Panel for Oracle JDK ${SLOT}" \ - sun-jcontrol-${PN}-${SLOT} \ - "Settings;Java;" - fi - - dodir "${dest}" - cp -pPR bin conf include jmods lib "${ddest}" || die - - # Only install Gentoo-specific fontconfig if flag is disabled. - # https://docs.oracle.com/javase/8/docs/technotes/guides/intl/fontconfig.html - if ! use fontconfig ; then - insinto "${dest}"/lib/ - doins "$(prefixify_ro "${FILESDIR}"/fontconfig.properties)" - fi - - # Needs to be done before CDS, bug #215225. - java-vm_set-pax-markings "${ddest}" - - # See bug #207282. - einfo "Creating the Class Data Sharing archives" - "${ddest}/bin/java" -server -Xshare:dump || die - - # Remove empty dirs we might have copied. - find "${D}" -type d -empty -exec rmdir -v {} + || die - - if use x64-macos ; then - local lib - for lib in lib{decora_sse,glass,prism_{common,es2,sw}}.dylib ; do - ebegin "Fixing self-reference of ${lib}" - install_name_tool \ - -id "${EPREFIX}${dest}"/lib/${lib} \ - "${ddest}"/lib/${lib} || die - eend $? - done - fi - - use gentoo-vm && java-vm_install-env "${FILESDIR}"/${PN}-9.env.sh - java-vm_revdep-mask - java-vm_sandbox-predict /dev/random /proc/self/coredump_filter -} - -pkg_preinst() { - gnome2_icon_savelist -} - -pkg_postinst() { - gnome2_icon_cache_update - java-vm-2_pkg_postinst - - if ! use headless-awt && ! use javafx ; then - ewarn "You have disabled the javafx flag. Some modern desktop Java applications" - ewarn "require this and they may fail with a confusing error message." - fi - - if use gentoo-vm ; then - ewarn "WARNING! You have enabled the gentoo-vm USE flag, making this JDK" - ewarn "recognised by the system. This will almost certainly break things." - else - ewarn "The experimental gentoo-vm USE flag has not been enabled so this JDK" - ewarn "will not be recognised by the system. For example, simply calling" - ewarn "\"java\" will launch a different JVM. This is necessary until Gentoo" - ewarn "fully supports Java 9. This JDK must therefore be invoked using its" - ewarn "absolute location under ${EPREFIX}/opt/${P}." - fi -} - -pkg_postrm() { - gnome2_icon_cache_update - java-vm-2_pkg_postrm -} |