Gentoo Archives: gentoo-commits

From: Florian Schmaus <flow@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/java:master commit in: dev-java/openjdk-bin/
Date: Mon, 28 Nov 2022 11:42:31
Message-Id: 1669635739.c31765701582a421020f51dab893529d42485a70.flow@gentoo
1 commit: c31765701582a421020f51dab893529d42485a70
2 Author: Florian Schmaus <flow <AT> gentoo <DOT> org>
3 AuthorDate: Mon Nov 28 11:42:19 2022 +0000
4 Commit: Florian Schmaus <flow <AT> gentoo <DOT> org>
5 CommitDate: Mon Nov 28 11:42:19 2022 +0000
6 URL: https://gitweb.gentoo.org/proj/java.git/commit/?id=c3176570
7
8 dev-java/openjdk-bin: add 20_beta20221125
9
10 Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>
11
12 dev-java/openjdk-bin/Manifest | 7 ++
13 .../openjdk-bin/openjdk-bin-20_beta20221125.ebuild | 137 +++++++++++++++++++++
14 2 files changed, 144 insertions(+)
15
16 diff --git a/dev-java/openjdk-bin/Manifest b/dev-java/openjdk-bin/Manifest
17 index 6a0e6fa3..5bcb737c 100644
18 --- a/dev-java/openjdk-bin/Manifest
19 +++ b/dev-java/openjdk-bin/Manifest
20 @@ -1,3 +1,10 @@
21 +DIST OpenJDK-jdk_aarch64_linux_hotspot_2022-11-25-03-30.tar.gz 199774282 BLAKE2B e9930484d34dbc2d2fb3c61797d1e80911ea578646208f47de6b8e5a977f2c74a193865c7faf0ff24b4ea9425128e543a13845411962241ac686ab91e97157cb SHA512 a8828bc9e30d1aefc736dafc319b014061c691251fb8180873428e14cefe60d777dfcc1eefc67fa7843abc7a788656d8e3a098daa66a7e976bdc74c61ac10ae0
22 +DIST OpenJDK-jdk_aarch64_mac_hotspot_2022-11-25-03-30.tar.gz 186236213 BLAKE2B 1ff9a7d02c72c8cb59e1de9566ed49b4f8c26246992ad363c2921ee8e1e09122aa2adbc35a917f806da6e6a467254850056b954dd6fa3baa00ce73ae9ce15b00 SHA512 eefbaf86285ef1b338c8f95af9d14ed674e8796b94030c4a50546c7c6790e6f4bdf0376eec00e15bcd0089525f6192ae392b57def07b99ddfa69119a374f14e0
23 +DIST OpenJDK-jdk_arm_linux_hotspot_2022-11-25-03-30.tar.gz 201332936 BLAKE2B bf6295dd03c371392234059f3fc1244cc1a59b863776a6fad958259bbf4d9402f534c53c5b690064c038573ed0f3d71d2354dde3987c4ef1d7b7f92b604d7a2e SHA512 47b45b64142b86c6701664352a3e91417e472bb751162e790d0a034ff270c385b94015b7b81a2947545ae888d59716d6d226cddd50a3b26138a36c228945add4
24 +DIST OpenJDK-jdk_ppc64le_linux_hotspot_2022-11-25-03-30.tar.gz 200726099 BLAKE2B 62b4bf480d4c13eebee15ec59126174a6679e59367bade7f39bd99d6c948193e6beb1aaa70e6eff37e74aac80178185b2e2857ba51601013afbf9201fc0183e2 SHA512 4581457e28c7dafff008067db22fa4ec19e651adfbb71c024d577f6fd1d4a6705fe0ed7b0a2f5c368f4b156c7817606acead87a917badfb092d88daf541e1732
25 +DIST OpenJDK-jdk_x64_alpine-linux_hotspot_2022-11-25-03-30.tar.gz 200684244 BLAKE2B 856f4244ed50d614af33b60229401490a3ee3643304f8b784cc22ed6eadfb2f3f3305509f00a325f3e1844305ac56eeef4345233dd44b1307e7d9fa1665fb936 SHA512 23fba9c02882402d1df93dc278e0c4701cfcff60b0086f69daa3068f8218c2e665f861963822fe953ff4fc1720a5e157cd9341eac03b80e033190b0a69c91424
26 +DIST OpenJDK-jdk_x64_linux_hotspot_2022-11-25-03-30.tar.gz 201494529 BLAKE2B 54aa670ef143c0ee4b6cd35f19910269b7783401e01d4a00e6784f669e4cda2b81def6f10810911cb665e6352800916573926f6a1128bc925a8cb47575b453ef SHA512 e0c430f4c1fe52c7e33112bfa0e139d13eb577e91306970c295cb11b0667f9e1f2aeb729ca85719f0188ed89fb49db5fd3e6d08e632c85e0f2b25899f3295add
27 +DIST OpenJDK-jdk_x64_mac_hotspot_2022-11-25-03-30.tar.gz 197027544 BLAKE2B 411d0b6cc7d462179d04d67efd54aea11a4e9372f16e74c64cd184c704976b28d2ca1b4a1542a17a8b1b99833db9ba889103f88ff8a2ab8fbee84c12ddfbc243 SHA512 bca65c3ccaba33b632aff5d61e589bbd226bedfdb0a0b6e0308efd0a0e61df3b1236b8315191f1bdadc8664384913de39af9605e26db054955ac7088156fb4ee
28 DIST OpenJDK18U-jdk_aarch64_linux_hotspot_18.0.1_10.tar.gz 191259769 BLAKE2B bf65463bd2d09c2546e272d3972f24ed1b92223125b474e40ab3166f7ee190b831d9a021a74b72279ce404517158b0cc144aec8eb3a20e164e8a86b73f20126e SHA512 c0127793551bb4f335c3970b53b515265f9e53cca02cd597ac854ceb88bc479bbb96b865ac31e194eda14c5a1b9f08a6d0f3922a3d763a54a1994478c2526afc
29 DIST OpenJDK18U-jdk_arm_linux_hotspot_18.0.1_10.tar.gz 189528067 BLAKE2B 05485aaf4ae8071afe0a988f893fdc1611b4841003b5c01ea6ae8ed83905191e9d7a4848e4a0b3b3f9d69e6246e1df354f57ebbd6460a53834b3562dfa971fea SHA512 93c45e7f3549018dc10a83e19052504352a7e242b2c5e40a5a9bfc30813e5c21b23f6f06c4ae5e94b9ab0a6b9be7397dceb7ebd871e2e45f49e6023c76bf6ca0
30 DIST OpenJDK18U-jdk_ppc64le_linux_hotspot_18.0.1_10.tar.gz 191894570 BLAKE2B 4d9c34bfc24bd8edd25546a66c2ab7fe7fec0a4e813ad8ca4908736d37e64e65f19ab8b5f5058084189390acd9cfb7eb52c6c477ce7f055b2ed1792dfb722db7 SHA512 c9c2ba2734c66546cbaaeea64063b196be87ee93141244d6910159287cddbc1d3a05e4436b0edf3d22be38f7169a1d8da003525d8ebe650a2ccabe1928a5199d
31
32 diff --git a/dev-java/openjdk-bin/openjdk-bin-20_beta20221125.ebuild b/dev-java/openjdk-bin/openjdk-bin-20_beta20221125.ebuild
33 new file mode 100644
34 index 00000000..e3258dec
35 --- /dev/null
36 +++ b/dev-java/openjdk-bin/openjdk-bin-20_beta20221125.ebuild
37 @@ -0,0 +1,137 @@
38 +# Copyright 1999-2022 Gentoo Authors
39 +# Distributed under the terms of the GNU General Public License v2
40 +
41 +EAPI=8
42 +
43 +inherit java-vm-2 toolchain-funcs
44 +
45 +abi_uri() {
46 + local baseuri="https://github.com/adoptium/temurin${SLOT}-binaries/releases/download/jdk-${MY_PV}/"
47 + local musl=
48 + local os=linux
49 +
50 + case ${2} in
51 + *-macos) os=mac ;;
52 + *-solaris) os=solaris ;;
53 + esac
54 +
55 + if [[ ${3} == musl ]]; then
56 + os=alpine-linux
57 + musl=true
58 + fi
59 +
60 + echo "${2-$1}? (
61 + ${musl:+ elibc_musl? ( }
62 + ${baseuri}/OpenJDK-jdk_${1}_${os}_hotspot_${MY_PV_2//+/_}.tar.gz
63 + ${musl:+ ) } )"
64 +}
65 +
66 +MY_PV="2022-11-25-14-40-beta"
67 +MY_PV_2="2022-11-25-03-30"
68 +SLOT=$(ver_cut 1)
69 +
70 +SRC_URI="
71 + $(abi_uri aarch64 arm64)
72 + $(abi_uri arm)
73 + $(abi_uri x64 amd64)
74 + $(abi_uri x64 amd64 musl)
75 + $(abi_uri aarch64 arm64-macos)
76 + $(abi_uri ppc64le ppc64)
77 + $(abi_uri x64 x64-macos)
78 +"
79 +
80 +DESCRIPTION="Prebuilt Java JDK binaries provided by Eclipse Temurin"
81 +HOMEPAGE="https://adoptium.net"
82 +LICENSE="GPL-2-with-classpath-exception"
83 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x64-macos"
84 +IUSE="alsa cups headless-awt selinux source"
85 +
86 +RDEPEND="
87 + >=sys-apps/baselayout-java-0.1.0-r1
88 + kernel_linux? (
89 + media-libs/fontconfig:1.0
90 + media-libs/freetype:2
91 + media-libs/harfbuzz
92 + elibc_glibc? ( >=sys-libs/glibc-2.2.5:* )
93 + elibc_musl? ( sys-libs/musl )
94 + sys-libs/zlib
95 + alsa? ( media-libs/alsa-lib )
96 + cups? ( net-print/cups )
97 + selinux? ( sec-policy/selinux-java )
98 + !headless-awt? (
99 + x11-libs/libX11
100 + x11-libs/libXext
101 + x11-libs/libXi
102 + x11-libs/libXrender
103 + x11-libs/libXtst
104 + )
105 + )"
106 +
107 +RESTRICT="preserve-libs splitdebug"
108 +QA_PREBUILT="*"
109 +
110 +S="${WORKDIR}/jdk-20+25"
111 +
112 +pkg_pretend() {
113 + if [[ "$(tc-is-softfloat)" != "no" ]]; then
114 + die "These binaries require a hardfloat system."
115 + fi
116 +}
117 +
118 +src_unpack() {
119 + default
120 + if [[ ${A} == *_mac_* ]] ; then
121 + mv -v "${S}/Contents/Home/"* "${S}" || die
122 + rm -Rf "${S}/Contents" # drop macOS executable
123 + fi
124 +}
125 +
126 +src_install() {
127 + local dest="/opt/${P}"
128 + local ddest="${ED}/${dest#/}"
129 +
130 + # on macOS if they would exist they would be called .dylib, but most
131 + # importantly, there are no different providers, so everything
132 + # that's shipped works.
133 + if [[ ${A} != *_mac_* ]] ; then
134 + # Not sure why they bundle this as it's commonly available and they
135 + # only do so on x86_64. It's needed by libfontmanager.so. IcedTea
136 + # also has an explicit dependency while Oracle seemingly dlopens it.
137 + rm -vf lib/libfreetype.so || die
138 +
139 + # prefer system copy # https://bugs.gentoo.org/776676
140 + rm -vf lib/libharfbuzz.so || die
141 +
142 + # Oracle and IcedTea have libjsoundalsa.so depending on
143 + # libasound.so.2 but AdoptOpenJDK only has libjsound.so. Weird.
144 + if ! use alsa ; then
145 + rm -v lib/libjsound.* || die
146 + fi
147 +
148 + if use headless-awt ; then
149 + rm -v lib/lib*{[jx]awt,splashscreen}* || die
150 + fi
151 + fi
152 +
153 + if ! use source ; then
154 + rm -v lib/src.zip || die
155 + fi
156 +
157 + rm -v lib/security/cacerts || die
158 + dosym -r /etc/ssl/certs/java/cacerts "${dest}"/lib/security/cacerts
159 +
160 + dodir "${dest}"
161 + cp -pPR * "${ddest}" || die
162 +
163 + # provide stable symlink
164 + dosym "${P}" "/opt/${PN}-${SLOT}"
165 +
166 + java-vm_install-env "${FILESDIR}"/${PN}.env.sh
167 + java-vm_set-pax-markings "${ddest}"
168 + java-vm_revdep-mask
169 + java-vm_sandbox-predict /dev/random /proc/self/coredump_filter
170 +}
171 +
172 +pkg_postinst() {
173 + java-vm-2_pkg_postinst
174 +}