diff options
author | James Le Cuirot <chewi@gentoo.org> | 2016-02-09 22:11:55 +0000 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2016-02-09 22:19:09 +0000 |
commit | 03c60c5939900c381f387883ebaa9394aed72fe0 (patch) | |
tree | 1b6b48b64122980a15c511d2e26778a10063b8a6 /dev-java/oracle-jdk-bin | |
parent | dev-java/oracle-jre-bin: Version bump wrt bug #574290 (diff) | |
download | gentoo-03c60c5939900c381f387883ebaa9394aed72fe0.tar.gz gentoo-03c60c5939900c381f387883ebaa9394aed72fe0.tar.bz2 gentoo-03c60c5939900c381f387883ebaa9394aed72fe0.zip |
dev-java/oracle-jdk-bin: Version bump wrt bug #574290
Unlike usual, this is not being raised as a Gentoo security issue as
the reported vulnerability only affects Windows.
Package-Manager: portage-2.2.27
Diffstat (limited to 'dev-java/oracle-jdk-bin')
-rw-r--r-- | dev-java/oracle-jdk-bin/Manifest | 18 | ||||
-rw-r--r-- | dev-java/oracle-jdk-bin/oracle-jdk-bin-1.8.0.73.ebuild (renamed from dev-java/oracle-jdk-bin/oracle-jdk-bin-1.8.0.71-r1.ebuild) | 0 | ||||
-rw-r--r-- | dev-java/oracle-jdk-bin/oracle-jdk-bin-1.8.0.74.ebuild | 356 |
3 files changed, 370 insertions, 4 deletions
diff --git a/dev-java/oracle-jdk-bin/Manifest b/dev-java/oracle-jdk-bin/Manifest index 14682b0c7d60..fcb276694a6b 100644 --- a/dev-java/oracle-jdk-bin/Manifest +++ b/dev-java/oracle-jdk-bin/Manifest @@ -15,10 +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-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 -DIST jdk-8u71-linux-arm64-vfp-hflt.tar.gz 78280382 SHA256 6f554b9f93ecbffd6ca73b313ce0339a2ab398a14b65dd7070d15d9e4a8453d9 SHA512 511dc1188a7ad8eebdbe45c0c2dda7f0afabdd3ff3fda194d6e63380343fa691d48f94e71b5a20a571c29948a77e4b2c986d348fb3b15ce28e6a9cc5d9855f61 WHIRLPOOL 973ccec158dea3082a407f90e617654d2dff555a14832e5a19801c4e50bed8d915fe5df802662f7754ccb47c463eb819300c43d7cce7b56b291b71b242661e3c DIST jdk-8u72-linux-i586-demos.tar.gz 55071979 SHA256 b6363a25fa92ffc2d70ec9ba860999769437e641c815977ac3fd1215841a77f7 SHA512 8dbec921571436dfea10193bb604e957df3a76858e853b18588c20bf4842647116caa6c0bcb0517cf687c010b376fea6ba49199441b74e5c823111ece2754349 WHIRLPOOL 91a4988bc9e2d419ad92b75135e76b706a5754e0220a20921da98f60eeb75fcefb2aaf6ff6cad87670f14e584a70bbc5d0e11670e6c9528beb3e8f421b83e1f8 DIST jdk-8u72-linux-i586.tar.gz 183418689 SHA256 58456a9e6cf75f52069a405067f69a78870c24628abd751ae1a99d5d2ab57908 SHA512 d27cdcc9119eb85020f4823fc8c264aa339bbaa6a27841ed2b39713ff3d5afed0f87063e686dffb69b3e9c8ba0e88ad77133e768e65802817dd44ff9a1599130 WHIRLPOOL 4bd9c4bafd6c5f7abddcb6cc34cec7812065b3db01b737b9a96c530fc9869b8299777f057cf71398825b141039f51cce0c5e659d9566e572b70744ab4c396918 DIST jdk-8u72-linux-x64-demos.tar.gz 55128961 SHA256 b5b0a887b57c00e967bfb0bb1247d8a660a11b9dca12b1a93ff99b085a89160b SHA512 e46abdf1a43ba3f0cb00a60ed4a3660b45c211e4d02d3749174d6829db53c6190114764b91bd5d61072fcb13693d9c2fed18f1d4910dcebd812ed2f344925473 WHIRLPOOL c9e0a035e05d12671c7703d8019418ce6e1e70bc3636ea94dea88db3b07e0eaec45db66f0109e00b1dadcf8d6db3113f978d3bb5a5d5dcea01392cd3cfae1835 @@ -29,3 +25,17 @@ DIST jdk-8u72-solaris-sparcv9-demos.tar.gz 9783610 SHA256 cc887b79b89bb2774f782c DIST jdk-8u72-solaris-sparcv9.tar.gz 103862525 SHA256 207e0c9f7265e574210f63e0bb4c1b0ffa5d04007c2de3df559673d12ea5ce33 SHA512 627dde55c22718ca46f1e8b479218331f66f91aef7de9cc5ff334b4292b3f7492ec6ae710fb6aaac2f86415141eee9e4165287c5553a58645017df1e9d9fec83 WHIRLPOOL bac3c93dea92505d27ade27143032250d542c811daf2a5d82c62c4ff527cd2453b36f5685ff497a59f9d2383ea3b7149e96dacea2decd8024ed8bf1465c43715 DIST jdk-8u72-solaris-x64-demos.tar.gz 9720291 SHA256 3d58066df5da927c24c1180afebd26d2608cb30ac89c0a8a68f4f04c375b80a1 SHA512 9d48c97032987e15bc1ea695db7e4cb4886894e5556d83f7494e9713e89b92b81e17f11bb67c67c588efded892909399762a2d7767f7e8cf544b8017600107a4 WHIRLPOOL a29058ab2ed5377345bd9c30fb8b80322449e06b42c67368c81044e8706a337f94f690c3fc02998aadd08e416eaaf410552c69f6dc9acf2920e0f1d6a4ab893b DIST jdk-8u72-solaris-x64.tar.gz 100855265 SHA256 e7d2aeceb4611dbda8dac4d83b7a99ed45f511cfe870117d4cbec3c7b748f782 SHA512 5b8ab1167d66bb4317a0507e1dbc80a5636e7f7309e53b5c6d0fe237c1bfdf7c4c248d8dfa8d5353a0b7197171a45755acba686b82e6c652169c6635eb6b024b WHIRLPOOL a89f8d3dcc5d30056f5dd5b0c57a6c0c2c599b29ee998d0be4e21c0d55c577898d83d56891ba81a5b11438273e74fa9c911deec7d12a002292918cb0a1df105b +DIST jdk-8u73-linux-arm32-vfp-hflt-demos.tar.gz 10408683 SHA256 190cfa7fcffeebffab35e8b50f42391c8af09a1d81033f57de8c34bc40581a70 SHA512 49604d543fb7fc5e70f3113174fae58a8bc5cc5fe32f668bb907e905159915bd7785facb107afe29b59f0772fff28450cb0c2995db23a45e38115892273300e1 WHIRLPOOL e8898ad36338cf9d754b0a2dbd118d3eb212e3242b18e035fc964da1fb974dae796db93faa5d963c225f3a16938428d53e66965a9bb411825d6027683dac6645 +DIST jdk-8u73-linux-arm32-vfp-hflt.tar.gz 81500626 SHA256 88cdfc96e518cbcf8625d5dde33f0c96b282aae1bc82e8d8e9be8b658fcb4067 SHA512 11a0f7d2b70325282a5f5ff92e6f1990203a24c8c8892bb2aab03950e9d4925e7883c68e65c7145704d24659fff703e136422c3283cf49c2351ee14abdf816e2 WHIRLPOOL f64327b27c68905ebfccdb28f3399fe897b4da269c230f07e0ac138f3351045de1b6b4f79e0970990d0c5464b750e1ab061f70b35adc2f79312276ce51f4b53e +DIST jdk-8u73-linux-arm64-vfp-hflt-demos.tar.gz 10429373 SHA256 ba3b6063a4db625fa141b81c93e846db1ffd23e5aeface5bd645b817b3cae275 SHA512 0c1ff0dbc0aa4dee2e4bfaf7c54e36b9dc3c52e36deb7e2201c60c7c0f2c99a5f1383b930dee0cebe96b3f286739d7da43d5e1624e86b216a419fbd82ed94c0a WHIRLPOOL 2799996ac8a1fe17a51e53350742e65aa431ada88cdaca5d0ba63ebe9d63e325925625e63cb6fd8a87fac349a2484443e91e115ee2a396ee22c8fe04387c8174 +DIST jdk-8u73-linux-arm64-vfp-hflt.tar.gz 78305546 SHA256 dc479344c4af6326d59bed31f9b71c223f20b5c2813295cda343d762d88d2641 SHA512 d15311263c580769e9dcce36a86a316c02964b5b539ad5d42268b8c9bfaf57fbe7bd16a71860498bb31690d4b3e7c10d8947969d00d5cda5577182794f79cd0d WHIRLPOOL 89c83e40ef1c634e3f9235fd5c5f8871495872ddd771123a633bf586092ea66b6ea80dafc977abe77d9b943794862b72abbeba8a10301e04f21f7ddd3bb6342e +DIST jdk-8u74-linux-i586-demos.tar.gz 55071932 SHA256 9e5ee679e58248124c0dc9bdfdad08f40f0c4c74b2bdc547bc87d3ef6b5cfe50 SHA512 81a55a5cbda56779d57d80b50b53246717fe817019f0783242044fb205b4ce4791e46b7fac6f69a2e3bd2db17a81edc3ea82700205000f4a14ff2ba789a5b0c0 WHIRLPOOL c88ed72f9fb36825020b8ccb0b037c4a346c9f2c70878fb8974e1f9e29e4322cb4b8f30fe2a07c2942e5067d6a0f92dd72970a614bf599783fee0e4ec1717f95 +DIST jdk-8u74-linux-i586.tar.gz 183412791 SHA256 0805e407924eb6902d874412af397992c141827e05c205c2b2bfe6e5127a83ed SHA512 afd380c70f084a91f79c835a9406c94e74a1202fa364a274b832fa178c1fea39b79cd5ebceaa5dcc3510325449effecda14dfa94270031e506089734d6b5becf WHIRLPOOL 00111f943d6ca9fda26af52435a6e5ee613f633845716fce83947d996a07c872b1b67155c25f22d986da8e16f74ae802a58aaf9d2deca0a9a7a3f401a6b1991c +DIST jdk-8u74-linux-x64-demos.tar.gz 55099385 SHA256 8108961b5d76ae7f06adb440e6ecfbc918f6bc90cb057831f27be9f00f464077 SHA512 8b4a4585a98c8f73de224509a3e58f21022204ecf71d82f45343143c5850a0d9d0f72d57217c1babb8defb7ae0f5c23be03d9545dcf9ce06be3da5f0dd3ed33a WHIRLPOOL f5a650130b89635bdd78e5ea508511bd21b3a13049d6a0a3dc731da666dad6863c2e0c646bd29715fca336ca2ee110a99b2f25d859b24c53959231eec0cd10ba +DIST jdk-8u74-linux-x64.tar.gz 181302755 SHA256 0bfd5d79f776d448efc64cb47075a52618ef76aabb31fde21c5c1018683cdddd SHA512 01f407532dc5692b224e2db617f261c59d06d73a16abca50c989ce14fac52d87e8c4712b882b5e22944becc76f92080d485e79a4b87541f49e9eb4af191b6975 WHIRLPOOL 5e1b1af688a7e8fc257178cfe27c1561a59dfb27231cb311bbdefab5fdabd8bd81710584a2f85d0b08c28a559262bc9e64750f0fc748d563b945401fccfaa16a +DIST jdk-8u74-macosx-x64.dmg 238306418 SHA256 52fc1bf96514553cd70e5dfa79b764f8522f23536c05ad413c5585755f08e998 SHA512 d5bbe190c385c1617bdf7f0d2273cfd1eb2d789cf8fe4cec4753e018fd4a859e67809ec2bcc4717449795f5c1a4ca4c2415ffa10cf673c9a501a1de4a21e1c16 WHIRLPOOL 13f4a3184a6c1896ae056fc1c12deb001d69ffe3f4e49b86cefe23d10e2028d87a557f3203ca8d66836ea189949c59c3abb7c5f10c70ba058a344a85ab3bb307 +DIST jdk-8u74-macosx-x86_64-demos.zip 55665443 SHA256 5c257c099802eb5edc15d3df2e8ac3e9c361d70b3f17239731249df7f21ecfa4 SHA512 e644b5dbeab44723bbac4f5e750e037f9fbfd1a309cc76fbfcb9a27a8656622fdc20ee1bcdcde2762c7c1c44e7347480412f6bd116bcc9ff80e1abc79c7084ec WHIRLPOOL de2d62666c59be3e183d8d263219c3e76e6d9616ccbbdb74666a41ae6a04634267429c47523144102d6abd9e441bf97c7d12cb9dcf9cfd09771c54eb7ac78b0d +DIST jdk-8u74-solaris-sparcv9-demos.tar.gz 9778749 SHA256 cf7258803473a9222d0c43eb6c605c4eb040704f34421f8a7fc3a7011082054c SHA512 c57a02806fa8a3af9964f7f6c5d6d8f275852282441d09c6aecd1e429280210d4530d4d27ba6700979aa5d2ca44df92e4f4657dbf3513c1b9ce7fcf6d5aecb2b WHIRLPOOL facc2e3844c6c966b66e5da11a1515321bc43e83ffd7bdcfae923fc60ff0a8756389da2e23235647e8f022acde70a70b224126d9e54f9231bac602201a322ea1 +DIST jdk-8u74-solaris-sparcv9.tar.gz 103907265 SHA256 feac2fbf698c5605721c713eec8f46819ab1d4433160cae3baf352983d502b63 SHA512 a35703e85d1e98e8bd9c91e526e07061e6fb2b6085f0a06606811447c1f6c539d9d7e0f8bd7506f30e2929d2f5145a5e8431642dc8877e6e779d2df7c186f98d WHIRLPOOL 50db91e69765abb5febbc6f8c31ee6b3bc06f43cab625d0f3585ded2a7ad1c4e4b5f2bd9804bad814b11a623fb86985a4f0084b035b83ba77d21446ba212aafe +DIST jdk-8u74-solaris-x64-demos.tar.gz 9720841 SHA256 f9bc5a01422ecc6a335dc11b03bf9d187f9c1e8d5dbd862f2fd67a5e60f10691 SHA512 c3d09afefe8161a702f0f91bb6b659825fb0a5efd8b3f75b949cd6dcc9b3f034e3c68dfd9bb659801831429b5cf050bca26e90ac403911d617033e9d2378b1b0 WHIRLPOOL 51c945e5c60362fbb31a2b43793d64c81387e335aa8366d6ef88a646992fb27bdc046e8325c00a9d0a00f9be4d2b32ddf3da8c05d35bd48093c834e82334b0c6 +DIST jdk-8u74-solaris-x64.tar.gz 100860086 SHA256 214aa329f50a381bacfb0754b01eafb50360c71ac005e903d121724584595716 SHA512 4ac8b7b2499167fe1f271680bc201d33daa48b8168b8145654f4e170c2ba2e71f968d6761a8d39ead9f5ec6542a4cb55060873922fa497c0d7bb644cc2cb2624 WHIRLPOOL 31c9929351ef1328b3e8c9b4d79783d91d5b2595eb26f6ad5960fb016c50c1bb2b73ffb8e80b59e774bb0b7ec57eb90c72fe844d27bfb8e4fde09de34db69e1c diff --git a/dev-java/oracle-jdk-bin/oracle-jdk-bin-1.8.0.71-r1.ebuild b/dev-java/oracle-jdk-bin/oracle-jdk-bin-1.8.0.73.ebuild index d2f19756d3c5..d2f19756d3c5 100644 --- a/dev-java/oracle-jdk-bin/oracle-jdk-bin-1.8.0.71-r1.ebuild +++ b/dev-java/oracle-jdk-bin/oracle-jdk-bin-1.8.0.73.ebuild diff --git a/dev-java/oracle-jdk-bin/oracle-jdk-bin-1.8.0.74.ebuild b/dev-java/oracle-jdk-bin/oracle-jdk-bin-1.8.0.74.ebuild new file mode 100644 index 000000000000..dc154e73a94d --- /dev/null +++ b/dev-java/oracle-jdk-bin/oracle-jdk-bin-1.8.0.74.ebuild @@ -0,0 +1,356 @@ +# 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 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 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 + 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 +} |