dev-java/openjdk-jre-bin: add 8.462_p08

Bug: https://bugs.gentoo.org/960284
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
Part-of: https://github.com/gentoo/gentoo/pull/43131
Closes: https://github.com/gentoo/gentoo/pull/43131
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Volkmar W. Pogatzki
2025-07-21 19:30:49 +02:00
committed by Sam James
parent 20d50bbbcd
commit 5ed0f65a6a
2 changed files with 86 additions and 0 deletions

View File

@@ -5,3 +5,4 @@ DIST OpenJDK17U-jre_x64_linux_hotspot_17.0.16_8.tar.gz 46121196 BLAKE2B efd0e353
DIST OpenJDK21U-jre_x64_linux_hotspot_21.0.7_6.tar.gz 51863597 BLAKE2B adc7d8a092eda560b7804e5f3b96620b6060c97e7ad409320e096de8e4f4252b29e03c33a6e39d4c834ee8c8b64a256f0711525db4a856171285700293333bb7 SHA512 3318754a0be4afbc538d3646579f2ca0e143fae60475fe0d288ecdd2104ddf1914e4f7a0e1d6c18bf575de1e987a7455a3599504c08635e76d908579fa014e23
DIST OpenJDK21U-jre_x64_linux_hotspot_21.0.8_9.tar.gz 51942501 BLAKE2B b5cd15d1a34640f9ad32c5b3af221cbb2af67bd00485a0d0891e4b39bf1afe094b0f611b092adb62c9d1afacb09c4acee67b52fb2d7689e947a7593a2fc2fc2f SHA512 4e2f5177404c1e52f5d417c1fa5505db9397d04c6507365e8fb22c7e3008eb73173749b18825a48a9e699a968c1ff71dc2d04c769eb950edc34f912940faf2d5
DIST OpenJDK8U-jre_x64_linux_hotspot_8u452b09.tar.gz 41420532 BLAKE2B cb957b8ec18bf1e97ffc800adca15af83ecd1fb7cac5c059d7b9d8043706438f635db02dcdfd6fb93686eb5c5512e773bc73993002f959404b1a2036d5e4ae29 SHA512 cafe940d184f2314b98543d341487a9b325cc790417d7b26f637d814705be79bac291b046b5a00a96cff23b9e16adf33aaa39c17e824283bad8c5c003a0b7ae1
DIST OpenJDK8U-jre_x64_linux_hotspot_8u462b08.tar.gz 41411475 BLAKE2B 29b814f67f018b5830d2509e404fc8855bdd2ed91f97933121f0dafd4f79e74013fc6bf89332cedcd6b85057befd70469cc54e66cdc55c721d12372b60055b9f SHA512 da5a4ef48d1e1b46a14825692dd6ed7fd7b7ea5cb88c2b30729aea4117770b1c4ab705b6784ee3a6f6343b1e28b6246f8537971df919325ff809a27d8103a5c8

View File

@@ -0,0 +1,85 @@
# 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}/OpenJDK8U-jre_${1}_linux_hotspot_${MY_PV/-/}.tar.gz
)"
}
MY_PV=$(ver_rs 1 'u' 2 '-' ${PV//p/b})
SLOT="$(ver_cut 1)"
DESCRIPTION="Prebuilt Java JRE binaries provided by Eclipse Temurin"
HOMEPAGE="https://adoptium.net/"
SRC_URI="
$(abi_uri x64 amd64)
"
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/${P}"
local ddest="${ED}/${dest#/}"
# https://bugs.gentoo.org/922741
docompress "${dest}/man"
rm ASSEMBLY_EXCEPTION LICENSE THIRD_PARTY_README || die
# this does not exist on arm64 hence -f
rm -fv lib/*/libfreetype.so* || die
if ! use alsa ; then
rm -v lib/*/libjsoundalsa.so* || die
fi
if use headless-awt ; then
rm -fvr lib/*/lib*{[jx]awt,splashscreen}* \
bin/policytool || 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
# provide stable symlink
dosym "${P}" "/opt/${PN}-${SLOT}"
java-vm_install-env "${FILESDIR}"/${PN}-${SLOT}.env.sh
java-vm_set-pax-markings "${ddest}"
java-vm_revdep-mask
java-vm_sandbox-predict /dev/random /proc/self/coredump_filter
}