dev-java/oracle-jdk-bin: version bump to 1.8.0.192

Bug: https://bugs.gentoo.org/668948
Signed-off-by: Philipp Ammann <philipp.ammann@posteo.de>
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11
This commit is contained in:
Philipp Ammann
2018-10-19 13:14:22 +00:00
committed by James Le Cuirot
parent 22f3d7717f
commit 897bfd4660
2 changed files with 311 additions and 0 deletions

View File

@@ -12,6 +12,20 @@ DIST jdk-8u181-solaris-sparcv9-demos.tar.gz 8869506 BLAKE2B 518519ee84e7b4b03062
DIST jdk-8u181-solaris-sparcv9.tar.gz 98921065 BLAKE2B ad02fc872bb23c36990c3c4915a7f11beb490559382463852a6db9bbf046f5fa3f4003951c85d8e4b2bc870fa135967b083b125f9a11e3de996b4444e49fbaf5 SHA512 3acc108955b8669cfb83f26512d750ea977fb84cde0f515d791df76a2ea67a0951d0ebb120e00184d542e24678afcac35671d35573b7bb961759d8bf95b1ae91
DIST jdk-8u181-solaris-x64-demos.tar.gz 8835006 BLAKE2B 32269b2bb6e8b2a6552ce53f666aec820838189c35e0f44491e944150422453a4a4bbaea3824053483a1a116f08365a2a13162fba11f5f632cdb3790d3146943 SHA512 ef27f42a0d9fa0bb8ee289a882e08c9ce1311cc2424439e7d342ef63885cc68cf5464fa7cebc715ad1efffaafeffd55720a121a1cf093fb2fd10bbe6f4a3d7fb
DIST jdk-8u181-solaris-x64.tar.gz 96580362 BLAKE2B 03007adadcf89d8c0984fab34d6d5b01f0136eaea9a02da7f1afdb1fb4b1544fb04ad2943dcb0dd6da51375f1de3ee3e72e5170697a31b871a8da0d124d1070a SHA512 ecbd9c3fb5d757504186dcad0a9606f2aec6549f2fb3424527dd621618b9726152a7c3168c32eec8f28731e547feab96fa190fc4eacc713f608fe851658d10e0
DIST jdk-8u192-linux-arm32-vfp-hflt-demos.tar.gz 9508019 BLAKE2B 6eabd83f98f1497c2c73cfb5972985ca879efba002f474dca9a0f4d30e3986ccae7886aac074f2f6ffc4100cc8c96514ccae0bc60af845028e8e89b301fbfcbb SHA512 8b5e79d55e2c88127b53f9c52fb0e7033b1023daddcb59b43c991baf46db7276a5fabf8b39516b097967aeed354e4d7399c459a5784448cd4f6f4872b1d758a0
DIST jdk-8u192-linux-arm32-vfp-hflt.tar.gz 76544503 BLAKE2B fdafcddd9e277a9421e9218e2b5de83792f9533cfc3b3e99afe8ee94776ae573fc97ed73702dbf7e96461741e7939b111ac8dcdfba9bdf28d2b6951acad8479f SHA512 ccf6c6fbae9453c86b53255e13a3eaf3cc1ab999480244c8a38236c7d29ca46e9f1a0ce9e9fd02295a0f98eac97f3ac5231909fab655c0eda0f24a2d42c7c4ed
DIST jdk-8u192-linux-arm64-vfp-hflt-demos.tar.gz 9506333 BLAKE2B 1928bab95e3877fd9f5c28a7ac988c37613f5ae74abca9646c8fca1d9ebb2c4d984783699411263537bd957b0268647e1dd1d62036a15f6dc7d918e4582ccebd SHA512 cee7a8de81fddafb26ca4b64f6c01052c51524e28e281863b17536200068de0e68ae66494e9e0d86cc6bad1dd01aafed281a9690e3e1c0a05d890a3e32850e5f
DIST jdk-8u192-linux-arm64-vfp-hflt.tar.gz 73317460 BLAKE2B 5be8ac7829ecf7a95c7ee60436abf5ca318003d11a4c3ad9ba75306983c934bd3edbce2e54fbfd472a8a6ac6d7b24be57ef87f14c7af2ad4d5acb2c74ce167c9 SHA512 8471afed26e5ded356bbd39b95d8f1ebd3a5147ae7cc4a94c90efa9bf8baff23dc8f4b10f2973307a1f48d3722604603c3e4d708bdf21c4f5aacfb0cac088b7d
DIST jdk-8u192-linux-i586-demos.tar.gz 58483041 BLAKE2B e333914701dcf4ae57506f12846b19de91b323a63cb11f1bf840d4f3dc1b620ff141b0b7c5e2a21e4d2e2e3141c1e9a9ea6ccb01d0a5bc97d51053e9ac4e5f9e SHA512 d9b2e4b2f1052c56dad3dc0c715ab51e3cd68eeb8e6911a4f15683fec98873bf510b36541c8725263bfca7fcba65e4cb6c8bb47e4bc7e67d660b06b7e0cf0fdf
DIST jdk-8u192-linux-i586.tar.gz 194717101 BLAKE2B 73f59da39bb5b9c2bcedec5e112b4f7ad16df144a8ef0d030f157903eb3a51bbd7a7f262da5fb478c4441658c2a0a30ff96e497d72c24a143e2118e4b3ae6b96 SHA512 a4bd3bfa9dbd9d64d270c75b23c985ccc5bc2a706dedcf5007b6cd027249acf4e1a0379e470baf9cb2b83f8b3b26a3720320171b4ea286c38d9c1318195257d1
DIST jdk-8u192-linux-x64-demos.tar.gz 58589568 BLAKE2B 3a025954ed0b9a174f3bd642fe3a650562e200a549e6dfde4b34e01df0137a24a8d89b30b3bc9a2f7f189b4a41236b3678d54a7012a7c3555e168ed258a2bb3e SHA512 48e1b112c91e7b81579625b29050a48f3237b18b15a278750ed4436a3eb9869392af091599e39f1d492eb3b92cdf932a8c772040539f9e10f0d263b1afafd1c4
DIST jdk-8u192-linux-x64.tar.gz 191757099 BLAKE2B 42135add35e5acf2ebe539a5667828f41e88de1dbb79d39228353d5cb5597899b6a15cfc5637317706f209888120af5d044cf3a074bbea960f425226e8e4002c SHA512 96ce0662ab474b33d28fa14edada040bd6b0a17b9374741bb132f7e9cc21b6f5f03cf8926bdef5e44669a9ffa593f887ab82d42b7b701eeca74a173f70dfdedb
DIST jdk-8u192-macosx-x64.dmg 257868944 BLAKE2B 86e915111aabf53fddc46cdea4d7a1b6a9425e1238d156888e5d2f2784a685873c7a388cf066099d8bf5d164ff7d14380c3b9c329a48accb4d300542d95a67a5 SHA512 db059e7c8ec627dabbad46a388c0a36ec5591ae9513e9f82db9a0bd154c6001e97a526234c5f435ead867702986995dc8b866d925b63dfe2ff6d4d6394f10db9
DIST jdk-8u192-macosx-x86_64-demos.zip 58763903 BLAKE2B b38c05db314582c5015ee7253473aa8bf81bb098e27e952153b139186390047b9357a5134ed1574cd0923d9fea4fafd265248ed65179c4288b4d57c0ae86044a SHA512 c55ac8338b494cc20cf521163b500856d8583f6873100b30d1d7eb388789c28907f76f8504bfb1ccd657094280a1c26b26d5c0122bd95de6b30f3e72e300428c
DIST jdk-8u192-solaris-sparcv9-demos.tar.gz 8867227 BLAKE2B 76d8a98475eaa3ae2c0209d11640dbbd32aa677f8db40fcc87a9a4c86dd249fbf6bbc3ae9b84ae268468b8082dedd23374b1cae41438f45f7bf42038b2c2a5b9 SHA512 d5ccf03d693ab8ed10aac35b2bbd6823524e915a32e953dd162352cfa1bad7b5fe0db5cd1dcb44d79ab454bc2566d1ca6ba145ab4b28dba1a6c6a001198f3f91
DIST jdk-8u192-solaris-sparcv9.tar.gz 98913870 BLAKE2B a27a3dc4a6e68972919417f769aeab5716410ed4f793f46886a081799fd4f8b0c2de6f30d7a0a65e08fe9dafe35c83e33f2c26d5e71e9161b6ef40ff3e05d8b4 SHA512 e241c00b29b3e18a3d0ddcc3f88f35c092488cc1b93b0daa348088d85f0a117a43903c5cb3c9edc93653e6f420c4c2f2f8a2647682ed0a2a509add5dd844012e
DIST jdk-8u192-solaris-x64-demos.tar.gz 8827060 BLAKE2B 9306b0cd984139a5ab1c32c8a436e1e294dbaf0118e1b88eed5079eada806d9049b0acc41279de385173bad94f351891e4bf6baeef4a0478ffb552773fab4dad SHA512 d6f2dc2a8c61b65b3a16b206b7ed7767153bd0713701b1b0d545cc1305739239dff6f1c33d0b7f1412f59262666bcb005b48154ae6d9ef4dbbc900e3ae253c88
DIST jdk-8u192-solaris-x64.tar.gz 96644048 BLAKE2B 24cdbdc006c45ed28fb7eb855ec295f568bad1c866d57961085047901dcf72e341d05b407fccba43f66896fcf28b09bed8e02e6ee5069071a430b4424bdf1af4 SHA512 7db73b08d3ef52a7e486a99140265091916433c3d0768e2b0631de5ad649ca76a9792e40122de49677caac67951f036824021f91f50f36026d7cf7971b93e4a0
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

