diff options
Diffstat (limited to 'dev-java/openj9-openjdk')
-rw-r--r-- | dev-java/openj9-openjdk/Manifest | 8 | ||||
-rw-r--r-- | dev-java/openj9-openjdk/openj9-openjdk-11.0.48.0.ebuild (renamed from dev-java/openj9-openjdk/openj9-openjdk-11.0.40.0.ebuild) | 38 | ||||
-rw-r--r-- | dev-java/openj9-openjdk/openj9-openjdk-21.0.48.0.ebuild (renamed from dev-java/openj9-openjdk/openj9-openjdk-17.0.40.0.ebuild) | 26 |
3 files changed, 52 insertions, 20 deletions
diff --git a/dev-java/openj9-openjdk/Manifest b/dev-java/openj9-openjdk/Manifest index ff6a853..533a846 100644 --- a/dev-java/openj9-openjdk/Manifest +++ b/dev-java/openj9-openjdk/Manifest @@ -1,4 +1,4 @@ -DIST openj9-0.40.0.tar.gz 18146593 BLAKE2B fbc092d481f567ed697a87f90a2d0c657e195744a76e848e62061667f07d7c022b174c47b91cbf29606ed7a783042c825a82583d481ef2149e084816abf4af60 SHA512 4947d9863b84ae936a2e8a569fe62797b34ce30b3fe3e5792a640bd9a3d281fcc14ac1ac44b0a9c0b326ec31fc101d946dc38700f6a8e1f42cb0f3b7b7573860 -DIST openj9-omr-0.40.0.tar.gz 8037707 BLAKE2B d5df776d64293edb2d50ea0536f22a6ec6889fc4a84f5fab7d36792b9c0bc705631b65d4fbe028b08ad83d632aa8146a96371459a70eb63a262ce22016011d4a SHA512 9737c13bf1f6b67502355191cb34f45e3dc3fc80e429be5452c0f26a14cf5856040868c13e08e7e03b52f6b5f7ddc700f63a03488652a2a8e0d0f6f531f1d379 -DIST openj9-openjdk-jdk11-openj9-0.40.0.tar.gz 102287197 BLAKE2B c83dc8effa26d0966a0648d2f6e42250ea1fdc2ddf543e55e798945560d9686b0df42a32d37511a0c816ab9ab8aec2246abfe5fba4772e58e89b05b40ce053f6 SHA512 a32c361e18c31e2f07b039d25e68d2b2520c16d14e2d7dc5f9155721afe4f5065df3a681daa7029a9b967e8d3ab7095d422b835e4c7b4d187ee70ca9febdc7fb -DIST openj9-openjdk-jdk17-openj9-0.40.0.tar.gz 94895676 BLAKE2B 3a5112a273df0451b4ed0818e9d1cb06715ae5fc8ee8fa1d30688d04b8bfd99e0d0bf59c22068109eb2344a2dc66038fc113e1afce5b19c4df7fa76a9d39feb8 SHA512 0d6b73ee0794e73888122a9852a21cc8ca6f087469f2d7f02143730f69b0e6b73319c416022a0f05406c0bda04153663884ea15feeaa3023b5381080f4306ce9 +DIST openj9-0.48.0.tar.gz 18480709 BLAKE2B 4d3d593ce295c0ba40ef32cc79f0e00b4864d2bc5d36e26c0bd0e2c3aa3406888e8a764472c212ff45ab59d092055e9e9775231fd8d979643d91d022911bd147 SHA512 28247eb763056becf881f1a3f431a073f4605d062e26bfc30a8cad86cab7b7a9a114a44faff40743957315d808a42ff7636554ff794dac640578ec75e9328749 +DIST openj9-omr-0.48.0.tar.gz 8126272 BLAKE2B d343b0129d639cd2887c98fe64b92c66ff2932537520158faa2dbaa465cfb32d6ff0c5c7bf0a5591a8f57e25f85cfc1a85f34c7f6bd9f07e04a35d5b50eb09f7 SHA512 090aee202bb7dd46fcc93f94a7168d22f3b2546d86456d40ba12aba7d76699345502aafc25ca5b675ba7683cfa2414564113c91ba31ad720d1f6867d63f70aab +DIST openj9-openjdk-jdk11-openj9-0.48.0.tar.gz 102800187 BLAKE2B 82a04892e389a5e24c59a17d2efa95a37e092480dfbbf89f47da965179aaead0b56c1cbe26efcd905bfeb018667880faf077e410bf0d689a1b99178acf398fb4 SHA512 9288f83706aeb945a479b4478b365911408a92ac703f43418f3f98fc1beaefb008c8d0b46dd055200122a9d549da89cd727a2eef8598b7ba069cf36055d1207d +DIST openj9-openjdk-jdk21-openj9-0.48.0.tar.gz 100484633 BLAKE2B c23d1325c8db43a7076cc589ea0a485cae2d0d26668f8da5cb2a2db2cc6b43052a7e848d04e7c66f03f7696a19690a0812f9aff92deedf7c426ede03b9aa36c7 SHA512 5b4a390c53643ee10affd5b0c6277f5ac6be873f34035c28fb7b75fca04f9e08e91b66ed505e8a5c0eb114f0cf00d6af2bb8c42f2495e3b6913cc253a7969836 diff --git a/dev-java/openj9-openjdk/openj9-openjdk-11.0.40.0.ebuild b/dev-java/openj9-openjdk/openj9-openjdk-11.0.48.0.ebuild index 35bc082..4e7eb58 100644 --- a/dev-java/openj9-openjdk/openj9-openjdk-11.0.40.0.ebuild +++ b/dev-java/openj9-openjdk/openj9-openjdk-11.0.48.0.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 -inherit check-reqs eapi8-dosym flag-o-matic java-pkg-2 java-vm-2 multiprocessing toolchain-funcs +inherit check-reqs flag-o-matic java-pkg-2 java-vm-2 multiprocessing toolchain-funcs SLOT="$(ver_cut 1)" OPENJ9_PV="$(ver_cut 2-4)" @@ -24,7 +24,7 @@ else " fi -LICENSE="GPL-2" +LICENSE="GPL-2-with-classpath-exception" KEYWORDS="~amd64" IUSE="alsa cups ddr debug doc headless-awt javafx +jbootstrap jitserver numa selinux source systemtap" @@ -41,7 +41,7 @@ COMMON_DEPEND=" media-libs/lcms:2= sys-libs/zlib media-libs/libjpeg-turbo:0= - systemtap? ( dev-util/systemtap ) + systemtap? ( dev-debug/systemtap ) dev-libs/elfutils ddr? ( dev-libs/libdwarf ) @@ -162,9 +162,18 @@ src_prepare() { } src_configure() { - # Work around stack alignment issue, bug #647954. in case we ever have x86 + # Work around stack alignment issue, bug #647954. use x86 && append-flags -mincoming-stack-boundary=2 + # 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. @@ -202,7 +211,14 @@ src_configure() { $(use_enable jitserver) ) + use lto && myconf+=( --with-jvm-features=link-time-opt ) + if use javafx; then + # this is not useful for users, just for upstream developers + # build system compares mesa version in md file + # https://bugs.gentoo.org/822612 + export LEGAL_EXCLUDES=mesa3d.md + local zip="${EPREFIX}/usr/$(get_libdir)/openjfx-${SLOT}/javafx-exports.zip" if [[ -r ${zip} ]]; then myconf+=( --with-import-modules="${zip}" ) @@ -220,6 +236,10 @@ src_configure() { } src_compile() { + # Too brittle - gets confused by e.g. -Oline + export MAKEOPTS="-j$(makeopts_jobs) -l$(makeopts_loadavg)" + unset GNUMAKEFLAGS MAKEFLAGS + local mycmakeargsx=( "-DCMAKE_C_FLAGS='${CFLAGS}'" "-DJ9JIT_EXTRA_CFLAGS='${CFLAGS}'" @@ -282,6 +302,10 @@ src_install() { if use doc ; then docinto html dodoc -r "${S}"/build/*-release/images/docs/* - dosym ../../../usr/share/doc/"${PF}" /usr/share/doc/"${PN}-${SLOT}" + dosym -r /usr/share/doc/"${PF}" /usr/share/doc/"${PN}-${SLOT}" fi } + +pkg_postinst() { + java-vm-2_pkg_postinst +} diff --git a/dev-java/openj9-openjdk/openj9-openjdk-17.0.40.0.ebuild b/dev-java/openj9-openjdk/openj9-openjdk-21.0.48.0.ebuild index ca64ddd..6bf8ca9 100644 --- a/dev-java/openj9-openjdk/openj9-openjdk-17.0.40.0.ebuild +++ b/dev-java/openj9-openjdk/openj9-openjdk-21.0.48.0.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 -inherit check-reqs eapi8-dosym flag-o-matic java-pkg-2 java-vm-2 multiprocessing toolchain-funcs +inherit check-reqs flag-o-matic java-pkg-2 java-vm-2 multiprocessing toolchain-funcs SLOT="$(ver_cut 1)" OPENJ9_PV="$(ver_cut 2-4)" @@ -24,10 +24,10 @@ else " fi -LICENSE="GPL-2" +LICENSE="GPL-2-with-classpath-exception" KEYWORDS="~amd64" -IUSE="alsa cups ddr debug doc headless-awt javafx +jbootstrap jitserver numa selinux source systemtap" +IUSE="alsa cups ddr debug doc headless-awt javafx +jbootstrap jitserver lto numa selinux source systemtap" REQUIRED_USE=" javafx? ( alsa !headless-awt ) @@ -41,7 +41,7 @@ COMMON_DEPEND=" media-libs/lcms:2= sys-libs/zlib media-libs/libjpeg-turbo:0= - systemtap? ( dev-util/systemtap ) + systemtap? ( dev-debug/systemtap ) dev-libs/elfutils ddr? ( dev-libs/libdwarf ) @@ -193,6 +193,12 @@ src_configure() { # Work around stack alignment issue, bug #647954. in case we ever have x86 use x86 && append-flags -mincoming-stack-boundary=2 + # /tmp/portage/dev-java/openj9-openjdk-21.0.48.0/work/openj9-openjdk-jdk21-openj9-0.48.0/openj9/runtime/codert_vm/thunkcrt.c:95: error: function 'icallVMprJavaSendVirtualL' redeclared as variable + # 95 | extern void * icallVMprJavaSendVirtualL; + # /tmp/portage/dev-java/openj9-openjdk-21.0.48.0/work/openj9-openjdk-jdk21-openj9-0.48.0/openj9/runtime/compiler/runtime/Runtime.cpp:341:1: note: previously declared here + # 341 | JIT_HELPER(icallVMprJavaSendVirtualL); + filter-lto + # 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. @@ -221,7 +227,7 @@ src_configure() { --with-vendor-version-string="${PVR}" --with-version-pre="" --with-zlib=system - --enable-dtrace=$(usex systemtap yes no) + --enable-jvm-feature-dtrace=$(usex systemtap yes no) --enable-headless-only=$(usex headless-awt yes no) $(tc-is-clang && echo "--with-toolchain-type=clang") @@ -230,6 +236,8 @@ src_configure() { $(use_enable jitserver) ) + 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 @@ -269,7 +277,7 @@ src_compile() { OPENJ9_TAG=${OPENJ9_P} OPENJ9OMR_SHA=${OPENJ9_P} ) - emake "${myemakeargs[@]}" -j1 #nowarn + emake "${myemakeargs[@]}" -j1 } src_install() { @@ -298,7 +306,7 @@ src_install() { dodir "${dest}" cp -pPR * "${ddest}" || die - dosym8 -r /etc/ssl/certs/java/cacerts "${dest}"/lib/security/cacerts + dosym -r /etc/ssl/certs/java/cacerts "${dest}"/lib/security/cacerts # must be done before running itself java-vm_set-pax-markings "${ddest}" |