1 |
commit: 5428295cdb5081414b90e79ff3f1ab3be5e15235 |
2 |
Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Oct 25 00:22:29 2020 +0000 |
4 |
Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Oct 25 00:22:29 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5428295c |
7 |
|
8 |
dev-java/openjdk-bin: bump to 11.0.9_p11 |
9 |
|
10 |
Package-Manager: Portage-3.0.8, Repoman-3.0.2 |
11 |
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org> |
12 |
|
13 |
dev-java/openjdk-bin/Manifest | 4 + |
14 |
dev-java/openjdk-bin/openjdk-bin-11.0.9_p11.ebuild | 111 +++++++++++++++++++++ |
15 |
2 files changed, 115 insertions(+) |
16 |
|
17 |
diff --git a/dev-java/openjdk-bin/Manifest b/dev-java/openjdk-bin/Manifest |
18 |
index 0fec5cfc69c..29e9fb9cb79 100644 |
19 |
--- a/dev-java/openjdk-bin/Manifest |
20 |
+++ b/dev-java/openjdk-bin/Manifest |
21 |
@@ -1,7 +1,11 @@ |
22 |
DIST OpenJDK11U-jdk_aarch64_linux_hotspot_11.0.8_10.tar.gz 190206674 BLAKE2B 1e5ac030b23cdcd16e9efb696bf4f22da1178234241c4951b36d19e9567c8e838e99311be0aafe336b92cd5cecd2a53bb4dcfdd40f7ad13a26abaf41dddc5cbc SHA512 e81cc6a0d3aa3afdf021b8a5c39fc821827eba3010c437d97ad219336749b15cbb057bc92b129b0899da104066003554065e5591a6fda622b9852db2ad895237 |
23 |
+DIST OpenJDK11U-jdk_aarch64_linux_hotspot_11.0.9_11.tar.gz 190728488 BLAKE2B beda483e90e733932ca9cf9631ae3f97b7106fd3c80b4a70465f9d32d52bf2ba4f395fa5ad7b08a4998e5c72f3794e0189750a883422aaeaf42877750d7c4647 SHA512 a9fbd1336357bf7880e6eebaab9649ca2b5db5ea93bb184e9fa682d64f18bfa0addb87de5a04e13bc337536b2edce5189bba703c8eb3a524567073add6d29a95 |
24 |
DIST OpenJDK11U-jdk_arm_linux_hotspot_11.0.8_10.tar.gz 182327847 BLAKE2B ad71bfd979f27ffd05abea804069402a7a47906cff70cbe68c29a8185d97043e4e28471d6444af757955c9be5d73d8d17f3f73120b8d2997dc5fb5b21f9045dc SHA512 32843b32d89125da14c8e77509e4dfb86b1aae55407edabb52a592a29ecb3ba17d300b91751f937189f370edfd57d60fa622cb9da2a9e190f35b219d0cd58774 |
25 |
+DIST OpenJDK11U-jdk_arm_linux_hotspot_11.0.9_11.tar.gz 182835103 BLAKE2B 2b8849c5b9f490bf7700317525d3538ace19abcd73436a5c27251a282348345dba3c438c062ee60a2070f64c8c8e93a5d5d632a44f410775ed4fff1d691219f8 SHA512 707efc9d0660f0c06d4955e56761422b9da41b5afacfa337711c6a2500441f80fad1c65d8a4b0a1334ec6d5c6e55d464fc1cff1ade21e8cca42cffd0c161c1e2 |
26 |
DIST OpenJDK11U-jdk_ppc64le_linux_hotspot_11.0.8_10.tar.gz 176566452 BLAKE2B 584adc02d816cda72e5396d9e2a34768fe9c1ad3f6b37ad4b599ee45ee008389d7bec93ca983aec3e91995fa05548137f4ecb5c84b524333e0c7a35c5fc917ec SHA512 ab7768556488f0d13c3868e65ee22bedfaffc904d2b6af6d1c0ad48a382c2bc761dce99bd3a196e4ddd2a67f56019774a84edeab7db3e9e4650ef020f0d2e0a5 |
27 |
+DIST OpenJDK11U-jdk_ppc64le_linux_hotspot_11.0.9_11.tar.gz 177065013 BLAKE2B 04bb16a464a7984df770c52c5e2b8b1d9ec79142eb8a9c9a95a8ea02656b823a2505085e1521d94b9d994a1f5675fb524b917c9fdea46269e45a43d10c066947 SHA512 45619214cfc54be5b68e1ac8112a239a156be5a126631b2ff994a3b70e2e0aa899e5f9a4d31381eba2eb743790e4bdc2014ac342419a004502ce40945b3f4890 |
28 |
DIST OpenJDK11U-jdk_x64_linux_hotspot_11.0.8_10.tar.gz 193398310 BLAKE2B 079f48381bf58edb7b9b75f4305df72184710c90101588fccce4edb0535b976b2f6332b66fdd8cf8b442eebbeee5a6044e0445519f9bbd8ed20b02f50e9fc203 SHA512 115b5627d6d1245f8393e3cd869bdb7accb42c35bc0e9030fb60701f61253ea8ce382edec75ded85ff5b0a0c8bbfbecdec81b16aef87fb6fc76c684628abf1e5 |
29 |
+DIST OpenJDK11U-jdk_x64_linux_hotspot_11.0.9_11.tar.gz 193980586 BLAKE2B cc927d923ca29ca41ea9cfc38bf07761904fb9f31fa59b5c882ec260d982a9af6c49034d80e6ed4d141c5ece1a1d297c3c153358ad940e61a4f667c53d6c040c SHA512 1ccaba9673a85287953a6ffbedf7caec4c2d64e0a121277bca6e40a6d47eaf414ed7470971f271e28309b97e95268348a7ad4fb2a03861eeb193d1f0536f2727 |
30 |
DIST OpenJDK8U-jdk_aarch64_linux_hotspot_8u265b01.tar.gz 103150208 BLAKE2B 70880514e63402b740554cde3eba80106e2494d354751a620e54cde0376cebbf1ca5c2b10b0c340f59d9d1f390791c07ba39b13e72c938872e2a8b102b608f34 SHA512 37d9efe9c087dae9c180ee47e9f4f010e7726f4578edb5638d40ab4aea450912e3fa5e1d9254f6290779f43ffb5b0c6d1e3e9ac42c889b0c50072645deadbddb |
31 |
DIST OpenJDK8U-jdk_aarch64_linux_hotspot_8u272b10.tar.gz 103598972 BLAKE2B 34ee2fc6a1cf23c9c04522a82f74ba60c53cc461e370c8aa88d6b62b4c4539e96d233a232f38390b9f0932768c5fb662a44e425d0f5bebbf982c657686b163d7 SHA512 5b44f094219daf383743d463c50917c2d60b289187e363748c3a4dc16471d84e4d28b6bc30879d137b79645f7ce977c755e8a5714bc272e012bce900f3db8ea4 |
32 |
DIST OpenJDK8U-jdk_arm_linux_hotspot_8u265b01.tar.gz 97641656 BLAKE2B 76d24e975c2ec173b6b4806d145f79d02828e12e2dd412b60a921648fba20920b3b69b03630ece8d5cefeaf408dad01573b15db7f4a7bbdd024806a7b01bd6ae SHA512 8f96d73038579d2873b84d19bfbcc7f481b031a91c35d86d35e127951b6c743a6a1d5230a61ebcacddf854b73c55b18cc53112b9a2759b283254bf93fd691459 |
33 |
|
34 |
diff --git a/dev-java/openjdk-bin/openjdk-bin-11.0.9_p11.ebuild b/dev-java/openjdk-bin/openjdk-bin-11.0.9_p11.ebuild |
35 |
new file mode 100644 |
36 |
index 00000000000..94b04394047 |
37 |
--- /dev/null |
38 |
+++ b/dev-java/openjdk-bin/openjdk-bin-11.0.9_p11.ebuild |
39 |
@@ -0,0 +1,111 @@ |
40 |
+# Copyright 1999-2020 Gentoo Authors |
41 |
+# Distributed under the terms of the GNU General Public License v2 |
42 |
+ |
43 |
+EAPI=6 |
44 |
+ |
45 |
+inherit java-vm-2 toolchain-funcs |
46 |
+ |
47 |
+abi_uri() { |
48 |
+ echo "${2-$1}? ( |
49 |
+ https://github.com/AdoptOpenJDK/openjdk${SLOT}-binaries/releases/download/jdk-${MY_PV}/OpenJDK${SLOT}U-jdk_${1}_linux_hotspot_${MY_PV//+/_}.tar.gz |
50 |
+ )" |
51 |
+} |
52 |
+ |
53 |
+MY_PV=${PV/_p/+} |
54 |
+SLOT=${MY_PV%%[.+]*} |
55 |
+ |
56 |
+SRC_URI=" |
57 |
+ $(abi_uri arm) |
58 |
+ $(abi_uri aarch64 arm64) |
59 |
+ $(abi_uri ppc64le ppc64) |
60 |
+ $(abi_uri x64 amd64) |
61 |
+" |
62 |
+ |
63 |
+DESCRIPTION="Prebuilt Java JDK binaries provided by AdoptOpenJDK" |
64 |
+HOMEPAGE="https://adoptopenjdk.net" |
65 |
+LICENSE="GPL-2-with-classpath-exception" |
66 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64" |
67 |
+IUSE="alsa cups +gentoo-vm headless-awt selinux source" |
68 |
+ |
69 |
+RDEPEND=" |
70 |
+ media-libs/fontconfig:1.0 |
71 |
+ media-libs/freetype:2 |
72 |
+ >=sys-apps/baselayout-java-0.1.0-r1 |
73 |
+ >=sys-libs/glibc-2.2.5:* |
74 |
+ sys-libs/zlib |
75 |
+ alsa? ( media-libs/alsa-lib ) |
76 |
+ cups? ( net-print/cups ) |
77 |
+ selinux? ( sec-policy/selinux-java ) |
78 |
+ !headless-awt? ( |
79 |
+ x11-libs/libX11 |
80 |
+ x11-libs/libXext |
81 |
+ x11-libs/libXi |
82 |
+ x11-libs/libXrender |
83 |
+ x11-libs/libXtst |
84 |
+ )" |
85 |
+ |
86 |
+RESTRICT="preserve-libs splitdebug" |
87 |
+QA_PREBUILT="*" |
88 |
+ |
89 |
+S="${WORKDIR}/jdk-${MY_PV}" |
90 |
+ |
91 |
+pkg_pretend() { |
92 |
+ if [[ "$(tc-is-softfloat)" != "no" ]]; then |
93 |
+ die "These binaries require a hardfloat system." |
94 |
+ fi |
95 |
+} |
96 |
+ |
97 |
+src_install() { |
98 |
+ local dest="/opt/${P}" |
99 |
+ local ddest="${ED%/}/${dest#/}" |
100 |
+ |
101 |
+ # Not sure why they bundle this as it's commonly available and they |
102 |
+ # only do so on x86_64. It's needed by libfontmanager.so. IcedTea |
103 |
+ # also has an explicit dependency while Oracle seemingly dlopens it. |
104 |
+ rm -vf lib/libfreetype.so || die |
105 |
+ |
106 |
+ # Oracle and IcedTea have libjsoundalsa.so depending on |
107 |
+ # libasound.so.2 but AdoptOpenJDK only has libjsound.so. Weird. |
108 |
+ if ! use alsa ; then |
109 |
+ rm -v lib/libjsound.* || die |
110 |
+ fi |
111 |
+ |
112 |
+ if use headless-awt ; then |
113 |
+ rm -v lib/lib*{[jx]awt,splashscreen}* || die |
114 |
+ fi |
115 |
+ |
116 |
+ if ! use source ; then |
117 |
+ rm -v lib/src.zip || die |
118 |
+ fi |
119 |
+ |
120 |
+ rm -v lib/security/cacerts || die |
121 |
+ dosym ../../../../etc/ssl/certs/java/cacerts \ |
122 |
+ "${dest}"/lib/security/cacerts |
123 |
+ |
124 |
+ dodir "${dest}" |
125 |
+ cp -pPR * "${ddest}" || die |
126 |
+ |
127 |
+ # provide stable symlink |
128 |
+ dosym "${P}" "/opt/${PN}-${SLOT}" |
129 |
+ |
130 |
+ use gentoo-vm && java-vm_install-env "${FILESDIR}"/${PN}-${SLOT}.env.sh |
131 |
+ java-vm_set-pax-markings "${ddest}" |
132 |
+ java-vm_revdep-mask |
133 |
+ java-vm_sandbox-predict /dev/random /proc/self/coredump_filter |
134 |
+} |
135 |
+ |
136 |
+pkg_postinst() { |
137 |
+ java-vm-2_pkg_postinst |
138 |
+ |
139 |
+ if use gentoo-vm ; then |
140 |
+ ewarn "WARNING! You have enabled the gentoo-vm USE flag, making this JDK" |
141 |
+ ewarn "recognised by the system. This will almost certainly break" |
142 |
+ ewarn "many java ebuilds as they are not ready for openjdk-11" |
143 |
+ else |
144 |
+ ewarn "The experimental gentoo-vm USE flag has not been enabled so this JDK" |
145 |
+ ewarn "will not be recognised by the system. For example, simply calling" |
146 |
+ ewarn "\"java\" will launch a different JVM. This is necessary until Gentoo" |
147 |
+ ewarn "fully supports Java 11. This JDK must therefore be invoked using its" |
148 |
+ ewarn "absolute location under ${EPREFIX}/opt/${P}." |
149 |
+ fi |
150 |
+} |