From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 3304A58973 for ; Thu, 21 Jan 2016 14:48:53 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 472BDE0870; Thu, 21 Jan 2016 14:48:51 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B761EE0871 for ; Thu, 21 Jan 2016 14:48:50 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4D63934097F for ; Thu, 21 Jan 2016 14:48:49 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5CE34CF3 for ; Thu, 21 Jan 2016 14:48:47 +0000 (UTC) From: "James Le Cuirot" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "James Le Cuirot" Message-ID: <1453387578.d3287ea9be3aa258bd11ff2bbd0c7b72ad5a9766.chewi@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-java/oracle-jdk-bin/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-java/oracle-jdk-bin/Manifest dev-java/oracle-jdk-bin/metadata.xml dev-java/oracle-jdk-bin/oracle-jdk-bin-1.8.0.66.ebuild X-VCS-Directories: dev-java/oracle-jdk-bin/ X-VCS-Committer: chewi X-VCS-Committer-Name: James Le Cuirot X-VCS-Revision: d3287ea9be3aa258bd11ff2bbd0c7b72ad5a9766 X-VCS-Branch: master Date: Thu, 21 Jan 2016 14:48:47 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 87e96620-7832-4b08-abc5-b7a25633f901 X-Archives-Hash: faf9df4e60db5c55861f593429ad085b commit: d3287ea9be3aa258bd11ff2bbd0c7b72ad5a9766 Author: James Le Cuirot gentoo org> AuthorDate: Thu Jan 21 14:46:18 2016 +0000 Commit: James Le Cuirot gentoo org> CommitDate: Thu Jan 21 14:46:18 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d3287ea9 dev-java/oracle-jdk-bin: Remove vulnerable version wrt bug #572432 Package-Manager: portage-2.2.27 dev-java/oracle-jdk-bin/Manifest | 10 - dev-java/oracle-jdk-bin/metadata.xml | 1 - .../oracle-jdk-bin/oracle-jdk-bin-1.8.0.66.ebuild | 356 --------------------- 3 files changed, 367 deletions(-) diff --git a/dev-java/oracle-jdk-bin/Manifest b/dev-java/oracle-jdk-bin/Manifest index da54b84..14682b0 100644 --- a/dev-java/oracle-jdk-bin/Manifest +++ b/dev-java/oracle-jdk-bin/Manifest @@ -15,16 +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-8u66-linux-i586-demos.tar.gz 55055872 SHA256 7d00b6943cabfcd98a7f4e9a8a61183fd5cf12cd64c9b2500fa56f86c1fd8fb5 SHA512 9d6e5790c2f695b089ce500c9f2e56b7e54362d3d88875164c08c4c07b3eef70395f083bb17f0b40757980c887db2a3988b74e04770d0a43af1b6a4eae172861 WHIRLPOOL 5383bb6c707e0e11bf534beef676a0d715e164eccfa971af11437aeaabc8f29903c24e0f0c1e5a61fcda6f2f8a0a294d503de513cd91114a07fc053da848d8bc -DIST jdk-8u66-linux-i586.tar.gz 183327641 SHA256 21026a8d789f479d3905a4ead0c97fd5190aa9b4d1bfc66413e9136513ca84a2 SHA512 e764d5ec297b02a96a0df4d5fd5e737b0b36cad72bb471b08ee254f762cb2648a4564fdd2b6ddf9048fa22a1ef830d11d0796bc447c4b19bf14324ad4607ce9a WHIRLPOOL 9dd2f07864e971e4b0f0a888ba886cc8ef130eaeff93d812ba03d61d1fc225b279d69e6d4448aca0da8ac9f468b5f7a92a29c152c3106f3f16d309238cc3b498 -DIST jdk-8u66-linux-x64-demos.tar.gz 55125358 SHA256 9211f6994beb4aea28c31fe916752ad120a195a39f27e0183006dcf68e305012 SHA512 8293b84a13e716e45f2ee2c0e4d30ea815bf13cf7bd4583b6d8e6c52ff341a193ea0ffec523814246a53c892d0369e600feab01b7101c88ab186243b7b00b0bc WHIRLPOOL 30ef642fc8f22b5b7d9a4f111502cae471e33304525559d9d7019fa24db0d75a60edd1edb731e883bf9ff74c06f55f5a79f8f66f4d9974fcffb29b24e0102dfa -DIST jdk-8u66-linux-x64.tar.gz 181287376 SHA256 7e95ad5fa1c75bc65d54aaac9e9986063d0a442f39a53f77909b044cef63dc0a SHA512 5fa9022aefc63d8b516996137ebbfa7094af8c5cce14f48bcaee7a5a0cdbf619772215a77a3e5d7193349b50aa6cfa4d2d657372da8b010088afce30eb56206c WHIRLPOOL 6cbf8722ca4f06d0cca522de00c635aab7c22a5a3bcdfe5c5be0f841f77db2e9727bafab9347f6609da8c5df1fbf6b00647a341a1242c7c3954ca82e6759d86d -DIST jdk-8u66-macosx-x64.dmg 238148444 SHA256 cd416de4f41f9f0a6984c456481437681674a717da62259740c54732f174fa08 SHA512 7842b2bc1aa010284413f83b9233df573a8994b245fa6dc624cba865d430fc404783204998c6609b2e7c72f58414b5eacd3b94f5dd6fd40229f3c4aa6d293e13 WHIRLPOOL bf1e60eed07978f00b7abcb1fb0e6d6dbdc3386cd81a683dc5371f8ceaa9792df48cad5b51c3aba3d01dccb9dcc86669497281ed43a1b755d22f187a9435ae38 -DIST jdk-8u66-macosx-x86_64-demos.zip 55653799 SHA256 67ad6ef432f1dac5297870cc4d3b03f6d1822a60f83e75173ea3e833848a0a6c SHA512 3419a82a756fd3156ba0e3066ea8c941c33dc1cc0cf913e63662ce6b7b558af5b3d3c0deef448a8dcfc912d413bc1bfe57a508721ae3fb990b748ad44dc4b105 WHIRLPOOL e5b1f09952a98ca59d9c7bf52b1603406d151cb059b1a68886f79c25f3e3047f4cd45d9ea94ff2ef8cc3f335d24357f6bb81a0e223364713d34c4dd0471aa4ab -DIST jdk-8u66-solaris-sparcv9-demos.tar.gz 9783879 SHA256 0ee1a6dc3d7f29109f4ef89be208be52e964c6d2525e89be281c7797a122f540 SHA512 89426acecb6c8be19171f42f6a5aea3f63077d93e216531631176e268678d8a736878dafd7cedd4ed941352a2013d82fcf88e25f01251b2d3bb9b09b1aeace37 WHIRLPOOL 31570c84b9283ea4f1659e843854fdaac27567d4e060c0a341aba4206182bd63df485b053f4cc254cbc79168d5c94d3d02a57f1c51c68c64438bfe7e4ee64373 -DIST jdk-8u66-solaris-sparcv9.tar.gz 103862002 SHA256 277f8dce70d76e263adba969635e2b43386bc4f1337cdcb8b35e00b0b6319f28 SHA512 f6815525f8be73fa6873285df41118f8910653c41ee452766158bf6e36ed92a724dfb95354e59b7dd0a9b944c05f564c2165f976634abdab61751df66991ccd7 WHIRLPOOL 7d612eed241be069ac755b170f75944f832be4b0f6ac21accd5df930e834e8103df1182611ff0b1e80758ed04af870fe209926baecf9709d806d29b9c25fafac -DIST jdk-8u66-solaris-x64-demos.tar.gz 9731094 SHA256 09c732254355349405786a736d7c0146c02d62b6e89977279a8971aad2371bfa SHA512 927aff3e602e365de4e54269e4e30ba849c3aa8302ebdf0a78251f991b8a18b558e37c5ab9a7ccb823193871b051dafca6b44d33a688f0f44129fb48fdf52397 WHIRLPOOL 19de300109c941113ec654909eab822260fe0ac561518d817d0ba53bd99b2f647d806438be7f8b1b8156aadc2a4f9fe54757b4475abea51f99e40852038a644b -DIST jdk-8u66-solaris-x64.tar.gz 100868042 SHA256 e35267b37de7cf6cbccaf4b428827d3cf47eaeff9521f807c683043f7ddba6d3 SHA512 f87132aff276087dbd838affe1406029fe4c1e66fbe7fa47b42f208e4ce0cf7a923fc6db8067b5283b68777a6f27844141250e0dea2f36eca77290fd8027043b WHIRLPOOL f2debdda6e8497e383c4078c6bdc5b9cea87ebe24989c31defcd5383833561f2afaf8f09b909c2ba283d492b9bb3c3fe396fd7b264d04d8987e50b37a2bb0e34 DIST jdk-8u71-linux-arm32-vfp-hflt-demos.tar.gz 10407117 SHA256 a4fc9c11c93266ffda9ff0969993ef8dde6cf82d83551583f9df4b1e03be223f SHA512 f38d4221877876307653317167e69267daa5c59b379e2383637f1db1e68ce417a5708eff98ebb05d7fa50ce580a819c0633ca79c3e9d3ddb134309750b969418 WHIRLPOOL c8495a0a29e56b569ea68bd35605b8c6b28aca424fd50d1ae4e06f764e62de1d37f7ea670d74d90bcd15c25e3a5ae334936312f6ee6d700f7513f0aab6b83fd4 DIST jdk-8u71-linux-arm32-vfp-hflt.tar.gz 81489608 SHA256 ba3356ab06790288aeb901d3e57297fb71808c5f7b3644f264a139341d74566f SHA512 204ee9e04b7e719fa601bdb51aa7f08a6bb6600fcc08941d7c6b7de527369e93f112c3d110b16c852c913b4191f430bac5219c2bedeb368887c658125aa89aa8 WHIRLPOOL 1ef2cc9abd91c88d709ff1790e4d83dc314c28732b112fd7f18966263406a35d46d4188ac8b98483ff54e6c67776d0c220c74f3cf046c74c7c7bacc55d57b737 DIST jdk-8u71-linux-arm64-vfp-hflt-demos.tar.gz 10409614 SHA256 164b79b736334797a681138455661ee0370ebce6926289573d81fad1215cef43 SHA512 f230ba4238952de3b795ab6c329689b624efe49083eaa5ea3d351753abd45aded9c82228746f7a9b5d50461efb9727dba983cc6eaf15a15efac2f9db0bd688a3 WHIRLPOOL 46a0482c2f6f656f656657074ae0c7f73a4e6315413306a43576826201f7d562eaf7fd743b396c2de54c6e0f8fc541897c073b86bfd10f99412114ea45ae9db1 diff --git a/dev-java/oracle-jdk-bin/metadata.xml b/dev-java/oracle-jdk-bin/metadata.xml index e7dceb3..6656343 100644 --- a/dev-java/oracle-jdk-bin/metadata.xml +++ b/dev-java/oracle-jdk-bin/metadata.xml @@ -4,7 +4,6 @@ java Oracle Java SE Development Kit, Official Binary Distribution - Install non-headless AWT libraries, needed by some GUIs (used to be X flag) Install bundled Derby (Java database) Don't install the X backend for AWT, needed by some GUIs (used to be X flag) Install JavaFX libraries diff --git a/dev-java/oracle-jdk-bin/oracle-jdk-bin-1.8.0.66.ebuild b/dev-java/oracle-jdk-bin/oracle-jdk-bin-1.8.0.66.ebuild deleted file mode 100644 index c73de8c..0000000 --- a/dev-java/oracle-jdk-bin/oracle-jdk-bin-1.8.0.66.ebuild +++ /dev/null @@ -1,356 +0,0 @@ -# Copyright 1999-2015 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 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 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 x86 ~amd64-linux ~x86-linux ~x64-macos ~sparc64-solaris ~x64-solaris" -IUSE="alsa +awt cups derby doc examples +fontconfig 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? ( - awt? ( - x11-libs/libX11 - x11-libs/libXext - x11-libs/libXi - x11-libs/libXrender - ) - 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 - 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 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* || 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 - install_mozilla_plugin "${dest}/${nsplugin}" - 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 jfx{media,webkit} \ - javafx_{font,font_t2k,iio} 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 \ - $($(tc-getCC) -print-file-name=libgcc_s_ppc64.1.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 -}