View File

@@ -0,0 +1,297 @@
# Copyright 1999-2018 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit desktop gnome2-utils java-vm-2 prefix versionator
KEYWORDS="-* ~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux ~x64-macos ~sparc64-solaris ~x64-solaris"
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}"
declare -A ARCH_FILES
ARCH_FILES[amd64]="jdk-${MY_PV}-linux-x64.tar.gz"
ARCH_FILES[arm]="jdk-${MY_PV}-linux-arm32-vfp-hflt.tar.gz"
ARCH_FILES[arm64]="jdk-${MY_PV}-linux-arm64-vfp-hflt.tar.gz"
ARCH_FILES[x86]="jdk-${MY_PV}-linux-i586.tar.gz"
ARCH_FILES[x64-macos]="jdk-${MY_PV}-macosx-x64.dmg"
ARCH_FILES[sparc64-solaris]="jdk-${MY_PV}-solaris-sparcv9.tar.gz"
ARCH_FILES[x64-solaris]="jdk-${MY_PV}-solaris-x64.tar.gz"
for keyword in ${KEYWORDS//-\*} ; do
case "${keyword#\~}" in
*-linux) continue ;;
x64-macos) demo="jdk-${MY_PV}-macosx-x86_64-demos.zip" ;;
*) demo=${ARCH_FILES[${keyword#\~}]/./-demos.} ;;
esac
SRC_URI+="
${keyword#\~}? (
${ARCH_FILES[${keyword#\~}]}
examples? ( ${demo} )
)"
done
DESCRIPTION="Oracle's Java SE Development Kit"
HOMEPAGE="http://www.oracle.com/technetwork/java/javase/"
LICENSE="Oracle-BCLA-JavaSE examples? ( BSD )"
SLOT="1.8"
IUSE="alsa commercial cups doc examples +fontconfig headless-awt javafx jce nsplugin selinux source visualvm"
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 )"
DEPEND="app-arch/zip
examples? ( x64-macos? ( app-arch/unzip ) )"
S="${WORKDIR}/jdk$(replace_version_separator 3 _ ${S_PV})"
pkg_nofetch() {
local a
einfo "Please download these files and move them to your distfiles directory:"
einfo
for a in ${A} ; do
[[ ! -f ${DISTDIR}/${a} ]] && einfo " ${a}"
done
einfo
einfo " http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.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-javase8-2177648.html"
einfo
}
src_unpack() {
if use x64-macos ; then
mkdir -p "${T}"/dmgmount || die
hdiutil attach "${DISTDIR}"/jdk-${MY_PV}-macosx-x64.dmg \
-mountpoint "${T}"/dmgmount || die
local jdkgen=$(get_version_component_range 2)
local uver=$(get_version_component_range 4)
( cd "${T}" &&
xar -xf "${T}/dmgmount/JDK ${jdkgen} Update ${uver}.pkg" \
jdk${PV//.}.pkg/Payload ) || die
zcat "${T}"/jdk${PV//.}.pkg/Payload | cpio -idv || die
hdiutil detach "${T}"/dmgmount || die
mv Contents/Home "${S}" || die
fi
default
}
src_prepare() {
default
if [[ -n ${JAVA_PKG_STRICT} ]] ; then
# Mark this binary early to run it now.
pax-mark m ./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 commercial ; then
rm -vfr lib/missioncontrol jre/lib/jfr* || 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.*)
local nsplugin_link=${nsplugin##*/}
nsplugin_link=${nsplugin_link/./-${PN}-${SLOT}.}
dosym "${dest}/${nsplugin}" "/usr/$(get_libdir)/nsbrowser/plugins/${nsplugin_link}"
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
# Prune all fontconfig files so that libfontconfig will be used.
rm -v jre/lib/fontconfig.* || die
# Packaged as dev-util/visualvm but some users prefer this version.
use visualvm || find -name "*visualvm*" -exec rm -vfr {} + || die
# Install desktop file for the Java Control Panel. Using
# ${PN}-${SLOT} to prevent file collision with JRE and other slots.
if [[ -d jre/lib/desktop/icons ]] ; then
local icon
pushd jre/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
dodoc COPYRIGHT
dodir "${dest}"
cp -pPR bin include jre lib man "${ddest}" || die
if use examples && [[ ${A} = *-demos.* ]] ; then
cp -pPR demo sample "${ddest}" || die
fi
ln -s policy/$(usex jce unlimited limited)/{US_export,local}_policy.jar \
"${ddest}"/jre/lib/security/ || die
if use source ; then
cp -v src.zip "${ddest}" || die
if use javafx ; then
cp -v javafx-src.zip "${ddest}" || die
fi
fi
# 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}"/jre/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"
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
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}"/jre/lib/${lib} \
"${ddest}"/jre/lib/${lib} || die
eend $?
done
fi
java-vm_install-env "${FILESDIR}"/${PN}.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
}
pkg_postrm() {
gnome2_icon_cache_update
java-vm-2_pkg_postrm
}