dev-java/openjdk-jre-bin: add 11.0.27_p6

Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
Part-of: https://github.com/gentoo/gentoo/pull/41817
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
This commit is contained in:
Volkmar W. Pogatzki
2025-04-22 08:24:58 +02:00
committed by Miroslav Šulc
parent 0fa9e23965
commit 571e2b3312
2 changed files with 84 additions and 0 deletions

View File

@@ -1,4 +1,5 @@
DIST OpenJDK11U-jre_x64_linux_hotspot_11.0.26_4.tar.gz 43392609 BLAKE2B 5252fb30aef1eb09c39f1c011c92f057db3d6401d96328eda5737f2c39b47c9d194712d163df7244dadbbde41551695213778fa9df7af4627bf0461e2506805c SHA512 61d2d9c747450dba0d6b37a304b1dbe69497989b6643b2a4cbe6a99c100b780ccc04e650c0e5273e9fa724fb0e8db5272d46f8ef7a66e3c0958f26e9bf0fe74e
DIST OpenJDK11U-jre_x64_linux_hotspot_11.0.27_6.tar.gz 43401920 BLAKE2B d71de5aabb4dbb04fd8861c870fd2c196a63920002c44fa777c6ce69ab4c898a72a5573bc461de6c7b233718adcfdee28eac6e5d59abaff0ba145bea7090fdf3 SHA512 0bf686cb3dd9c01a1391ad74c8bce799063a0d44bec7cd2bd68f90aa8bdda65cd8897f95b52878c4466865cfdffab862269b37e73e8907f1404b9bb5d52b1df9
DIST OpenJDK17U-jre_x64_linux_hotspot_17.0.14_7.tar.gz 46092700 BLAKE2B e4045ac58993c771e750464dba07432857facb49aca86954ff0446c3be7b4749848bc39a31519bc72ea83c81f70aa7c2c975ee750c41993bfd5fe37c7537ea28 SHA512 42cce997473203c1aa7bf4d64706b1031536cccbe40a35ef8ad37e23cc87e1ef6adca9afa69ac857d571ba888f7a9a8fe6a950f0084b22f58f36b865cbd975a6
DIST OpenJDK17U-jre_x64_linux_hotspot_17.0.15_6.tar.gz 46098776 BLAKE2B 02114ee357c8a64be625d0ba2429a37d86bca89d70d9e5cf8f66069c039894fe88f8cf7e04547c56b6b1a5cc9d6d7b90992ca2177a4e72dd50ae4725ab32cec4 SHA512 e8812a916e7310272bada9cb8912102c106b20a7c86c8da78a111ef72b0d284e79e6fa01ba8e862b3a22d751b96935d970b90f79b2ed7a933ab28acb9b0a292f
DIST OpenJDK21U-jre_x64_linux_hotspot_21.0.6_7.tar.gz 51858210 BLAKE2B f45a6578b92a04663d1b2cb5f6a8d2bd7d5f8eebdbb9cdb843ae37491c9f48f431ac6b3207711ed53d2cc2727aae274b475b698e3e8aa9714226bccddc7f35de SHA512 5b4c90176ae56880d3f71330032ca679fac4f6df8002c14dbeb095952b23a4a502433205ec3deffbe1a11f4a9211a4b32d50c7d44254d2fb7d2f7c027590a7f3

View File

@@ -0,0 +1,83 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit java-vm-2
abi_uri() {
echo "${2-$1}? (
https://github.com/adoptium/temurin${SLOT}-binaries/releases/download/jdk-${MY_PV}/OpenJDK${SLOT}U-jre_${1}_linux_hotspot_${MY_PV//+/_}.tar.gz
)"
}
MY_PV=${PV/_p/+}
SLOT=${MY_PV%%[.+]*}
SRC_URI="
$(abi_uri x64 amd64)
"
DESCRIPTION="Prebuilt Java JRE binaries provided by Eclipse Temurin"
HOMEPAGE="https://adoptium.net/"
LICENSE="GPL-2-with-classpath-exception"
KEYWORDS="~amd64"
IUSE="alsa cups headless-awt selinux"
RDEPEND="
media-libs/fontconfig:1.0
media-libs/freetype:2
>net-libs/libnet-1.1
>=sys-apps/baselayout-java-0.1.0-r1
>=sys-libs/glibc-2.2.5:*
sys-libs/zlib
alsa? ( media-libs/alsa-lib )
cups? ( net-print/cups )
selinux? ( sec-policy/selinux-java )
!headless-awt? (
x11-libs/libX11
x11-libs/libXext
x11-libs/libXi
x11-libs/libXrender
x11-libs/libXtst
)"
RESTRICT="preserve-libs splitdebug"
QA_PREBUILT="*"
S="${WORKDIR}/jdk-${MY_PV}-jre"
src_install() {
local dest="/opt/${PN}-${SLOT}"
local ddest="${ED}/${dest#/}"
# Not sure why they bundle this as it's commonly available and they
# only do so on x86_64. It's needed by libfontmanager.so. IcedTea
# also has an explicit dependency while Oracle seemingly dlopens it.
rm -vf lib/libfreetype.so || die
# Oracle and IcedTea have libjsoundalsa.so depending on
# libasound.so.2 but AdoptOpenJDK only has libjsound.so. Weird.
if ! use alsa ; then
rm -v lib/libjsound.* || die
fi
if use headless-awt ; then
rm -v lib/lib*{[jx]awt,splashscreen}* || die
fi
rm -v lib/security/cacerts || die
dosym -r /etc/ssl/certs/java/cacerts "${dest}"/lib/security/cacerts
dodir "${dest}"
cp -pPR * "${ddest}" || die
java-vm_install-env "${FILESDIR}"/${PN}.env.sh
java-vm_set-pax-markings "${ddest}"
java-vm_revdep-mask
java-vm_sandbox-predict /dev/random /proc/self/coredump_filter
}
pkg_postinst() {
java-vm-2_pkg_postinst
}