diff options
author | James Le Cuirot <chewi@gentoo.org> | 2016-04-21 21:32:02 +0100 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2016-04-21 21:33:12 +0100 |
commit | 1e457916da17117abe448fef219da7021cf1c4ba (patch) | |
tree | 57cea737da8577a0c61de319965ee44794204b5e /dev-java/oracle-jdk-bin | |
parent | sys-apps/file: add a bunch of upstream fixes (diff) | |
download | gentoo-1e457916da17117abe448fef219da7021cf1c4ba.tar.gz gentoo-1e457916da17117abe448fef219da7021cf1c4ba.tar.bz2 gentoo-1e457916da17117abe448fef219da7021cf1c4ba.zip |
dev-java/oracle-jdk-bin: Remove vulnerable 1.8.0.77 wrt bug #580608
Package-Manager: portage-2.2.28
Diffstat (limited to 'dev-java/oracle-jdk-bin')
-rw-r--r-- | dev-java/oracle-jdk-bin/Manifest | 14 | ||||
-rw-r--r-- | dev-java/oracle-jdk-bin/oracle-jdk-bin-1.8.0.77.ebuild | 366 |
2 files changed, 0 insertions, 380 deletions
diff --git a/dev-java/oracle-jdk-bin/Manifest b/dev-java/oracle-jdk-bin/Manifest index dbb81799f8ae..71ce273b2e69 100644 --- a/dev-java/oracle-jdk-bin/Manifest +++ b/dev-java/oracle-jdk-bin/Manifest @@ -15,20 +15,6 @@ DIST jdk-7u80-solaris-sparcv9-demos.tar.gz 904770 SHA256 fa3a92e70e52b0bffdee8d2 DIST jdk-7u80-solaris-sparcv9.tar.gz 19301205 SHA256 1a2bce541efe7b81cafe683626b3edea56918a8ca897ff36a2deaed00a7fce05 SHA512 93ea0e8f5ae611dd1a620dffd72e315ecb6ce8375bd902a793fab128ac7e95d2cb338df1c273a2c29af6194e7cbdb810d79193b413b4b101538c08ebeef1eb41 WHIRLPOOL c9ae1f1b561c4ec1d3c1a7f5008e80642b49a9fd1c6459f8ada65c01accc338280bdd683712d54a9b7741eeccf856b4f2ee82e898fbe1f39260d58efab217185 DIST jdk-7u80-solaris-x64-demos.tar.gz 865205 SHA256 a08dd0665d35986675beeba0f80d5db54a91fb276d8641ce1ba16ba873a18682 SHA512 c53f026bfdfed8d83d42e3fce497baffeb370adf0423be2f891f6d200510088ac8227ae4f261ece059dbf29eb33cacafb20a0c328e7d8723387eba38def389d0 WHIRLPOOL 0539e964e194527055186b120df11e74ab3d9568fc2a5ff002ef405396f521a7c35013420067d37874b9602fe29d104dce63f22bfd687c45722689d62a8c552d DIST jdk-7u80-solaris-x64.tar.gz 17176587 SHA256 ccc156363e3080e92382cd675d96889460a4421464b4567333394c8405eeb709 SHA512 83ce229c3a38e454d9acafa189b3b6f247a4723ddb3c3fa08993323590949295b0f3740ab235c7c539f90a684b8cefad7839f82f566b7a141019b94af6cbad89 WHIRLPOOL 07412c6de5886c729b43726fb228783606b2a53c2a286b1af2dd5359975d1c75964a895d7da543f98c461adf0ab4b82fc32ebeb49e1835448effd93886f1b206 -DIST jdk-8u77-linux-arm32-vfp-hflt-demos.tar.gz 10430328 SHA256 4c0b15e54eebd2a969391fe00824021204352fc7a947d916e5e49e40a0b47dd7 SHA512 83f72301477825f8edab92eb3ab235b11ea516321f21b28cff8d2877c7a4409493811bc942a134e9aa8762106d1c5c2f8f9a9967a9194195ee2a6a290eaf9e11 WHIRLPOOL af62a3fd120de9ac8fec8977fc346f1c4f64d488495bd6ce8a373d62e1ff46ee50372105d5a24ac50331acd515f52dab4af90a9a00fe321b71f36199aa769873 -DIST jdk-8u77-linux-arm32-vfp-hflt.tar.gz 81472238 SHA256 c3af7a080cd74f7350680a020749b8161f78f66d1f16cda91bf758c3e58b524b SHA512 85482f839c8321b5094b404ccfc6ff1bde355842a33bbef6719e3f387688bc5d6393397cb15bc84aaaa3aefa604a5dae67f2c5a2b95aa06b3f4c832d054805a9 WHIRLPOOL d57249869f3bb6b298e9e2c625e70b89ead02f944c22e080eb355c2da6f00ecafb09482c8b30ed713af51f4be121dacb18c48d7ef42a1dfc445cefa50a3412f5 -DIST jdk-8u77-linux-arm64-vfp-hflt-demos.tar.gz 10416390 SHA256 17ba8e737b511640c3f8729daa3558c0e43b2efaaf20ae95d3ebc40632d5ce31 SHA512 5a0f054c534a8eefd8f63c68d0e796cfbeedfb25fbe17bad1c0ebd6b1bede88a136e0a5dcba3dc0685b2cb2ffd82dc451db1c8d97c4024d6e3a5fbdb557f4215 WHIRLPOOL c6dbb762ec47e8b5ce969bcf552b466c3640157fdd00539b6848048ee5472a33bcac876a30c99f5191638de973549ea630f0cb119de4ed26d482bdb8ffea77b4 -DIST jdk-8u77-linux-arm64-vfp-hflt.tar.gz 78304471 SHA256 d194595d0c6d2f0b6fad36da489e26a65e3825af85c051ce3c84d5a1f5a96b31 SHA512 48fceb586f82e4b30f02dc5878bf3108803e568abc5510513ae88afc5389136766cb8de749f5bb7cfb188394f9c3af4338fdbd96709cc8e967705a52f57962ea WHIRLPOOL e036911d1a2398c803b526c57ffa1ecd971f398e738fe5a8c60cd8155e4b648c271055fe6fc768c3a49fdc95f04d1b0491f13c70d377f2a7e7c558667bd0bff7 -DIST jdk-8u77-linux-i586-demos.tar.gz 55074148 SHA256 59e6177d33c2ff7a4836e8a8461e8435aaee59fede5dfcabd4b47b92e9fe49b6 SHA512 534812935f7f5b887be17ea778d9890b8de521a09ec61fe39bc9943412d1937a76238ea779434f9f34c3b0386e4f1721a1c9192c6d5375ae65a8817f1c62bb34 WHIRLPOOL 43dcb150d6a182453d639c52b36c968de45cbe1177c286c39b16cb8f650a6090bff9ea0d9e759df048971c90bbf53fb2b2da999d23b42a12ec3bdf9e6e913215 -DIST jdk-8u77-linux-i586.tar.gz 183417093 SHA256 f2889b778538fe3d20b2d37d0de3c3204de86126aadb75c1bb38d11255b41e92 SHA512 9f1a08e2062c15f2946e70dfe3c4d41db68ace95058257f9799d45336d5aec435869b5880639a4eb146c475fcb980471598d54f7b62759e68918ce0b37b7106f WHIRLPOOL 3068d1b2360a0cd96963d5a5ed0bc77e036f7b70a8d5b412056b8d7a104517584029f78f40eb8840e0d5bca68c91f86134dd2e61b37093f10a7f9bc526e62471 -DIST jdk-8u77-linux-x64-demos.tar.gz 55134532 SHA256 e816859e6b168ee63a85d8b0ffbd6d78ca47de7be216fa1afef94f3ef989536a SHA512 ab0ceb9c866bed3a4943e78ab66077a1cbd952be005484ed4390dfc5150b8bcaf0afa1286ab52e34f0ada97926887eceb2c4923ae29289cca63fe17f095fdf7a WHIRLPOOL 60c901ba4510cf1226a9d5b73ac0ecb5e4a0225dd313e3cd1f4c786216c5a45f5b3182e117ceeace5aa3b10fefd82c138b90079fbddee228305536b8bc791f81 -DIST jdk-8u77-linux-x64.tar.gz 181365687 SHA256 a47dc0962a57b27a0cc00b9f11a53dc3add40c98633ba49a2419b845e4dedf43 SHA512 02eb338f910669d2b772eaf3c170ee8cfca6c149212e899370c8a9cd4a06f588bfc56771973c3763163d49290803c456aa9e64642268de163119b252cb32554d WHIRLPOOL a38b9b8c4e502902f68784e66b383cef72648409dab814bd63680ee08cf32908a71a45358765dcd55c5cb4eb83f38dd558b200cffdf43428d81696f795a60005 -DIST jdk-8u77-macosx-x64.dmg 238309337 SHA256 b7464e3876b0b58b97288ce801a8317d71fca802fc1d3b2177e4b514ddc0088c SHA512 b341b9308767114fb0cc22a44735143497717389711bde5cbb607f3940baf49209cab459c2db0c91bb3492c1fa1bc1094f2fd390a261dfa098379a8815faddf2 WHIRLPOOL e7d66b536413be33b2ed6fb305fbceb90016b2dbeace2ba3f9cc616e1ebfad0991e948fc3d49aff4cb241c4119d6b4bb4c4c3fed577feb75e8b9cc588719c6ab -DIST jdk-8u77-macosx-x86_64-demos.zip 55665366 SHA256 533c05ebfee495feca0d4f6902356a545792b5f1c84a4b037577cf8e5bfcdafb SHA512 8af4f6bb4111c56569ff4c5687455abc3a4d0acfe992d85158d5aacd885bbfaec5196dfae59a525c69b3104437e68f95826c098493f04b5551a96a4d6ad55050 WHIRLPOOL d5a8cd0a0a5ffecee07adf84fe837a47ba0cbdebcccf3ffed8275370d4b14a93e39c772bf489a58556382b6e1c9106d77b5806abbf84bcb385ddcf05b3d2a0f5 -DIST jdk-8u77-solaris-sparcv9-demos.tar.gz 9779097 SHA256 4b2d0cb314e47e59f7dc445cd88b38553a818f35100d610c199b4678b5d528d9 SHA512 7e7045a0599ff0741fb28b7adb846dba504029493fdbce4b4e7492721050878055dd0b762b573654c8c2f842e849ee5f2a73c08a27e2b90a4a9a271460210ea2 WHIRLPOOL 452d9506c70fdb3658cdb00c532af4bcd250b804cf04a96be2e40e8cd58e5a0dfa9f64bc90f1ea2de45743b2262b9d01c9da36d58c9180c424ff448291fe43fb -DIST jdk-8u77-solaris-sparcv9.tar.gz 103876991 SHA256 ed3d65f2fc3e2555ec26988d7a9bc4a25cb01e4de0fde4ea878ea84584dcf4ef SHA512 b7c3de717b57608ee5a19f84139bb0fb0d9698a0dc254a041bc6f0fffa995deee30d0e6fcf5a69d9473f3f62780d05d9ab8d7909283618a915ce1fd5b2c22920 WHIRLPOOL 9cdea23f84ca0a05c358b857f4edc704d95d4670e742e57eca426692e862124fb4ee68983cf1bb7caae82d168cb2ef28c07f8898c241a589ce437b938584961d -DIST jdk-8u77-solaris-x64-demos.tar.gz 9721749 SHA256 0c323d8b78fb3c37a1d718a455be6d02ebf565ca8895614f721fcdba2d7385ad SHA512 0ec1b763131727a2cdf7dfa8ed47d662d7925e07c45f895a636c1cafd03569a0689df6caef9e181306173a84fab0a9b1e5496578e12519e01815410882c49b96 WHIRLPOOL eaa0a2e4c70f58046df81870deb0cdc93a957b025eca5045b6caa4cf067476bfc282ffd23c9f6b8dd14032841155784a9858686f2fa9c868926e8c9ed7962468 -DIST jdk-8u77-solaris-x64.tar.gz 100853474 SHA256 696782a0cff2db4c50977a77ce2612d5bbc9d9796e5a316b4286b6955dc54b64 SHA512 ef88f6a318c9642e41927b44cf56296eab67fca818872fae985be9323129264c81903a76cc41f49b47483f79851b83558bab275133fe48cb5301fc8ba0851327 WHIRLPOOL 00b1c2b57230c0181ecba5a1d0ede62c055c3ab1178623db8903ce384fe3ad3761b2309608dc71022c0d598feb38a7207166ce1060e2f6521e51cde13e7a8068 DIST jdk-8u91-linux-arm32-vfp-hflt-demos.tar.gz 10403988 SHA256 3314a782f16ba67c9a1647b5a04d5955c8f0005b864530be615d3206453cd364 SHA512 f8b421b2ec3a0d2ae460356f7573c2f05424664f0479b930d97cb41510373790b3538d415464e12958fd38d3f6367e75bf225262b79e823bb70d0d80abf9b65f WHIRLPOOL e6a7e2e5bf35d980915c427b21cd735ca7b74eb8213d7edf3d125f1a7183bf0a2a078c02ad74be1566802575f077ea1602f2190f098c968b9a4ea09958e20d5a DIST jdk-8u91-linux-arm32-vfp-hflt.tar.gz 81491339 SHA256 79dda1dec6ccd7130b5204e75d1a8300e5b02c18f70888697f51764a777e5339 SHA512 c0487836d09df1d23ac2118e2b2ed60a85bf54a0d706486d19c44b1c3226b0317f5a86780f9956fee49b3aa9d4ba90779ad0483a5dfdf6fa56bb9880e099e44b WHIRLPOOL b1ed11cd171ff03f7d4d1a6f0c771003e35274aab0c1954a152315853b6baf7c408e478197b5ac7a9660a2e74d40f9885dde30b29ade0ffea0e78e57ee54f57b DIST jdk-8u91-linux-arm64-vfp-hflt-demos.tar.gz 10425383 SHA256 f5e4f27491779adeb62a272a112cdaff242a1d9899dced2d35e3da1e709e84b2 SHA512 6e80d5ebe80d83759443a8f4835efb81f29b58ca1976f4570eaad33274b8333ccd831dba9f67938be2a709051b2e95abb5ee16b9f0d02f6de69b28292a27cae1 WHIRLPOOL 7cc4150c8a0f6704079e42a607bc237379c5d22f0f0f9480b168edb3b8e9314f027a5b6c0e7f951647ec48a0b4a54ea0c9aecc015929b8dae5fd16ba63a84392 diff --git a/dev-java/oracle-jdk-bin/oracle-jdk-bin-1.8.0.77.ebuild b/dev-java/oracle-jdk-bin/oracle-jdk-bin-1.8.0.77.ebuild deleted file mode 100644 index e85a41788edc..000000000000 --- a/dev-java/oracle-jdk-bin/oracle-jdk-bin-1.8.0.77.ebuild +++ /dev/null @@ -1,366 +0,0 @@ -# Copyright 1999-2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI="5" - -inherit eutils java-vm-2 prefix versionator - -# This URIs need to be updated when bumping! -JDK_URI="http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html" -JCE_URI="http://www.oracle.com/technetwork/java/javase/downloads/jce8-download-2133166.html" - -# This is a list of archs supported by this update. -# Currently arm comes and goes. -AT_AVAILABLE=( amd64 arm arm64 x86 x64-solaris sparc64-solaris x64-macos ) - -# Sometimes some or all of the demos are missing, this is to not have to rewrite half -# the ebuild when it happens. -DEMOS_AVAILABLE=( amd64 arm arm64 x86 x64-solaris sparc64-solaris x64-macos ) - -if [[ "$(get_version_component_range 4)" == 0 ]] ; then - S_PV="$(get_version_component_range 1-3)" -else - MY_PV_EXT="u$(get_version_component_range 4)" - S_PV="$(get_version_component_range 1-4)" -fi - -MY_PV="$(get_version_component_range 2)${MY_PV_EXT}" - -AT_amd64="jdk-${MY_PV}-linux-x64.tar.gz" -AT_arm="jdk-${MY_PV}-linux-arm32-vfp-hflt.tar.gz" -AT_arm64="jdk-${MY_PV}-linux-arm64-vfp-hflt.tar.gz" -AT_x86="jdk-${MY_PV}-linux-i586.tar.gz" -AT_x64_solaris="jdk-${MY_PV}-solaris-x64.tar.gz" -AT_sparc64_solaris="${AT_sparc_solaris} jdk-${MY_PV}-solaris-sparcv9.tar.gz" -AT_x64_macos="jdk-${MY_PV}-macosx-x64.dmg" - -DEMOS_amd64="jdk-${MY_PV}-linux-x64-demos.tar.gz" -DEMOS_arm="jdk-${MY_PV}-linux-arm32-vfp-hflt-demos.tar.gz" -DEMOS_arm64="jdk-${MY_PV}-linux-arm64-vfp-hflt-demos.tar.gz" -DEMOS_x86="jdk-${MY_PV}-linux-i586-demos.tar.gz" -DEMOS_x64_solaris="jdk-${MY_PV}-solaris-x64-demos.tar.gz" -DEMOS_sparc64_solaris="jdk-${MY_PV}-solaris-sparcv9-demos.tar.gz" -DEMOS_x64_macos="jdk-${MY_PV}-macosx-x86_64-demos.zip" - -JCE_DIR="UnlimitedJCEPolicyJDK8" -JCE_FILE="jce_policy-8.zip" - -DESCRIPTION="Oracle's Java SE Development Kit" -HOMEPAGE="http://www.oracle.com/technetwork/java/javase/" -for d in "${AT_AVAILABLE[@]}"; do - SRC_URI+=" ${d}? ( $(eval "echo \${$(echo AT_${d/-/_})}")" - if has ${d} "${DEMOS_AVAILABLE[@]}"; then - SRC_URI+=" examples? ( $(eval "echo \${$(echo DEMOS_${d/-/_})}") )" - fi - SRC_URI+=" )" -done -unset d -SRC_URI+=" jce? ( ${JCE_FILE} )" - -LICENSE="Oracle-BCLA-JavaSE examples? ( BSD )" -SLOT="1.8" -KEYWORDS="amd64 ~arm ~arm64 x86 ~amd64-linux ~x86-linux ~x64-macos ~sparc64-solaris ~x64-solaris" -IUSE="alsa cups derby doc examples +fontconfig headless-awt javafx jce nsplugin pax_kernel selinux source" -REQUIRED_USE="javafx? ( alsa fontconfig )" - -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/glib:2 - dev-libs/libxml2:2 - dev-libs/libxslt - media-libs/freetype:2 - x11-libs/cairo - x11-libs/gtk+:2 - x11-libs/libX11 - x11-libs/libXtst - x11-libs/libXxf86vm - x11-libs/pango - virtual/opengl - ) - ) - alsa? ( media-libs/alsa-lib ) - cups? ( net-print/cups ) - doc? ( dev-java/java-sdk-docs:${SLOT} ) - fontconfig? ( media-libs/fontconfig:1.0 ) - !prefix? ( sys-libs/glibc:* ) - selinux? ( sec-policy/selinux-java )" - -# A PaX header isn't created by scanelf so depend on paxctl to avoid -# fallback marking. See bug #427642. -DEPEND="app-arch/zip - jce? ( app-arch/unzip ) - examples? ( x64-macos? ( app-arch/unzip ) ) - pax_kernel? ( sys-apps/paxctl )" - -S="${WORKDIR}/jdk" - -check_tarballs_available() { - local uri=$1; shift - local dl= unavailable= - for dl in "${@}" ; do - [[ ! -f "${DISTDIR}/${dl}" ]] && unavailable+=" ${dl}" - done - - if [[ -n "${unavailable}" ]] ; then - if [[ -z ${_check_tarballs_available_once} ]] ; then - einfo - einfo "Oracle requires you to download the needed files manually after" - einfo "accepting their license through a javascript capable web browser." - einfo - _check_tarballs_available_once=1 - fi - einfo "Download the following files:" - for dl in ${unavailable}; do - einfo " ${dl}" - done - einfo "at '${uri}'" - einfo "and move them to '${DISTDIR}'" - einfo - einfo "If the above mentioned urls do not point to the correct version anymore," - einfo "please download the files from Oracle's java download archive:" - einfo - einfo " http://www.oracle.com/technetwork/java/javase/downloads/java-archive-javase8-2177648.html#jdk-${MY_PV}-oth-JPR" - einfo - fi -} - -pkg_nofetch() { - local distfiles=( $(eval "echo \${$(echo AT_${ARCH/-/_})}") ) - if use examples && has ${ARCH} "${DEMOS_AVAILABLE[@]}"; then - distfiles+=( $(eval "echo \${$(echo DEMOS_${ARCH/-/_})}") ) - fi - check_tarballs_available "${JDK_URI}" "${distfiles[@]}" - - use jce && check_tarballs_available "${JCE_URI}" "${JCE_FILE}" -} - -src_unpack() { - if use x64-macos ; then - pushd "${T}" > /dev/null - mkdir dmgmount - hdiutil attach "${DISTDIR}"/jdk-${MY_PV}-macosx-x64.dmg \ - -mountpoint "${T}"/dmgmount - local update=$(get_version_component_range 4) - [[ ${#update} == 1 ]] && update="0${update}" - xar -xf dmgmount/JDK\ $(get_version_component_range 2)\ Update\ ${update}.pkg - hdiutil detach "${T}"/dmgmount - zcat jdk1${MY_PV%u*}0${update}.pkg/Payload | cpio -idv - mv Contents/Home "${WORKDIR}"/jdk${MY_PV} - popd > /dev/null - use jce && unpack "${JCE_FILE}" - else - default - fi - - # Upstream is changing their versioning scheme every release around 1.8.0.*; - # to stop having to change it over and over again, just wildcard match and - # live a happy life instead of trying to get this new jdk1.8.0_05 to work. - mv "${WORKDIR}"/jdk* "${S}" || die -} - -src_prepare() { - if use jce ; then - mv "${WORKDIR}"/${JCE_DIR} jre/lib/security/ || die - fi - - if [[ -n ${JAVA_PKG_STRICT} ]] ; then - # Mark this binary early to run it now. - pax-mark Cm ./bin/javap - - eqawarn "Ensure that this only calls trackJavaUsage(). If not, see bug #559936." - eqawarn - eqawarn "$(./bin/javap -J-Duser.home=${T} -c sun.misc.PostVMInitHook || die)" - fi - - # Remove the hook that calls Oracle's evil usage tracker. Not just - # because it's evil but because it breaks the sandbox during builds - # and we can't find any other feasible way to disable it or make it - # write somewhere else. See bug #559936 for details. - zip -d jre/lib/rt.jar sun/misc/PostVMInitHook.class || die -} - -src_install() { - local dest="/opt/${P}" - local ddest="${ED}${dest#/}" - - # Create files used as storage for system preferences. - mkdir jre/.systemPrefs || die - touch jre/.systemPrefs/.system.lock || die - touch jre/.systemPrefs/.systemRootModFile || die - - if ! use alsa ; then - rm -vf jre/lib/*/libjsoundalsa.* || die - fi - - if use headless-awt ; then - rm -vf {,jre/}lib/*/lib*{[jx]awt,splashscreen}* \ - {,jre/}bin/{javaws,policytool} \ - bin/appletviewer || die - fi - - if ! use javafx ; then - rm -vf jre/lib/*/lib*{decora,fx,glass,prism}* \ - jre/lib/*/libgstreamer-lite.* {,jre/}lib/{,ext/}*fx* \ - bin/*javafx* bin/javapackager || die - fi - - if ! use nsplugin ; then - rm -vf jre/lib/*/libnpjp2.* || die - else - local nsplugin=$(echo jre/lib/*/libnpjp2.*) - fi - - # Even though plugins linked against multiple ffmpeg versions are - # provided, they generally lag behind what Gentoo has available. - rm -vf jre/lib/*/libavplugin* || die - - dodoc COPYRIGHT - dodir "${dest}" - cp -pPR bin include jre lib man "${ddest}" || die - - if use derby ; then - cp -pPR db "${ddest}" || die - fi - - if use examples && has ${ARCH} "${DEMOS_AVAILABLE[@]}" ; then - cp -pPR demo sample "${ddest}" || die - fi - - if use jce ; then - dodir "${dest}"/jre/lib/security/strong-jce - mv "${ddest}"/jre/lib/security/US_export_policy.jar \ - "${ddest}"/jre/lib/security/strong-jce || die - mv "${ddest}"/jre/lib/security/local_policy.jar \ - "${ddest}"/jre/lib/security/strong-jce || die - dosym "${dest}"/jre/lib/security/${JCE_DIR}/US_export_policy.jar \ - "${dest}"/jre/lib/security/US_export_policy.jar - dosym "${dest}"/jre/lib/security/${JCE_DIR}/local_policy.jar \ - "${dest}"/jre/lib/security/local_policy.jar - fi - - if use nsplugin ; then - 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 - cp -v src.zip "${ddest}" || die - - if use javafx ; then - cp -v javafx-src.zip "${ddest}" || die - fi - fi - - if [[ -d jre/lib/desktop ]] ; then - # Install desktop file for the Java Control Panel. - # Using ${PN}-${SLOT} to prevent file collision with jre and or - # other slots. make_desktop_entry can't be used as ${P} would - # end up in filename. - newicon jre/lib/desktop/icons/hicolor/48x48/apps/sun-jcontrol.png \ - sun-jcontrol-${PN}-${SLOT}.png || die - sed -e "s#Name=.*#Name=Java Control Panel for Oracle JDK ${SLOT}#" \ - -e "s#Exec=.*#Exec=/opt/${P}/jre/bin/jcontrol#" \ - -e "s#Icon=.*#Icon=sun-jcontrol-${PN}-${SLOT}#" \ - -e "s#Application;##" \ - -e "/Encoding/d" \ - jre/lib/desktop/applications/sun_java.desktop \ - > "${T}"/jcontrol-${PN}-${SLOT}.desktop || die - domenu "${T}"/jcontrol-${PN}-${SLOT}.desktop - fi - - # Prune all fontconfig files so libfontconfig will be used and only install - # a Gentoo specific one if fontconfig is disabled. - # http://docs.oracle.com/javase/8/docs/technotes/guides/intl/fontconfig.html - rm "${ddest}"/jre/lib/fontconfig.* - if ! use fontconfig ; then - cp "${FILESDIR}"/fontconfig.Gentoo.properties "${T}"/fontconfig.properties || die - eprefixify "${T}"/fontconfig.properties - insinto "${dest}"/jre/lib/ - doins "${T}"/fontconfig.properties - fi - - # This needs to be done before CDS - #215225 - java-vm_set-pax-markings "${ddest}" - - # see bug #207282 - einfo "Creating the Class Data Sharing archives" - case ${ARCH} in - arm|ia64) - ${ddest}/bin/java -client -Xshare:dump || die - ;; - x86) - ${ddest}/bin/java -client -Xshare:dump || die - # limit heap size for large memory on x86 #467518 - # this is a workaround and shouldn't be needed. - ${ddest}/bin/java -server -Xms64m -Xmx64m -Xshare:dump || die - ;; - *) - ${ddest}/bin/java -server -Xshare:dump || die - ;; - esac - - # Remove empty dirs we might have copied. - find "${D}" -type d -empty -exec rmdir -v {} + || die - - if use x64-macos ; then - # Fix miscellaneous install_name issues. - pushd "${ddest}"/jre/lib > /dev/null || die - local lib needed nlib npath - for lib in decora_sse glass prism_{common,es2,sw} ; do - lib=lib${lib}.dylib - einfo "Fixing self-reference of ${lib}" - install_name_tool \ - -id "${EPREFIX}${dest}/jre/lib/${lib}" \ - "${lib}" - done - popd > /dev/null - - # This is still jdk1{5,6}, even on Java 8, so don't change it - # until you know different. - for nlib in jdk1{5,6} ; do - install_name_tool -change \ - /usr/lib/libgcc_s_ppc64.1.dylib \ - /usr/lib/libSystem.B.dylib \ - "${ddest}"/lib/visualvm/profiler/lib/deployed/${nlib}/mac/libprofilerinterface.jnilib - install_name_tool -id \ - "${EPREFIX}${dest}"/lib/visualvm/profiler/lib/deployed/${nlib}/mac/libprofilerinterface.jnilib \ - "${ddest}"/lib/visualvm/profiler/lib/deployed/${nlib}/mac/libprofilerinterface.jnilib - done - fi - - set_java_env - java-vm_revdep-mask - java-vm_sandbox-predict /dev/random /proc/self/coredump_filter -} - -pkg_postinst() { - 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 -} |