1 |
commit: 471c43ee7290a2723172199d3cb9026396a0056b |
2 |
Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Sep 1 20:16:33 2021 +0000 |
4 |
Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Sep 1 20:22:45 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=471c43ee |
7 |
|
8 |
dev-java/openjdk-bin: add 11.0.12_p7 |
9 |
|
10 |
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org> |
11 |
|
12 |
dev-java/openjdk-bin/Manifest | 4 + |
13 |
dev-java/openjdk-bin/openjdk-bin-11.0.12_p7.ebuild | 135 +++++++++++++++++++++ |
14 |
2 files changed, 139 insertions(+) |
15 |
|
16 |
diff --git a/dev-java/openjdk-bin/Manifest b/dev-java/openjdk-bin/Manifest |
17 |
index bc804d8f679..33acdb53592 100644 |
18 |
--- a/dev-java/openjdk-bin/Manifest |
19 |
+++ b/dev-java/openjdk-bin/Manifest |
20 |
@@ -1,8 +1,12 @@ |
21 |
DIST OpenJDK11U-jdk_aarch64_linux_hotspot_11.0.11_9.tar.gz 189549576 BLAKE2B 9eb55593643911573dbb7aa0f69169cf63c0cd8d0a4b4d3a4bf42131f2dfa51305c55c26e802f07fddd70911dba20c4d7b57983782aa2da61fa730f12258a94c SHA512 f2aa4514bad0a4116d0b703adef866f420b1bf264781b58d4075c54747856a657ec7fd1ef622712419823f76a87b9965426f59e5c66b21dbc073387e66f949a9 |
22 |
+DIST OpenJDK11U-jdk_aarch64_linux_hotspot_11.0.12_7.tar.gz 189702606 BLAKE2B 110b03fdc85f9456b253569caa6f6be119045cbecb8e13cd1ecc1566236a9ad860dddad9d46ba88c46396a16f27f080364909bf1587f5bdc96e72c9d0ba0b165 SHA512 c6122bae7269143638e43191505e9ea2265280d039de89b7bc2a79aa89eaa3a1658765d8490c4e363e7e7982575bd309f7e6ac18c4fc7bb915dca2b27e7a6a3f |
23 |
DIST OpenJDK11U-jdk_arm_linux_hotspot_11.0.11_9.tar.gz 180784025 BLAKE2B c15ae126f1c2bb00f97571d4bb3316ecf5ee36a18895eefb48db616996dcdf363acbbd8ac17ecb6a507cc0f3a811f476cd72993b42e0a0b857b82c3e2d4d5279 SHA512 33cdc99dcf119a3f5161cdc08853ed1b8a1630f884577b6a167cf79621b0fa6f87ec652452fce0e27ee550b63952fcf75a3a6bd70c61564faafc0e8e1c74c0bf |
24 |
DIST OpenJDK11U-jdk_ppc64le_linux_hotspot_11.0.11_9.tar.gz 174865783 BLAKE2B 717168b8b2dc326495dc41f3af2d85b515c10774ae58f35bcdf86694d89b1e11db50be24f4c046add5223e912448d67c2ecac8a3a6f3ca2dca3e915fa61f9654 SHA512 dafd40c133fd83c06a29816f4e45ff63e588ea5e6046fe331acbee4eb5efac4b3fc7da0f0fd55e4044846a053644a71efa00e45cf4ba39106b8d1018f9bca0ec |
25 |
+DIST OpenJDK11U-jdk_ppc64le_linux_hotspot_11.0.12_7.tar.gz 175004135 BLAKE2B 36b63c4b8c654c418c244c06d2b2d0d6395ec462c98c3b8548ad15d9f7620b685074307f80c79a0d42e353158d91a2a2c9c2dd6a2d4cca889d2158c2f0736f6a SHA512 34c6c6a309205bb02e52565dbcdb3d7a1f7eff9b7c2212f3a45b519a5032491b8d2c55811b097a6a4a744d4ace38d93ca89c463be9f058008786b1ba0b20cae8 |
26 |
DIST OpenJDK11U-jdk_x64_linux_hotspot_11.0.11_9.tar.gz 192792051 BLAKE2B b11a0934d358d255df743e241fa5040bbc48746b5fd131e98a9b253add114d3504a0f4b10887d9b86189da4f2bccfc65134247b0580d96e2fa7ae9374d44ff38 SHA512 b79eb8a672706b643773711a59a756de88eadd54e74bfef7dad14a0f7ab7412ee6c457b4d3489f6c530abbd442307a9355b5d4a01d2610f90cfd614b614f6507 |
27 |
+DIST OpenJDK11U-jdk_x64_linux_hotspot_11.0.12_7.tar.gz 192983830 BLAKE2B 4d97711e37b72bb24e9feb14b4902378d02e7bc4fa1f12dd40a277957ebb4b36efb115666124337331bb95a1f53ae3b13ffeededee8c3c0eda66ba9abf937bcc SHA512 73b7c430d4095fd518191a9d85eebb2749d4940eb64a95cca8f3c6fe2392a71239e264b47f4f74b433c488aa0a80cca610c87a49bbc143da1c15b45fb491c62b |
28 |
DIST OpenJDK11U-jdk_x64_mac_hotspot_11.0.11_9.tar.gz 186275966 BLAKE2B 09c54989a7d1c4989946bd1afe26c3254e2a0294ed4a8ae92e1e3e62f7e53eff7e30739b362d8a07cfe601633850efa4ad91445d474e1de196fd5b88d4e14338 SHA512 04bd14301bc9e1601096141c4c8d8b1637a8a99f8bf66d60081e5a36360440d6eb87d595df6b4b34fb44446746681774b2761fe837f3353a4e5bd5669182a09e |
29 |
+DIST OpenJDK11U-jdk_x64_mac_hotspot_11.0.12_7.tar.gz 191257594 BLAKE2B f747b108b51f09d6e15ca009291a5f5d81f46d55357c2d80351b3d20b459c37995fe434ffb2d666d64e1311ddc510a5a73a49f0d19c00767dc4749e06e432cd4 SHA512 e38bf5a31c3e453784d4067601b3f2125d528f8d210d3a80910c66fc70b5a5beca56dbc0328ee3add99776bdd6d6284506803e553540ae434c438f2dd706e268 |
30 |
DIST OpenJDK8U-jdk_aarch64_linux_hotspot_8u292b10.tar.gz 102423506 BLAKE2B dab839491d359e4366d316fd1a0eb3b7009e1739d7c6d4dc3ded47bd44fc7af36068d76183d9656d748beec0117bf95f09a78e577c3e1f685f0fb3c2e2d45e28 SHA512 6ca2dddd371223c0bae6caea1f4841d7d718b9ea812d914ec8fe3f03671e2176454ca094c05e55286ba0560e2897a515714bf607e868b4b0405b6bce03c5c22c |
31 |
DIST OpenJDK8U-jdk_aarch64_linux_hotspot_8u302b08.tar.gz 102111219 BLAKE2B 0af54c05957c3f56c495cc83baf68f27fea4773ab4577b212e8abd19e7c7be123c067cb614fb42a320a865c3ab96c9e6ae663d96f79346f73282d99ea8aba5e6 SHA512 43e74f8029cb0d0ea48c6af4e2b8f00c4664264a51803acf0f539efb117be2dadf4c6a216ecf81c86e24152e6f87933f7a9e97bf4ba526eb01557bf561c2cc22 |
32 |
DIST OpenJDK8U-jdk_arm_linux_hotspot_8u292b10.tar.gz 98376195 BLAKE2B 55ae7181b8e4aa5d3097bee40a5acfaee48a2f208e4362e74cdec1647460770efe49b774b22188c78ca6816716ef20173471b881ce3f75b0d90e95740049f4c7 SHA512 d2c88712a95bcc96172b6b589493038d8e721eb7ec4ae546dd998d82a5148dd5ada6e22c92bacaec2ef88e47a75761d283d1f73983f1848a631e00c5833901ee |
33 |
|
34 |
diff --git a/dev-java/openjdk-bin/openjdk-bin-11.0.12_p7.ebuild b/dev-java/openjdk-bin/openjdk-bin-11.0.12_p7.ebuild |
35 |
new file mode 100644 |
36 |
index 00000000000..c5bca3458c4 |
37 |
--- /dev/null |
38 |
+++ b/dev-java/openjdk-bin/openjdk-bin-11.0.12_p7.ebuild |
39 |
@@ -0,0 +1,135 @@ |
40 |
+# Copyright 1999-2021 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 |
+ local os=linux |
49 |
+ case ${2} in |
50 |
+ *-macos) os=mac ;; |
51 |
+ *-solaris) os=solaris ;; |
52 |
+ esac |
53 |
+ echo "${2-$1}? ( |
54 |
+ https://github.com/adoptium/temurin${SLOT}-binaries/releases/download/jdk-${MY_PV}/OpenJDK${SLOT}U-jdk_${1}_${os}_hotspot_${MY_PV//+/_}.tar.gz |
55 |
+ )" |
56 |
+} |
57 |
+ |
58 |
+MY_PV=${PV/_p/+} |
59 |
+SLOT=${MY_PV%%[.+]*} |
60 |
+ |
61 |
+SRC_URI=" |
62 |
+ $(abi_uri aarch64 arm64) |
63 |
+ $(abi_uri ppc64le ppc64) |
64 |
+ $(abi_uri x64 amd64) |
65 |
+ $(abi_uri x64 x64-macos) |
66 |
+" |
67 |
+ |
68 |
+DESCRIPTION="Prebuilt Java JDK binaries provided by Eclipse Temurin" |
69 |
+HOMEPAGE="https://adoptium.net" |
70 |
+LICENSE="GPL-2-with-classpath-exception" |
71 |
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~x64-macos" |
72 |
+IUSE="alsa cups +gentoo-vm headless-awt selinux source" |
73 |
+ |
74 |
+RDEPEND=" |
75 |
+ >=sys-apps/baselayout-java-0.1.0-r1 |
76 |
+ kernel_linux? ( |
77 |
+ media-libs/fontconfig:1.0 |
78 |
+ media-libs/freetype:2 |
79 |
+ media-libs/harfbuzz |
80 |
+ >=sys-libs/glibc-2.2.5:* |
81 |
+ sys-libs/zlib |
82 |
+ alsa? ( media-libs/alsa-lib ) |
83 |
+ cups? ( net-print/cups ) |
84 |
+ selinux? ( sec-policy/selinux-java ) |
85 |
+ !headless-awt? ( |
86 |
+ x11-libs/libX11 |
87 |
+ x11-libs/libXext |
88 |
+ x11-libs/libXi |
89 |
+ x11-libs/libXrender |
90 |
+ x11-libs/libXtst |
91 |
+ ) |
92 |
+ )" |
93 |
+ |
94 |
+RESTRICT="preserve-libs splitdebug" |
95 |
+QA_PREBUILT="*" |
96 |
+ |
97 |
+S="${WORKDIR}/jdk-${MY_PV}" |
98 |
+ |
99 |
+pkg_pretend() { |
100 |
+ if [[ "$(tc-is-softfloat)" != "no" ]]; then |
101 |
+ die "These binaries require a hardfloat system." |
102 |
+ fi |
103 |
+} |
104 |
+ |
105 |
+src_unpack() { |
106 |
+ default |
107 |
+ if [[ ${A} == *_mac_* ]] ; then |
108 |
+ mv -v "${S}/Contents/Home/"* "${S}" || die |
109 |
+ rm -Rf "${S}/Contents" # drop macOS executable |
110 |
+ fi |
111 |
+} |
112 |
+ |
113 |
+src_install() { |
114 |
+ local dest="/opt/${P}" |
115 |
+ local ddest="${ED%/}/${dest#/}" |
116 |
+ |
117 |
+ # on macOS if they would exist they would be called .dylib, but most |
118 |
+ # importantly, there are no different providers, so everything |
119 |
+ # that's shipped works. |
120 |
+ if [[ ${A} != *_mac_* ]] ; then |
121 |
+ # Not sure why they bundle this as it's commonly available and they |
122 |
+ # only do so on x86_64. It's needed by libfontmanager.so. IcedTea |
123 |
+ # also has an explicit dependency while Oracle seemingly dlopens it. |
124 |
+ rm -vf lib/libfreetype.so || die |
125 |
+ |
126 |
+ # prefer system copy # https://bugs.gentoo.org/776676 |
127 |
+ rm -vf lib/libharfbuzz.so || die |
128 |
+ |
129 |
+ # Oracle and IcedTea have libjsoundalsa.so depending on |
130 |
+ # libasound.so.2 but AdoptOpenJDK only has libjsound.so. Weird. |
131 |
+ if ! use alsa ; then |
132 |
+ rm -v lib/libjsound.* || die |
133 |
+ fi |
134 |
+ |
135 |
+ if use headless-awt ; then |
136 |
+ rm -v lib/lib*{[jx]awt,splashscreen}* || die |
137 |
+ fi |
138 |
+ fi |
139 |
+ |
140 |
+ if ! use source ; then |
141 |
+ rm -v lib/src.zip || die |
142 |
+ fi |
143 |
+ |
144 |
+ rm -v lib/security/cacerts || die |
145 |
+ dosym ../../../../etc/ssl/certs/java/cacerts \ |
146 |
+ "${dest}"/lib/security/cacerts |
147 |
+ |
148 |
+ dodir "${dest}" |
149 |
+ cp -pPR * "${ddest}" || die |
150 |
+ |
151 |
+ # provide stable symlink |
152 |
+ dosym "${P}" "/opt/${PN}-${SLOT}" |
153 |
+ |
154 |
+ use gentoo-vm && java-vm_install-env "${FILESDIR}"/${PN}-${SLOT}.env.sh |
155 |
+ java-vm_set-pax-markings "${ddest}" |
156 |
+ java-vm_revdep-mask |
157 |
+ java-vm_sandbox-predict /dev/random /proc/self/coredump_filter |
158 |
+} |
159 |
+ |
160 |
+pkg_postinst() { |
161 |
+ java-vm-2_pkg_postinst |
162 |
+ |
163 |
+ if use gentoo-vm ; then |
164 |
+ ewarn "WARNING! You have enabled the gentoo-vm USE flag, making this JDK" |
165 |
+ ewarn "recognised by the system. This will almost certainly break" |
166 |
+ ewarn "many java ebuilds as they are not ready for openjdk-11" |
167 |
+ else |
168 |
+ ewarn "The experimental gentoo-vm USE flag has not been enabled so this JDK" |
169 |
+ ewarn "will not be recognised by the system. For example, simply calling" |
170 |
+ ewarn "\"java\" will launch a different JVM. This is necessary until Gentoo" |
171 |
+ ewarn "fully supports Java 11. This JDK must therefore be invoked using its" |
172 |
+ ewarn "absolute location under ${EPREFIX}/opt/${P}." |
173 |
+ fi |
174 |
+} |