From ef0fedb39c21a343a3f316726f272bad9005b22c Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 12 Mar 2025 01:49:51 +0000 Subject: gentoo auto-resync : 12:03:2025 - 01:49:51 --- dev-java/Manifest.gz | Bin 55186 -> 55194 bytes dev-java/openjdk-bin/Manifest | 14 +- .../openjdk-bin/openjdk-bin-25_p10_beta.ebuild | 136 --------- .../openjdk-bin/openjdk-bin-25_p13_beta.ebuild | 136 +++++++++ dev-java/openjdk/Manifest | 4 +- dev-java/openjdk/openjdk-25_p10.ebuild | 328 --------------------- dev-java/openjdk/openjdk-25_p13.ebuild | 328 +++++++++++++++++++++ 7 files changed, 473 insertions(+), 473 deletions(-) delete mode 100644 dev-java/openjdk-bin/openjdk-bin-25_p10_beta.ebuild create mode 100644 dev-java/openjdk-bin/openjdk-bin-25_p13_beta.ebuild delete mode 100644 dev-java/openjdk/openjdk-25_p10.ebuild create mode 100644 dev-java/openjdk/openjdk-25_p13.ebuild (limited to 'dev-java') diff --git a/dev-java/Manifest.gz b/dev-java/Manifest.gz index db52fa8fa46a..59b9ae5c9175 100644 Binary files a/dev-java/Manifest.gz and b/dev-java/Manifest.gz differ diff --git a/dev-java/openjdk-bin/Manifest b/dev-java/openjdk-bin/Manifest index 6aafb9747c31..7a0513696ad7 100644 --- a/dev-java/openjdk-bin/Manifest +++ b/dev-java/openjdk-bin/Manifest @@ -1,11 +1,11 @@ AUX openjdk-bin-8.env.sh 607 BLAKE2B 447575fc213003930ba6d6bbbd7cda0d53f53b16e3679fcb13d219cccf3525c7dfda755c79826b4d3c7b238502ed5ecaf4c8514971e576c756f4fc168fd9a0d2 SHA512 4cfbe2dddc89408824621bbd2036afa2966d550e6e189a8835f78b46fe91305221d8fa46219e9c53c83c9f73d83cdb1208bc78a46b9115041511b97b70abbf1b AUX openjdk-bin.env.sh 398 BLAKE2B b83d85e2a4e0dbeb24b8c21fb442a8964e55eaf01125cd52f5c930cd67b95b7d1744362cbefe436e4f4115f0b7600860200d8f134b241b6b60ffae6b807b476b SHA512 2c2f753a05154d17a7c324e61d3e4513119050f44d2a8d0aea5c6e2542e9989a955689a97d47fc1d5c710a056f2ccc7b239e3eed3b2d516df6b2aa7450c44613 -DIST OpenJDK-jdk_aarch64_alpine-linux_hotspot_25_10-ea.tar.gz 137483191 BLAKE2B 993d2185884fce226f0b5bcd6ab5ca3852977a943d764eff43a369de04c553d2619d68f87fcc63eabafcce2457238ce109bdc2add01fc17e14a82292476bfffd SHA512 7671b0517782ebbda4a4bd77da56399e7d1e4501489bed9f7e915e76c625881edafd0803320d404bfeb4f0f0d1a3f6b1861160b904e163a59c6570b9e253de8d -DIST OpenJDK-jdk_aarch64_linux_hotspot_25_10-ea.tar.gz 137518320 BLAKE2B 89a4b934429a3ae365748e97fafd458124620e2e18e635b8c2db3e5b190bd263f3e12e7188b9739c48f0aebe9ddcac8e18641ac2b1a7bf4a476c7ca0ee8c8dcf SHA512 638bd02d528ba53def3c5d8fd7ce3749d882ed16dfe23650e282f241d0d77a0c65c9315f8e085f0bfe2d085105bc9531d4ce5c8be405e6aefc3f04550600d54b -DIST OpenJDK-jdk_ppc64le_linux_hotspot_25_10-ea.tar.gz 138070693 BLAKE2B b527cfa2fbd81eeb34783f844e428c2133b97c56caa43c2b7b12b8da931c4d9fef2a0e323e20650b8586d1f1b813d3c951dee0b8fd2c61e80ca1e09983e5eb84 SHA512 2a1e7d48b7434882439159fb5023160a751ea0b37b6dd7fd885a8e87062cab9e810ca960b3c446512023ab34091557b024e909256cb183aaf52fea735b0b2591 -DIST OpenJDK-jdk_riscv64_linux_hotspot_25_10-ea.tar.gz 136377538 BLAKE2B b5a118e614bcfb312f52682c58fe6940fda6eb032faf2fb2bdf4f6c3ca9dbc545aa3e44f5d39396d9c34ef21ab16c88fa914e20726762676032e22ad9cb0c2c3 SHA512 5780522026b32f94a4d8f2e97772e681eeaad2b8f5d9d78e2e2b441ecad25bf84d9c2f9432d806f887c0e99f3838d5fdb80103043d37506bafcaaf8925c0c2ce -DIST OpenJDK-jdk_x64_alpine-linux_hotspot_25_10-ea.tar.gz 138612408 BLAKE2B 18c16d4509cfc2fbe994a2392b9085cfed72c1ec5c38cc6da1d7f226a300648e6b6b6aaf2c1c3b9de63c7608284d775aaa94a01de904aa22fe4dc9d7806cbdfc SHA512 87d9b39f1a4586edb64c5b89872163316d6fee20260759b538df118c68076a00ae3846e07ab47794024e1cf0626ac9b62ad31f9cd73f24b5563096d0d6a3ac94 -DIST OpenJDK-jdk_x64_linux_hotspot_25_10-ea.tar.gz 138520925 BLAKE2B 3231f0353520b2eacac737d58d42577dea49ec4012ce12646b1db888fb0e8e2c21fe9bce0869229179d28019f258b23fe6ad6b056c086295ac7af02b87efacfa SHA512 d46b85ba7da1e1c9657116e23080cc7c95b18eec301765d7ff5f4060eaabbe567929ccc9b757a66ec184b6193af154c7aab7e8dc8a5cc6aebfa919e7e173519f +DIST OpenJDK-jdk_aarch64_alpine-linux_hotspot_25_13-ea.tar.gz 137473307 BLAKE2B ebdf439c90c477dc7f88fe8e7e7e10c51a50d49891beeb0f498e49b8cc117c9295abc6581b05c8637c51b93096c6445a86c60f13a1376d9109ab909f31f6574d SHA512 baacffce9bcb48d922e527d4e1b0927525120d27c65013cf3ea3d5f28205fd14926302b9fcabaa25de8f6592583ad167d12e1f01ab84b5bf054703e562d34d07 +DIST OpenJDK-jdk_aarch64_linux_hotspot_25_13-ea.tar.gz 137475039 BLAKE2B ebf2834c91b9d3a42435fd28fa4332a511b49d26c9e2a427d70d0dcdad00e464268089b9badfb602ce500ec502f5ba06a1905e1987fe145bd82eac32c7ab2a29 SHA512 58328735b12521d73bc32f7e6f89e72a43feb46777f1c06b16c1ff99709287361166a1ce52f30cc0a1fc7c479d8473761c4ea156129a4e3a0e29d5e22dbdc2a0 +DIST OpenJDK-jdk_ppc64le_linux_hotspot_25_13-ea.tar.gz 137999218 BLAKE2B 77864d4b1e6d8b85f519feccf89556f6360a30c98c1d8b5f5d40decbe42df76959e4d59bc6b233c604be88794bbd879aeb5730f9d31a3474ac42a15040f9af2d SHA512 224fcfbd5234e5134054caff3086212023d6ef3cf1b0be631a06f3dbfd7646c7aa8cc531bb83c3d5dd8a211d405a8bcf98b42cd3b8dcc7b24bbd777cd3aab4db +DIST OpenJDK-jdk_riscv64_linux_hotspot_25_13-ea.tar.gz 136339597 BLAKE2B b92e25418915030bb90e3dcdae806dbb38253816471c4b0d8dea01cfa39b4b5fc01c02fdc7f4a4a030d106acf98761d375111eff91beb3cb2ac267d8ffad3ae0 SHA512 20bfe10e8533ed6d1e2750843df1ede19f789b428a3c4fede4447d323072f5f936403e9f3bc6414e29fb7d83c2f088cb03d0bf53a7eed2ab4a7d6765a78fc66b +DIST OpenJDK-jdk_x64_alpine-linux_hotspot_25_13-ea.tar.gz 138583081 BLAKE2B 10d1b9fc108bbf4310492f01d2a615952026005408d0df22eea49aaaa3b7495007fecb420617378dd7a7bd7aaa0e493e28988409f0605b4154a07ad2313627db SHA512 363bdf6d3ff36e6437080667dd9524005ea30568f514d2360a84b4725831ea7e69c616e4fec8c78f27ac8f534c8b87f281e6ea1ce5ef22d39766629ff87dad87 +DIST OpenJDK-jdk_x64_linux_hotspot_25_13-ea.tar.gz 138454776 BLAKE2B 6fc4051dc6b22a67dbae5be4aa8da3088a9402450d3c6b69cf97125ca519ec0f4c7226b925c39b8974952692a86e9be67ad3948fd8eb1981e1465c7b733bf966 SHA512 23f8363a15fb93ce35d6ba0fa92f3bab9b7a0e8f02fbab13efbdaf7eceeab5a6838f243c07afdae16811d5f3e29de68ee0180924381677def10d9d17f86edc20 DIST OpenJDK11U-jdk_aarch64_linux_hotspot_11.0.26_4.tar.gz 192142736 BLAKE2B ee6d2496dc6f8182d22fe7621110c783ac5506cbd88b9ee820f820eecb38348bd02990cbd20be91262d5dca5c27bd5476be8a529412f5f50efd412ce8a460629 SHA512 4afa228939aa26d131c829299bac90a863488c32f81ef61ad47ffc8ebac358399c460faca734994c4b6aed61fa68f669f45f375390dcb0698b6f7eb1db12834d DIST OpenJDK11U-jdk_arm_linux_hotspot_11.0.26_4.tar.gz 182888570 BLAKE2B e8e8f3bdfebe7ea4b62486370f5be37234aabb7d92561f72d2442b7d35cc09990083d8d256abbce5360e864cdc3f4b9e0e5cbb2313ea12ae6367622e489552a2 SHA512 e1b56b7052888c79a95c4a306e17730651a2d0c23f8b3784e27cbd89a42c00d34e29ed10ae103a5964f7e80efdda9700aef2028791e337c6986e4a86bde350f0 DIST OpenJDK11U-jdk_ppc64le_linux_hotspot_11.0.26_4.tar.gz 177550935 BLAKE2B 0e439a3b16cca15b588c00d4c4fc125057e531bfd5c274b76ca05b81bcdfa687561f13c3a46089a0efcadd323788ef8d4478830f1cd7bf69fe3a222c44ce05ca SHA512 77669c41ff3b5bf19789c3b8dedf532ec51a4f3f62cce5a5f80b4995c757f1af34dca73f2eba7132582679fde195e908aa81e02caf0c51ab2dc5b6330d95ed8c @@ -34,6 +34,6 @@ DIST OpenJDK8U-jdk_x64_mac_hotspot_8u442b06.tar.gz 109560420 BLAKE2B b23de9a444b EBUILD openjdk-bin-11.0.26_p4.ebuild 3183 BLAKE2B 91ee45637ac5090eefd740c76f8d3fc90532af99b9f6248b644324e3148bad8332b0598d7ded4acbde153b9a55846733bdbe00e501c138dbd8e6569dcf529936 SHA512 f8e3a2b45444477b0fa1ce6f424f3cc48bfb4fe66d55cccd6db4c23c2ba074a05c6aa43e2f047e3b5b93ed201d899508d908ac42e9d277e0514923cc53f46fcd EBUILD openjdk-bin-17.0.14_p7.ebuild 3215 BLAKE2B 475f020a37e726bb8f4b97454583f1cbc2f0efc67155e81fb10982a05d94a2c4a460a59841a2b4fbf930ec71070904db72eeed0511af55bf84bc9300e65b2ba1 SHA512 a14fbddbec1e1ef46e33d2226fca7f15d9f5445bc95f5c12f0e82eb3259a810beeaf7a46352d4bf0aeb51007e33cee2fb3fac989d62d1231930c6fa6fe40e558 EBUILD openjdk-bin-21.0.6_p7.ebuild 3243 BLAKE2B 8dd2efe9376bc2f06a1728c189358a296dc134ecdecde97add6af27a9517254531a16bff577be72b591b13e8e1a6e94945b51d88226470842bf642b7def04055 SHA512 f7f75cdb5067cf9ea3557df88c53d9b90ddf99d107ac5b9936a5f4026f6d6c92e6e0745e3a0eb4c33cc929a0f92347e62eb155c64b10c866fcb58e93565119b7 -EBUILD openjdk-bin-25_p10_beta.ebuild 3244 BLAKE2B e8d619e3cd047b15fda4f677b2d24f2e5f08488d67505a4ae4a8de0ad216c64e79807954e3a5e45408f2ca6da842a4d766735c30df5a019e6fead621ca157d42 SHA512 aa4a4b1288cbf94137b5d1a648a2fcbb25890c9bf1023aef7c86d27bde4b4dd5bb9d226678aaee5f8bc5c72a30f1d9bbeca31b357f547547689b2731cab904f9 +EBUILD openjdk-bin-25_p13_beta.ebuild 3244 BLAKE2B e8d619e3cd047b15fda4f677b2d24f2e5f08488d67505a4ae4a8de0ad216c64e79807954e3a5e45408f2ca6da842a4d766735c30df5a019e6fead621ca157d42 SHA512 aa4a4b1288cbf94137b5d1a648a2fcbb25890c9bf1023aef7c86d27bde4b4dd5bb9d226678aaee5f8bc5c72a30f1d9bbeca31b357f547547689b2731cab904f9 EBUILD openjdk-bin-8.442_p06.ebuild 2936 BLAKE2B 00dcf7fc50a91daa80d83831d4c270cf8f16904aa33c598c6f7a1ce165ccb3da31b5631379a8393f225b4a9cf65fa4a3f1176a0301e425b62dd080d0e3e78248 SHA512 f2fe25d49b89d771a6b17e80d9426a8ad07b2126b7e9cb946d02d8add24de1d88dfe14a693c46926cd5c18d407f15c8ebf6985535cc40052c78a04578e54ca02 MISC metadata.xml 1059 BLAKE2B 07f5d1d3aff8e962f70522b1fd1b33d9589695e1ccec43191bc31d065f48ff0efde065ac25d96ae994b6eb15fad9a6dcf2a24cc3c2b37633df242ba8b9d5e35b SHA512 a5094da75f572407c4391fb449469c56c4f1a6b86b8e72be98db45d8cadb9f142bc11a2e0a9131cba5d4fe2c9942edcd8e43066caddf8cab8638fbaba230e7b6 diff --git a/dev-java/openjdk-bin/openjdk-bin-25_p10_beta.ebuild b/dev-java/openjdk-bin/openjdk-bin-25_p10_beta.ebuild deleted file mode 100644 index 1df73d6d9ac5..000000000000 --- a/dev-java/openjdk-bin/openjdk-bin-25_p10_beta.ebuild +++ /dev/null @@ -1,136 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit java-vm-2 toolchain-funcs - -abi_uri() { - local baseuri="https://github.com/adoptium/temurin$(ver_cut 1)-binaries/releases/download/jdk-${MY_PV1}/" - local musl= - local os=linux - - case ${2} in - *-macos) os=mac ;; - *-solaris) os=solaris ;; - esac - - if [[ ${3} == musl ]]; then - os=alpine-linux - musl=true - fi - - echo "${2-$1}? ( - ${musl:+ elibc_musl? ( } - ${baseuri}/OpenJDK-jdk_${1}_${os}_hotspot_${MY_PV2//+/_}.tar.gz - ${musl:+ ) } )" -} - -MY_PV=${PV/_p/+} -MY_PV1=${MY_PV/_beta/-ea-beta} -MY_PV2=${MY_PV1/-beta/} - -DESCRIPTION="Prebuilt Java JDK binaries provided by Eclipse Temurin" -HOMEPAGE="https://adoptium.net" -SRC_URI=" - $(abi_uri aarch64 arm64) - $(abi_uri aarch64 arm64 musl) - $(abi_uri ppc64le ppc64) - $(abi_uri x64 amd64) - $(abi_uri x64 amd64 musl) - $(abi_uri riscv64 riscv) -" -S="${WORKDIR}/jdk-${MY_PV%_beta}" - -LICENSE="GPL-2-with-classpath-exception" -SLOT=$(ver_cut 1) -# KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv" -IUSE="alsa cups headless-awt selinux source" - -RDEPEND=" - >=sys-apps/baselayout-java-0.1.0-r1 - kernel_linux? ( - media-libs/fontconfig:1.0 - media-libs/freetype:2 - media-libs/harfbuzz - elibc_glibc? ( >=sys-libs/glibc-2.2.5:* ) - elibc_musl? ( sys-libs/musl ) - 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="*" - -pkg_pretend() { - if [[ "$(tc-is-softfloat)" != "no" ]]; then - die "These binaries require a hardfloat system." - fi -} - -src_unpack() { - default - if [[ ${A} == *_mac_* ]] ; then - mv -v "${S}/Contents/Home/"* "${S}" || die - rm -Rf "${S}/Contents" # drop macOS executable - fi -} - -src_install() { - local dest="/opt/${P}" - local ddest="${ED}/${dest#/}" - - # on macOS if they would exist they would be called .dylib, but most - # importantly, there are no different providers, so everything - # that's shipped works. - if [[ ${A} != *_mac_* ]] ; then - # 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 - - # prefer system copy # https://bugs.gentoo.org/776676 - rm -vf lib/libharfbuzz.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 - fi - - if ! use source ; then - rm -v lib/src.zip || 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}.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 -} diff --git a/dev-java/openjdk-bin/openjdk-bin-25_p13_beta.ebuild b/dev-java/openjdk-bin/openjdk-bin-25_p13_beta.ebuild new file mode 100644 index 000000000000..1df73d6d9ac5 --- /dev/null +++ b/dev-java/openjdk-bin/openjdk-bin-25_p13_beta.ebuild @@ -0,0 +1,136 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit java-vm-2 toolchain-funcs + +abi_uri() { + local baseuri="https://github.com/adoptium/temurin$(ver_cut 1)-binaries/releases/download/jdk-${MY_PV1}/" + local musl= + local os=linux + + case ${2} in + *-macos) os=mac ;; + *-solaris) os=solaris ;; + esac + + if [[ ${3} == musl ]]; then + os=alpine-linux + musl=true + fi + + echo "${2-$1}? ( + ${musl:+ elibc_musl? ( } + ${baseuri}/OpenJDK-jdk_${1}_${os}_hotspot_${MY_PV2//+/_}.tar.gz + ${musl:+ ) } )" +} + +MY_PV=${PV/_p/+} +MY_PV1=${MY_PV/_beta/-ea-beta} +MY_PV2=${MY_PV1/-beta/} + +DESCRIPTION="Prebuilt Java JDK binaries provided by Eclipse Temurin" +HOMEPAGE="https://adoptium.net" +SRC_URI=" + $(abi_uri aarch64 arm64) + $(abi_uri aarch64 arm64 musl) + $(abi_uri ppc64le ppc64) + $(abi_uri x64 amd64) + $(abi_uri x64 amd64 musl) + $(abi_uri riscv64 riscv) +" +S="${WORKDIR}/jdk-${MY_PV%_beta}" + +LICENSE="GPL-2-with-classpath-exception" +SLOT=$(ver_cut 1) +# KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv" +IUSE="alsa cups headless-awt selinux source" + +RDEPEND=" + >=sys-apps/baselayout-java-0.1.0-r1 + kernel_linux? ( + media-libs/fontconfig:1.0 + media-libs/freetype:2 + media-libs/harfbuzz + elibc_glibc? ( >=sys-libs/glibc-2.2.5:* ) + elibc_musl? ( sys-libs/musl ) + 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="*" + +pkg_pretend() { + if [[ "$(tc-is-softfloat)" != "no" ]]; then + die "These binaries require a hardfloat system." + fi +} + +src_unpack() { + default + if [[ ${A} == *_mac_* ]] ; then + mv -v "${S}/Contents/Home/"* "${S}" || die + rm -Rf "${S}/Contents" # drop macOS executable + fi +} + +src_install() { + local dest="/opt/${P}" + local ddest="${ED}/${dest#/}" + + # on macOS if they would exist they would be called .dylib, but most + # importantly, there are no different providers, so everything + # that's shipped works. + if [[ ${A} != *_mac_* ]] ; then + # 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 + + # prefer system copy # https://bugs.gentoo.org/776676 + rm -vf lib/libharfbuzz.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 + fi + + if ! use source ; then + rm -v lib/src.zip || 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}.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 +} diff --git a/dev-java/openjdk/Manifest b/dev-java/openjdk/Manifest index 9b0c5e94461e..0b81308f84df 100644 --- a/dev-java/openjdk/Manifest +++ b/dev-java/openjdk/Manifest @@ -9,7 +9,7 @@ DIST openjdk-11.0.18-riscv.patch.xz 272672 BLAKE2B b079612032a5bf135b05bdd1da16f DIST openjdk-11.0.26_p4.tar.gz 116557373 BLAKE2B 0d3dc31b4568778da2612d002c8e92eb3aa0e2b1b1eed973adb82fe3ca2ebdddafa9cae116e0b91cfb4cfdd7a40c381b3c8dd14e5b4ee28c0cf388b467166b76 SHA512 b5375de7c39aafa4fe1ef6556e17bf5c8ace577953ea8e666c4e8adc3e8b0f6fdbf20b7c426a156420acb99787363e0e4c9d36df20cefcef5e74a48bb75eeb24 DIST openjdk-17.0.14_p7.tar.gz 107408032 BLAKE2B 006be4d75d3d9ef3a40b1853dded3cced6f345ea473b7c03c89f04b1d74df7532878246bafde932b49da39c1cf66bcd7c2ee42dc9049c19efc653db8f7367971 SHA512 0643ac52b68e5884734289ab13592feef7273db96f7b5c0fd77d801e4d4e44a84abcc439fd1b138119c5583986f1d0b058aa74f55b00e0dfd31333cbb536744d DIST openjdk-21.0.6_p7.tar.gz 113221815 BLAKE2B 2b3d240037baa2b306a1064f260b7ed57a4f4dafe97626bf6e1de3e54357d8a7652c1798f6946d58aba30ca0be334d9a1f918b25381ab370d515f829abea4952 SHA512 fb03362608a35b0f6e131eaa974a52e6ff8a96f90d3bdaeccd2e1268f46db65c72387ed7bba1c8b0d9457c56950eae607fba29e102a338b009259262e1024726 -DIST openjdk-25_p10.tar.gz 120861908 BLAKE2B 04fedf4b3e23e5fba4a851f3b33b9f92680d8d6f8a0fafef5c84ba0c879dd3f2224a7614d1e3782b8e94897c0c28aa2b1319cf15cfe6c2500b319ab8c3778ac9 SHA512 3a8f19e27277f2f8ab2586e6fbc6554fe2364ccf66d0a2a52bc8147b67774460d7c252214286798ee0017028a6aba173b2182b6fff4a74720dec50f5fab44db6 +DIST openjdk-25_p13.tar.gz 120956985 BLAKE2B 039e569707d6803cc42a3fdb29fdb6f4fc9c6af0f207e894c6237e73ee087b3025b386e1b5afcd2a03675e39638608d45cd49915008e9812ff1aeb28f611e328 SHA512 35769b7318eea53b4d079dfe2a33fb28c11c48fd448c036ffba350147398927e5078bf53e67246d4adf6ca93fc81e99944cbcee14800c57824b49f0d4ccc55d3 DIST openjdk-8.442_p06.tar.gz 92775643 BLAKE2B dfcac25f30d8178b9c9d9b2f90e06b7c8cd417dc43c00954d2e9a748f979c596b1b77f989a7137e022868dfc8d12a148f9281cf9a387ff91e9d4b505d416128b SHA512 6c0fe0b7aaf5ff887c720cced4203231c7ea6490817a5cb10196dabe0f3941833ddcc8024d2fe04f3a84502b6fe08277a6ff2f84ce605f4209a3494b9f0a80b7 DIST openjdk-bootstrap-11.0.13_p8-ppc64.tar.xz 108215404 BLAKE2B 5e6c0b905b34b437137922b73a9724da96b8832186fea945f8c73d941db822ca1cc5718f3ecb4607ed98d1f8241c9f365b54caaf978863e8b84680a94f067b5d SHA512 732e2220219d42be10589fcaf2420da87ebc8564b4afc6bd02f61f31cdca9c31b339366e34d374fb814499b92f8aa796435a18f28e10c8cb00d9a0f5953bb60e DIST openjdk-bootstrap-11.0.13_p8-x86.tar.xz 105420236 BLAKE2B d3137ad497937a9a04dedf38776f3ac45bf3b115d275991fd8582b72ade48390b6aa8ad89e0b4d34fa6a787a3c413dab20b32ef347dc8733544e810150c55d29 SHA512 f71a7ef8fbf19b0595dd7d4ebe52bbe1c95b8c17f34d092472c5f5ce8caf52a053f22db8587f1649f9a96ad01c0c632be343342812f5a8cc4ff843b33b8d9b0f @@ -25,6 +25,6 @@ DIST openjdk-bootstrap-8.402_p06-x86.tar.xz 37076244 BLAKE2B bd50f84e8ac2ee9850c EBUILD openjdk-11.0.26_p4.ebuild 9003 BLAKE2B 0c87b9a541af2b00783130dc50ea677d5b898b7bb70a1183daaf764756dcd5259be97ca1787d869e41ad867d58ead85c7ed0e87f5f7aa55600deb04ae1ad8959 SHA512 7918ff6d81768786f8792855518ff8cb84bf3d906cefabcc6341dfd12812df33c0c2a2463d7a83b21809b5cb0287463cac050c75549233e82f38a465c78868ec EBUILD openjdk-17.0.14_p7.ebuild 9423 BLAKE2B 9d13f32fda92958be0f1216d286db971cb9e75a7b5b73f080e8f98139a65ddcabea885143707bbc400ddddb776c50a77485300efeaf7155ae9e260808d86783e SHA512 af4ecb092f74d9c16235bd3023f859338217f793ac91ddc51938be016306ec9a7d2de1ec5c9a003d44abb43d708a6c61bbc7a4b995dcba3b8a6c883e3f1f5838 EBUILD openjdk-21.0.6_p7.ebuild 9558 BLAKE2B 98c1c9f207ba3d94cb007035246f9b2ad4ce22b4a61ce30cc65a1dc373ebb6be79d2b3f6dad7fc5af276d9990a2e2eab321c2c14b98977695664ca5e9a52454a SHA512 e54f31b10a028b6e3a0f669d6d0d75f3e5f3916ea20cd3927f061cfff7f8f10ddc9e687845e24f1e86f4c8262a1e0e74ce9537135a57187b54bd0fc994cf81e5 -EBUILD openjdk-25_p10.ebuild 9442 BLAKE2B 9a0e8ee1d523bfbc2243ac4625ded98b953a4e5fcba241e2d66db1397c01e093a500268d48d8a97f1c5d5c4ab838466f70bcd7ba614d39ea13a4a645716f7aec SHA512 7f3f6c90ffbfadd66879e0e35187842f7479d965036bce66205b9d01176cd97dcfaa44905a0724c4c86c0c7efd5d85ee7f2d1b19925f4ac463fe1176b3548514 +EBUILD openjdk-25_p13.ebuild 9442 BLAKE2B 9a0e8ee1d523bfbc2243ac4625ded98b953a4e5fcba241e2d66db1397c01e093a500268d48d8a97f1c5d5c4ab838466f70bcd7ba614d39ea13a4a645716f7aec SHA512 7f3f6c90ffbfadd66879e0e35187842f7479d965036bce66205b9d01176cd97dcfaa44905a0724c4c86c0c7efd5d85ee7f2d1b19925f4ac463fe1176b3548514 EBUILD openjdk-8.442_p06.ebuild 7819 BLAKE2B a4956dbe705709e25463bf87595cb76db4e8ab800d514e3786b469d893fb2017c4b42080ec74ad8d6a1ef9207d2e06f70f11a6b42761bb135e3fc5a661b7fa6b SHA512 7e5591ec8e539eb4bc9c9bec9e10aae1a9c54de9a1a25a8e1e55aa8288e0fb3e583357d8c34bd9097a93c09d0f1a4f691afefb7a7a523e13a084d9a232260332 MISC metadata.xml 1593 BLAKE2B 89674213fcbe29a938a4f0812445a42013c467ec3c1ffae7168438abe9214125d0db15f796b34252ca4b83d5aa31ae5949730bfa60a948cac0619cee9cec7941 SHA512 8355c2dc2e23922861989171b6168799074d518c5e5c7f54c8f8b09a1b94c971d90002753fe1b2981345d3bcae5928ea049b8af71279cb6e3d573a25a7b7fb49 diff --git a/dev-java/openjdk/openjdk-25_p10.ebuild b/dev-java/openjdk/openjdk-25_p10.ebuild deleted file mode 100644 index 8d8d8b9b9b4f..000000000000 --- a/dev-java/openjdk/openjdk-25_p10.ebuild +++ /dev/null @@ -1,328 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit check-reqs flag-o-matic java-pkg-2 java-vm-2 multiprocessing toolchain-funcs - -# variable name format: _XPAK -PPC64_XPAK="21.0.0_p35" # big-endian bootstrap tarball - -# Usage: bootstrap_uri [extracond] -# Example: $(bootstrap_uri ppc64 17.0.1_p12 big-endian) -# Output: ppc64? ( big-endian? ( https://...17.0.1_p12-ppc64.tar.xz ) ) -bootstrap_uri() { - local baseuri="https://dev.gentoo.org/~arthurzam/distfiles/dev-java/${PN}/${PN}-bootstrap" - local suff="tar.xz" - local kw="${1:?${FUNCNAME[0]}: keyword not specified}" - local ver="${2:?${FUNCNAME[0]}: version not specified}" - local cond="${3-}" - [[ ${cond} == elibc_musl* ]] && local musl=yes - - # here be dragons - echo "${kw}? ( ${cond:+${cond}? (} ${baseuri}-${ver}-${kw}${musl:+-musl}.${suff} ${cond:+) })" -} - -# don't change versioning scheme -# to find correct _p number, look at -# https://github.com/openjdk/jdk${SLOT}u/tags -# you will see, for example, jdk-17.0.4.1-ga and jdk-17.0.4.1+1, both point -# to exact same commit sha. we should always use the full version. -# -ga tag is just for humans to easily identify General Availability release tag. -# MY_PV="${PV%_p*}-ga" # '-ga' isn't available -MY_PV="${PV/_p/+}" - -DESCRIPTION="Open source implementation of the Java programming language" -HOMEPAGE="https://openjdk.org" -SRC_URI=" - https://github.com/${PN}/jdk/archive/jdk-${MY_PV}.tar.gz - - -> ${P}.tar.gz - !system-bootstrap? ( - $(bootstrap_uri ppc64 ${PPC64_XPAK} big-endian) - ) -" -# S="${WORKDIR}/jdk${SLOT}u-jdk-${MY_PV//+/-}" -S="${WORKDIR}/jdk-jdk-${MY_PV//+/-}" - -LICENSE="GPL-2-with-classpath-exception" -SLOT="${MY_PV%%[.+]*}" -# KEYWORDS="" # LTS but not yet released - -# lto temporarily disabled due to https://bugs.gentoo.org/916735 -IUSE="alsa big-endian cups debug doc examples headless-awt javafx +jbootstrap selinux source +system-bootstrap systemtap" - -REQUIRED_USE=" - javafx? ( alsa !headless-awt ) - !system-bootstrap? ( jbootstrap ) - !system-bootstrap? ( ppc64 ) -" - -COMMON_DEPEND=" - media-libs/freetype:2= - media-libs/giflib:0/7 - media-libs/harfbuzz:= - media-libs/libpng:0= - media-libs/lcms:2= - sys-libs/zlib - media-libs/libjpeg-turbo:0= - systemtap? ( dev-debug/systemtap ) -" - -# Many libs are required to build, but not to run, make is possible to remove -# by listing conditionally in RDEPEND unconditionally in DEPEND -RDEPEND=" - ${COMMON_DEPEND} - >=sys-apps/baselayout-java-0.1.0-r1 - !headless-awt? ( - x11-libs/libX11 - x11-libs/libXext - x11-libs/libXi - x11-libs/libXrandr - x11-libs/libXrender - x11-libs/libXt - x11-libs/libXtst - ) - alsa? ( media-libs/alsa-lib ) - cups? ( net-print/cups ) - selinux? ( sec-policy/selinux-java ) -" - -DEPEND=" - ${COMMON_DEPEND} - app-arch/zip - media-libs/alsa-lib - net-print/cups - x11-base/xorg-proto - x11-libs/libX11 - x11-libs/libXext - x11-libs/libXi - x11-libs/libXrandr - x11-libs/libXrender - x11-libs/libXt - x11-libs/libXtst - javafx? ( dev-java/openjfx:${SLOT}= ) - system-bootstrap? ( - || ( - dev-java/openjdk-bin:${SLOT} - dev-java/openjdk:${SLOT} - ) - ) -" - -# The space required to build varies wildly depending on USE flags, -# ranging from 2GB to 16GB. This function is certainly not exact but -# should be close enough to be useful. -openjdk_check_requirements() { - local M - M=2048 - M=$(( $(usex jbootstrap 2 1) * $M )) - M=$(( $(usex debug 3 1) * $M )) - M=$(( $(usex doc 320 0) + $(usex source 128 0) + 192 + $M )) - - CHECKREQS_DISK_BUILD=${M}M check-reqs_pkg_${EBUILD_PHASE} -} - -pkg_pretend() { - openjdk_check_requirements - if [[ ${MERGE_TYPE} != binary ]]; then - has ccache ${FEATURES} && die "FEATURES=ccache doesn't work with ${PN}, bug #677876" - fi -} - -pkg_setup() { - openjdk_check_requirements - java-vm-2_pkg_setup - - [[ ${MERGE_TYPE} == "binary" ]] && return - - JAVA_PKG_WANT_BUILD_VM="openjdk-${SLOT} openjdk-bin-${SLOT}" - JAVA_PKG_WANT_SOURCE="${SLOT}" - JAVA_PKG_WANT_TARGET="${SLOT}" - - # The nastiness below is necessary while the gentoo-vm USE flag is - # masked. First we call java-pkg-2_pkg_setup if it looks like the - # flag was unmasked against one of the possible build VMs. If not, - # we try finding one of them in their expected locations. This would - # have been slightly less messy if openjdk-bin had been installed to - # /opt/${PN}-${SLOT} or if there was a mechanism to install a VM env - # file but disable it so that it would not normally be selectable. - - local vm - for vm in ${JAVA_PKG_WANT_BUILD_VM}; do - if [[ -d ${BROOT}/usr/lib/jvm/${vm} ]]; then - java-pkg-2_pkg_setup - return - fi - done -} - -src_prepare() { - default - chmod +x configure || die -} - -src_configure() { - if has_version dev-java/openjdk:${SLOT}; then - export JDK_HOME=${BROOT}/usr/$(get_libdir)/openjdk-${SLOT} - elif use !system-bootstrap ; then - local xpakvar="${ARCH^^}_XPAK" - export JDK_HOME="${WORKDIR}/openjdk-bootstrap-${!xpakvar}" - else - JDK_HOME=$(best_version -b dev-java/openjdk-bin:${SLOT}) - [[ -n ${JDK_HOME} ]] || die "Build VM not found!" - JDK_HOME=${JDK_HOME#*/} - JDK_HOME=${BROOT}/opt/${JDK_HOME%-r*} - export JDK_HOME - fi - - # bug 906987; append-cppflags doesnt work - use elibc_musl && append-flags -D_LARGEFILE64_SOURCE - - # Strip some flags users may set, but should not. #818502 - filter-flags -fexceptions - - # Strip lto related flags, we rely on USE=lto and --with-jvm-features=link-time-opt - # https://bugs.gentoo.org/833097 - # https://bugs.gentoo.org/833098 - filter-lto - filter-flags -fdevirtualize-at-ltrans - - # Enabling full docs appears to break doc building. If not - # explicitly disabled, the flag will get auto-enabled if pandoc and - # graphviz are detected. pandoc has loads of dependencies anyway. - - local myconf=( - --disable-ccache - --disable-precompiled-headers - --disable-warnings-as-errors - --enable-full-docs=no - --with-boot-jdk="${JDK_HOME}" - --with-extra-cflags="${CFLAGS}" - --with-extra-cxxflags="${CXXFLAGS}" - --with-extra-ldflags="${LDFLAGS}" - --with-freetype="${XPAK_BOOTSTRAP:-system}" - --with-giflib="${XPAK_BOOTSTRAP:-system}" - --with-harfbuzz="${XPAK_BOOTSTRAP:-system}" - --with-lcms="${XPAK_BOOTSTRAP:-system}" - --with-libjpeg="${XPAK_BOOTSTRAP:-system}" - --with-libpng="${XPAK_BOOTSTRAP:-system}" - --with-stdc++lib=dynamic - --with-native-debug-symbols=$(usex debug internal none) - --with-vendor-name="Gentoo" - --with-vendor-url="https://gentoo.org" - --with-vendor-bug-url="https://bugs.gentoo.org" - --with-vendor-vm-bug-url="https://bugs.openjdk.java.net" - --with-vendor-version-string="${PVR}" - --with-version-pre="" - --with-version-string="${PV%_p*}" - --with-version-build="${PV#*_p}" - --with-zlib="${XPAK_BOOTSTRAP:-system}" - --enable-jvm-feature-dtrace=$(usex systemtap yes no) - --enable-headless-only=$(usex headless-awt yes no) - $(tc-is-clang && echo "--with-toolchain-type=clang") - ) - - use riscv && myconf+=( --with-boot-jdk-jvmargs="-Djdk.lang.Process.launchMechanism=vfork" ) - - # Werror=odr - # https://bugs.gentoo.org/916735 - # - # Disable it for now. - #use lto && myconf+=( --with-jvm-features=link-time-opt ) - - if use javafx; then - local zip="${EPREFIX}/usr/$(get_libdir)/openjfx-${SLOT}/javafx-exports.zip" - if [[ -r ${zip} ]]; then - myconf+=( --with-import-modules="${zip}" ) - else - die "${zip} not found or not readable" - fi - fi - - # Workaround for bug #938302 - if use systemtap && has_version "dev-debug/systemtap[-dtrace-symlink(+)]" ; then - myconf+=( DTRACE="${BROOT}"/usr/bin/stap-dtrace ) - fi - - if use !system-bootstrap ; then - addpredict /dev/random - addpredict /proc/self/coredump_filter - fi - - ( - unset _JAVA_OPTIONS JAVA JAVA_TOOL_OPTIONS JAVAC XARGS - CFLAGS= CXXFLAGS= LDFLAGS= \ - CONFIG_SITE=/dev/null \ - econf "${myconf[@]}" - ) -} - -src_compile() { - # Too brittle - gets confused by e.g. -Oline - export MAKEOPTS="-j$(makeopts_jobs) -l$(makeopts_loadavg)" - unset GNUMAKEFLAGS MAKEFLAGS - - local myemakeargs=( - JOBS=$(makeopts_jobs) - LOG=debug - CFLAGS_WARNINGS_ARE_ERRORS= # No -Werror - NICE= # Use PORTAGE_NICENESS, don't adjust further down - $(usex doc docs '') - $(usex jbootstrap bootcycle-images product-images) - ) - emake "${myemakeargs[@]}" -j1 -} - -src_install() { - local dest="/usr/$(get_libdir)/${PN}-${SLOT}" - local ddest="${ED}/${dest#/}" - - cd "${S}"/build/*-release/images/jdk || die - - # Create files used as storage for system preferences. - mkdir .systemPrefs || die - touch .systemPrefs/.system.lock || die - touch .systemPrefs/.systemRootModFile || die - - # Oracle and IcedTea have libjsoundalsa.so depending on - # libasound.so.2 but OpenJDK only has libjsound.so. Weird. - if ! use alsa ; then - rm -v lib/libjsound.* || die - fi - - if ! use examples ; then - rm -vr demo/ || die - fi - - if ! use source ; then - rm -v lib/src.zip || die - fi - - rm -v lib/security/cacerts || die - - dodir "${dest}" - cp -pPR * "${ddest}" || die - - dosym -r /etc/ssl/certs/java/cacerts "${dest}"/lib/security/cacerts - - # must be done before running itself - java-vm_set-pax-markings "${ddest}" - - einfo "Creating the Class Data Sharing archives and disabling usage tracking" - "${ddest}/bin/java" -server -Xshare:dump -Djdk.disableLastUsageTracking || die - - java-vm_install-env "${FILESDIR}"/${PN}.env.sh - java-vm_revdep-mask - java-vm_sandbox-predict /dev/random /proc/self/coredump_filter - - if use doc ; then - docinto html - dodoc -r "${S}"/build/*-release/images/docs/* - dosym ../../../usr/share/doc/"${PF}" /usr/share/doc/"${PN}-${SLOT}" - fi -} - -pkg_postinst() { - java-vm-2_pkg_postinst -} diff --git a/dev-java/openjdk/openjdk-25_p13.ebuild b/dev-java/openjdk/openjdk-25_p13.ebuild new file mode 100644 index 000000000000..8d8d8b9b9b4f --- /dev/null +++ b/dev-java/openjdk/openjdk-25_p13.ebuild @@ -0,0 +1,328 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit check-reqs flag-o-matic java-pkg-2 java-vm-2 multiprocessing toolchain-funcs + +# variable name format: _XPAK +PPC64_XPAK="21.0.0_p35" # big-endian bootstrap tarball + +# Usage: bootstrap_uri [extracond] +# Example: $(bootstrap_uri ppc64 17.0.1_p12 big-endian) +# Output: ppc64? ( big-endian? ( https://...17.0.1_p12-ppc64.tar.xz ) ) +bootstrap_uri() { + local baseuri="https://dev.gentoo.org/~arthurzam/distfiles/dev-java/${PN}/${PN}-bootstrap" + local suff="tar.xz" + local kw="${1:?${FUNCNAME[0]}: keyword not specified}" + local ver="${2:?${FUNCNAME[0]}: version not specified}" + local cond="${3-}" + [[ ${cond} == elibc_musl* ]] && local musl=yes + + # here be dragons + echo "${kw}? ( ${cond:+${cond}? (} ${baseuri}-${ver}-${kw}${musl:+-musl}.${suff} ${cond:+) })" +} + +# don't change versioning scheme +# to find correct _p number, look at +# https://github.com/openjdk/jdk${SLOT}u/tags +# you will see, for example, jdk-17.0.4.1-ga and jdk-17.0.4.1+1, both point +# to exact same commit sha. we should always use the full version. +# -ga tag is just for humans to easily identify General Availability release tag. +# MY_PV="${PV%_p*}-ga" # '-ga' isn't available +MY_PV="${PV/_p/+}" + +DESCRIPTION="Open source implementation of the Java programming language" +HOMEPAGE="https://openjdk.org" +SRC_URI=" + https://github.com/${PN}/jdk/archive/jdk-${MY_PV}.tar.gz + + -> ${P}.tar.gz + !system-bootstrap? ( + $(bootstrap_uri ppc64 ${PPC64_XPAK} big-endian) + ) +" +# S="${WORKDIR}/jdk${SLOT}u-jdk-${MY_PV//+/-}" +S="${WORKDIR}/jdk-jdk-${MY_PV//+/-}" + +LICENSE="GPL-2-with-classpath-exception" +SLOT="${MY_PV%%[.+]*}" +# KEYWORDS="" # LTS but not yet released + +# lto temporarily disabled due to https://bugs.gentoo.org/916735 +IUSE="alsa big-endian cups debug doc examples headless-awt javafx +jbootstrap selinux source +system-bootstrap systemtap" + +REQUIRED_USE=" + javafx? ( alsa !headless-awt ) + !system-bootstrap? ( jbootstrap ) + !system-bootstrap? ( ppc64 ) +" + +COMMON_DEPEND=" + media-libs/freetype:2= + media-libs/giflib:0/7 + media-libs/harfbuzz:= + media-libs/libpng:0= + media-libs/lcms:2= + sys-libs/zlib + media-libs/libjpeg-turbo:0= + systemtap? ( dev-debug/systemtap ) +" + +# Many libs are required to build, but not to run, make is possible to remove +# by listing conditionally in RDEPEND unconditionally in DEPEND +RDEPEND=" + ${COMMON_DEPEND} + >=sys-apps/baselayout-java-0.1.0-r1 + !headless-awt? ( + x11-libs/libX11 + x11-libs/libXext + x11-libs/libXi + x11-libs/libXrandr + x11-libs/libXrender + x11-libs/libXt + x11-libs/libXtst + ) + alsa? ( media-libs/alsa-lib ) + cups? ( net-print/cups ) + selinux? ( sec-policy/selinux-java ) +" + +DEPEND=" + ${COMMON_DEPEND} + app-arch/zip + media-libs/alsa-lib + net-print/cups + x11-base/xorg-proto + x11-libs/libX11 + x11-libs/libXext + x11-libs/libXi + x11-libs/libXrandr + x11-libs/libXrender + x11-libs/libXt + x11-libs/libXtst + javafx? ( dev-java/openjfx:${SLOT}= ) + system-bootstrap? ( + || ( + dev-java/openjdk-bin:${SLOT} + dev-java/openjdk:${SLOT} + ) + ) +" + +# The space required to build varies wildly depending on USE flags, +# ranging from 2GB to 16GB. This function is certainly not exact but +# should be close enough to be useful. +openjdk_check_requirements() { + local M + M=2048 + M=$(( $(usex jbootstrap 2 1) * $M )) + M=$(( $(usex debug 3 1) * $M )) + M=$(( $(usex doc 320 0) + $(usex source 128 0) + 192 + $M )) + + CHECKREQS_DISK_BUILD=${M}M check-reqs_pkg_${EBUILD_PHASE} +} + +pkg_pretend() { + openjdk_check_requirements + if [[ ${MERGE_TYPE} != binary ]]; then + has ccache ${FEATURES} && die "FEATURES=ccache doesn't work with ${PN}, bug #677876" + fi +} + +pkg_setup() { + openjdk_check_requirements + java-vm-2_pkg_setup + + [[ ${MERGE_TYPE} == "binary" ]] && return + + JAVA_PKG_WANT_BUILD_VM="openjdk-${SLOT} openjdk-bin-${SLOT}" + JAVA_PKG_WANT_SOURCE="${SLOT}" + JAVA_PKG_WANT_TARGET="${SLOT}" + + # The nastiness below is necessary while the gentoo-vm USE flag is + # masked. First we call java-pkg-2_pkg_setup if it looks like the + # flag was unmasked against one of the possible build VMs. If not, + # we try finding one of them in their expected locations. This would + # have been slightly less messy if openjdk-bin had been installed to + # /opt/${PN}-${SLOT} or if there was a mechanism to install a VM env + # file but disable it so that it would not normally be selectable. + + local vm + for vm in ${JAVA_PKG_WANT_BUILD_VM}; do + if [[ -d ${BROOT}/usr/lib/jvm/${vm} ]]; then + java-pkg-2_pkg_setup + return + fi + done +} + +src_prepare() { + default + chmod +x configure || die +} + +src_configure() { + if has_version dev-java/openjdk:${SLOT}; then + export JDK_HOME=${BROOT}/usr/$(get_libdir)/openjdk-${SLOT} + elif use !system-bootstrap ; then + local xpakvar="${ARCH^^}_XPAK" + export JDK_HOME="${WORKDIR}/openjdk-bootstrap-${!xpakvar}" + else + JDK_HOME=$(best_version -b dev-java/openjdk-bin:${SLOT}) + [[ -n ${JDK_HOME} ]] || die "Build VM not found!" + JDK_HOME=${JDK_HOME#*/} + JDK_HOME=${BROOT}/opt/${JDK_HOME%-r*} + export JDK_HOME + fi + + # bug 906987; append-cppflags doesnt work + use elibc_musl && append-flags -D_LARGEFILE64_SOURCE + + # Strip some flags users may set, but should not. #818502 + filter-flags -fexceptions + + # Strip lto related flags, we rely on USE=lto and --with-jvm-features=link-time-opt + # https://bugs.gentoo.org/833097 + # https://bugs.gentoo.org/833098 + filter-lto + filter-flags -fdevirtualize-at-ltrans + + # Enabling full docs appears to break doc building. If not + # explicitly disabled, the flag will get auto-enabled if pandoc and + # graphviz are detected. pandoc has loads of dependencies anyway. + + local myconf=( + --disable-ccache + --disable-precompiled-headers + --disable-warnings-as-errors + --enable-full-docs=no + --with-boot-jdk="${JDK_HOME}" + --with-extra-cflags="${CFLAGS}" + --with-extra-cxxflags="${CXXFLAGS}" + --with-extra-ldflags="${LDFLAGS}" + --with-freetype="${XPAK_BOOTSTRAP:-system}" + --with-giflib="${XPAK_BOOTSTRAP:-system}" + --with-harfbuzz="${XPAK_BOOTSTRAP:-system}" + --with-lcms="${XPAK_BOOTSTRAP:-system}" + --with-libjpeg="${XPAK_BOOTSTRAP:-system}" + --with-libpng="${XPAK_BOOTSTRAP:-system}" + --with-stdc++lib=dynamic + --with-native-debug-symbols=$(usex debug internal none) + --with-vendor-name="Gentoo" + --with-vendor-url="https://gentoo.org" + --with-vendor-bug-url="https://bugs.gentoo.org" + --with-vendor-vm-bug-url="https://bugs.openjdk.java.net" + --with-vendor-version-string="${PVR}" + --with-version-pre="" + --with-version-string="${PV%_p*}" + --with-version-build="${PV#*_p}" + --with-zlib="${XPAK_BOOTSTRAP:-system}" + --enable-jvm-feature-dtrace=$(usex systemtap yes no) + --enable-headless-only=$(usex headless-awt yes no) + $(tc-is-clang && echo "--with-toolchain-type=clang") + ) + + use riscv && myconf+=( --with-boot-jdk-jvmargs="-Djdk.lang.Process.launchMechanism=vfork" ) + + # Werror=odr + # https://bugs.gentoo.org/916735 + # + # Disable it for now. + #use lto && myconf+=( --with-jvm-features=link-time-opt ) + + if use javafx; then + local zip="${EPREFIX}/usr/$(get_libdir)/openjfx-${SLOT}/javafx-exports.zip" + if [[ -r ${zip} ]]; then + myconf+=( --with-import-modules="${zip}" ) + else + die "${zip} not found or not readable" + fi + fi + + # Workaround for bug #938302 + if use systemtap && has_version "dev-debug/systemtap[-dtrace-symlink(+)]" ; then + myconf+=( DTRACE="${BROOT}"/usr/bin/stap-dtrace ) + fi + + if use !system-bootstrap ; then + addpredict /dev/random + addpredict /proc/self/coredump_filter + fi + + ( + unset _JAVA_OPTIONS JAVA JAVA_TOOL_OPTIONS JAVAC XARGS + CFLAGS= CXXFLAGS= LDFLAGS= \ + CONFIG_SITE=/dev/null \ + econf "${myconf[@]}" + ) +} + +src_compile() { + # Too brittle - gets confused by e.g. -Oline + export MAKEOPTS="-j$(makeopts_jobs) -l$(makeopts_loadavg)" + unset GNUMAKEFLAGS MAKEFLAGS + + local myemakeargs=( + JOBS=$(makeopts_jobs) + LOG=debug + CFLAGS_WARNINGS_ARE_ERRORS= # No -Werror + NICE= # Use PORTAGE_NICENESS, don't adjust further down + $(usex doc docs '') + $(usex jbootstrap bootcycle-images product-images) + ) + emake "${myemakeargs[@]}" -j1 +} + +src_install() { + local dest="/usr/$(get_libdir)/${PN}-${SLOT}" + local ddest="${ED}/${dest#/}" + + cd "${S}"/build/*-release/images/jdk || die + + # Create files used as storage for system preferences. + mkdir .systemPrefs || die + touch .systemPrefs/.system.lock || die + touch .systemPrefs/.systemRootModFile || die + + # Oracle and IcedTea have libjsoundalsa.so depending on + # libasound.so.2 but OpenJDK only has libjsound.so. Weird. + if ! use alsa ; then + rm -v lib/libjsound.* || die + fi + + if ! use examples ; then + rm -vr demo/ || die + fi + + if ! use source ; then + rm -v lib/src.zip || die + fi + + rm -v lib/security/cacerts || die + + dodir "${dest}" + cp -pPR * "${ddest}" || die + + dosym -r /etc/ssl/certs/java/cacerts "${dest}"/lib/security/cacerts + + # must be done before running itself + java-vm_set-pax-markings "${ddest}" + + einfo "Creating the Class Data Sharing archives and disabling usage tracking" + "${ddest}/bin/java" -server -Xshare:dump -Djdk.disableLastUsageTracking || die + + java-vm_install-env "${FILESDIR}"/${PN}.env.sh + java-vm_revdep-mask + java-vm_sandbox-predict /dev/random /proc/self/coredump_filter + + if use doc ; then + docinto html + dodoc -r "${S}"/build/*-release/images/docs/* + dosym ../../../usr/share/doc/"${PF}" /usr/share/doc/"${PN}-${SLOT}" + fi +} + +pkg_postinst() { + java-vm-2_pkg_postinst +} -- cgit v1.2.3