summaryrefslogtreecommitdiff
path: root/dev-java
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2025-07-28 19:03:31 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2025-07-28 19:03:31 +0000
commit951fa1a0a5ffd2f179a55b0f86c771bf3fc98f23 (patch)
tree85927675dd27c57cfd66354caa280fdeb41aadc7 /dev-java
parent4fc6ecf51bf788a313062c604ac393af992cb655 (diff)
downloadbaldeagleos-repo-951fa1a0a5ffd2f179a55b0f86c771bf3fc98f23.tar.gz
baldeagleos-repo-951fa1a0a5ffd2f179a55b0f86c771bf3fc98f23.tar.xz
baldeagleos-repo-951fa1a0a5ffd2f179a55b0f86c771bf3fc98f23.zip
Adding metadata
Diffstat (limited to 'dev-java')
-rw-r--r--dev-java/openjdk-bin/openjdk-bin-11.0.28_p6.ebuild2
-rw-r--r--dev-java/openjdk-bin/openjdk-bin-21.0.8_p9.ebuild2
-rw-r--r--dev-java/openjdk-jre-bin/openjdk-jre-bin-11.0.28_p6.ebuild2
-rw-r--r--dev-java/openjdk-jre-bin/openjdk-jre-bin-17.0.16_p8.ebuild2
-rw-r--r--dev-java/openjdk-jre-bin/openjdk-jre-bin-21.0.8_p9.ebuild2
-rw-r--r--dev-java/openjdk-jre-bin/openjdk-jre-bin-8.462_p08.ebuild2
-rw-r--r--dev-java/openjdk/openjdk-11.0.27_p6-r2.ebuild14
-rw-r--r--dev-java/openjdk/openjdk-11.0.28_p6.ebuild14
-rw-r--r--dev-java/openjdk/openjdk-17.0.15_p6-r2.ebuild14
-rw-r--r--dev-java/openjdk/openjdk-17.0.16_p8.ebuild14
-rw-r--r--dev-java/openjdk/openjdk-21.0.7_p6-r2.ebuild20
-rw-r--r--dev-java/openjdk/openjdk-21.0.8_p9.ebuild20
-rw-r--r--dev-java/openjdk/openjdk-25_p31.ebuild20
-rw-r--r--dev-java/openjdk/openjdk-26_p6.ebuild20
-rw-r--r--dev-java/openjdk/openjdk-8.452_p09-r2.ebuild10
-rw-r--r--dev-java/openjdk/openjdk-8.462_p08.ebuild10
16 files changed, 82 insertions, 86 deletions
diff --git a/dev-java/openjdk-bin/openjdk-bin-11.0.28_p6.ebuild b/dev-java/openjdk-bin/openjdk-bin-11.0.28_p6.ebuild
index 50fcb5bcf9df..297ef4e5c2c1 100644
--- a/dev-java/openjdk-bin/openjdk-bin-11.0.28_p6.ebuild
+++ b/dev-java/openjdk-bin/openjdk-bin-11.0.28_p6.ebuild
@@ -42,7 +42,7 @@ S="${WORKDIR}/jdk-${MY_PV}"
LICENSE="GPL-2-with-classpath-exception"
SLOT=$(ver_cut 1)
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x64-macos"
+KEYWORDS="amd64 ~arm arm64 ppc64 ~x64-macos"
IUSE="alsa cups headless-awt selinux source"
RDEPEND="
diff --git a/dev-java/openjdk-bin/openjdk-bin-21.0.8_p9.ebuild b/dev-java/openjdk-bin/openjdk-bin-21.0.8_p9.ebuild
index e725b7858d28..b278a699d68a 100644
--- a/dev-java/openjdk-bin/openjdk-bin-21.0.8_p9.ebuild
+++ b/dev-java/openjdk-bin/openjdk-bin-21.0.8_p9.ebuild
@@ -42,7 +42,7 @@ S="${WORKDIR}/jdk-${MY_PV}"
LICENSE="GPL-2-with-classpath-exception"
SLOT=$(ver_cut 1)
-KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv"
+KEYWORDS="amd64 arm64 ppc64 ~riscv"
IUSE="alsa cups headless-awt selinux source"
RDEPEND="
diff --git a/dev-java/openjdk-jre-bin/openjdk-jre-bin-11.0.28_p6.ebuild b/dev-java/openjdk-jre-bin/openjdk-jre-bin-11.0.28_p6.ebuild
index 16d8068fcda0..94d954bf64f7 100644
--- a/dev-java/openjdk-jre-bin/openjdk-jre-bin-11.0.28_p6.ebuild
+++ b/dev-java/openjdk-jre-bin/openjdk-jre-bin-11.0.28_p6.ebuild
@@ -21,7 +21,7 @@ SRC_URI="
DESCRIPTION="Prebuilt Java JRE binaries provided by Eclipse Temurin"
HOMEPAGE="https://adoptium.net/"
LICENSE="GPL-2-with-classpath-exception"
-KEYWORDS="~amd64"
+KEYWORDS="amd64"
IUSE="alsa cups headless-awt selinux"
RDEPEND="
diff --git a/dev-java/openjdk-jre-bin/openjdk-jre-bin-17.0.16_p8.ebuild b/dev-java/openjdk-jre-bin/openjdk-jre-bin-17.0.16_p8.ebuild
index 16d8068fcda0..94d954bf64f7 100644
--- a/dev-java/openjdk-jre-bin/openjdk-jre-bin-17.0.16_p8.ebuild
+++ b/dev-java/openjdk-jre-bin/openjdk-jre-bin-17.0.16_p8.ebuild
@@ -21,7 +21,7 @@ SRC_URI="
DESCRIPTION="Prebuilt Java JRE binaries provided by Eclipse Temurin"
HOMEPAGE="https://adoptium.net/"
LICENSE="GPL-2-with-classpath-exception"
-KEYWORDS="~amd64"
+KEYWORDS="amd64"
IUSE="alsa cups headless-awt selinux"
RDEPEND="
diff --git a/dev-java/openjdk-jre-bin/openjdk-jre-bin-21.0.8_p9.ebuild b/dev-java/openjdk-jre-bin/openjdk-jre-bin-21.0.8_p9.ebuild
index b2438417fed5..e2edd9ffe6d4 100644
--- a/dev-java/openjdk-jre-bin/openjdk-jre-bin-21.0.8_p9.ebuild
+++ b/dev-java/openjdk-jre-bin/openjdk-jre-bin-21.0.8_p9.ebuild
@@ -21,7 +21,7 @@ SRC_URI="
DESCRIPTION="Prebuilt Java JRE binaries provided by Eclipse Temurin"
HOMEPAGE="https://adoptium.net/"
LICENSE="GPL-2-with-classpath-exception"
-KEYWORDS="-* ~amd64"
+KEYWORDS="-* amd64"
IUSE="alsa cups headless-awt selinux"
RDEPEND="
diff --git a/dev-java/openjdk-jre-bin/openjdk-jre-bin-8.462_p08.ebuild b/dev-java/openjdk-jre-bin/openjdk-jre-bin-8.462_p08.ebuild
index bba0a7db3329..fa2d0b5f8e92 100644
--- a/dev-java/openjdk-jre-bin/openjdk-jre-bin-8.462_p08.ebuild
+++ b/dev-java/openjdk-jre-bin/openjdk-jre-bin-8.462_p08.ebuild
@@ -21,7 +21,7 @@ SRC_URI="
"
LICENSE="GPL-2-with-classpath-exception"
-KEYWORDS="~amd64"
+KEYWORDS="amd64"
IUSE="alsa cups headless-awt selinux"
diff --git a/dev-java/openjdk/openjdk-11.0.27_p6-r2.ebuild b/dev-java/openjdk/openjdk-11.0.27_p6-r2.ebuild
index ba889036aca2..e9031e5c1cf7 100644
--- a/dev-java/openjdk/openjdk-11.0.27_p6-r2.ebuild
+++ b/dev-java/openjdk/openjdk-11.0.27_p6-r2.ebuild
@@ -55,7 +55,7 @@ LICENSE="GPL-2-with-classpath-exception"
SLOT="${MY_PV%%[.+]*}"
KEYWORDS="amd64 ~arm arm64 ppc64 ~riscv x86"
-IUSE="alsa big-endian cups debug doc examples headless-awt javafx +jbootstrap lto selinux source system-bootstrap systemtap"
+IUSE="alsa big-endian cups debug doc examples headless-awt javafx +jbootstrap selinux source system-bootstrap systemtap"
REQUIRED_USE="
javafx? ( alsa !headless-awt )
@@ -161,6 +161,8 @@ src_prepare() {
}
src_configure() {
+ local myconf=()
+
if ! use system-bootstrap; then
local xpakvar="${ARCH^^}_XPAK"
export JDK_HOME="${WORKDIR}/openjdk-bootstrap-${!xpakvar}"
@@ -175,9 +177,9 @@ src_configure() {
# 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
+ # Strip lto related flags, we rely on --with-jvm-features=link-time-opt
+ # See bug #833097 and bug #833098.
+ tc-is-lto && myconf+=( --with-jvm-features=link-time-opt )
filter-lto
filter-flags -fdevirtualize-at-ltrans
@@ -188,7 +190,7 @@ src_configure() {
# explicitly disabled, the flag will get auto-enabled if pandoc and
# graphviz are detected. pandoc has loads of dependencies anyway.
- local myconf=(
+ myconf+=(
--disable-ccache
--disable-precompiled-headers
--enable-full-docs=no
@@ -218,8 +220,6 @@ src_configure() {
)
! use riscv && myconf+=( --with-jvm-features=shenandoahgc )
- 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
diff --git a/dev-java/openjdk/openjdk-11.0.28_p6.ebuild b/dev-java/openjdk/openjdk-11.0.28_p6.ebuild
index 9c4b8fdfb228..a6195423f363 100644
--- a/dev-java/openjdk/openjdk-11.0.28_p6.ebuild
+++ b/dev-java/openjdk/openjdk-11.0.28_p6.ebuild
@@ -55,7 +55,7 @@ LICENSE="GPL-2-with-classpath-exception"
SLOT="${MY_PV%%[.+]*}"
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86"
-IUSE="alsa big-endian cups debug doc examples headless-awt javafx +jbootstrap lto selinux source system-bootstrap systemtap"
+IUSE="alsa big-endian cups debug doc examples headless-awt javafx +jbootstrap selinux source system-bootstrap systemtap"
REQUIRED_USE="
javafx? ( alsa !headless-awt )
@@ -161,6 +161,8 @@ src_prepare() {
}
src_configure() {
+ local myconf=()
+
if ! use system-bootstrap; then
local xpakvar="${ARCH^^}_XPAK"
export JDK_HOME="${WORKDIR}/openjdk-bootstrap-${!xpakvar}"
@@ -175,9 +177,9 @@ src_configure() {
# 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
+ # Strip lto related flags, we rely on --with-jvm-features=link-time-opt
+ # See bug #833097 and bug #833098.
+ tc-is-lto && myconf+=( --with-jvm-features=link-time-opt )
filter-lto
filter-flags -fdevirtualize-at-ltrans
@@ -188,7 +190,7 @@ src_configure() {
# explicitly disabled, the flag will get auto-enabled if pandoc and
# graphviz are detected. pandoc has loads of dependencies anyway.
- local myconf=(
+ myconf+=(
--disable-ccache
--disable-precompiled-headers
--enable-full-docs=no
@@ -218,8 +220,6 @@ src_configure() {
)
! use riscv && myconf+=( --with-jvm-features=shenandoahgc )
- 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
diff --git a/dev-java/openjdk/openjdk-17.0.15_p6-r2.ebuild b/dev-java/openjdk/openjdk-17.0.15_p6-r2.ebuild
index 547465bf469b..84ba59294f3b 100644
--- a/dev-java/openjdk/openjdk-17.0.15_p6-r2.ebuild
+++ b/dev-java/openjdk/openjdk-17.0.15_p6-r2.ebuild
@@ -55,7 +55,7 @@ LICENSE="GPL-2-with-classpath-exception"
SLOT="${MY_PV%%[.+]*}"
KEYWORDS="amd64 ~arm arm64 ppc64 ~riscv x86"
-IUSE="alsa big-endian cups debug doc examples headless-awt javafx +jbootstrap lto selinux source system-bootstrap systemtap"
+IUSE="alsa big-endian cups debug doc examples headless-awt javafx +jbootstrap selinux source system-bootstrap systemtap"
REQUIRED_USE="
javafx? ( alsa !headless-awt )
@@ -167,6 +167,8 @@ src_prepare() {
}
src_configure() {
+ local myconf=()
+
if has_version dev-java/openjdk:${SLOT}; then
export JDK_HOME=${BROOT}/usr/$(get_libdir)/openjdk-${SLOT}
elif use !system-bootstrap ; then
@@ -189,9 +191,9 @@ src_configure() {
# 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
+ # Strip lto related flags, we rely on --with-jvm-features=link-time-opt
+ # See bug #833097 and bug #833098.
+ tc-is-lto && myconf+=( --with-jvm-features=link-time-opt )
filter-lto
filter-flags -fdevirtualize-at-ltrans
@@ -199,7 +201,7 @@ src_configure() {
# explicitly disabled, the flag will get auto-enabled if pandoc and
# graphviz are detected. pandoc has loads of dependencies anyway.
- local myconf=(
+ myconf+=(
--disable-ccache
--disable-precompiled-headers
--disable-warnings-as-errors
@@ -229,8 +231,6 @@ src_configure() {
$(tc-is-clang && echo "--with-toolchain-type=clang")
)
- 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
diff --git a/dev-java/openjdk/openjdk-17.0.16_p8.ebuild b/dev-java/openjdk/openjdk-17.0.16_p8.ebuild
index 5e382dcd3784..d359fe00ce26 100644
--- a/dev-java/openjdk/openjdk-17.0.16_p8.ebuild
+++ b/dev-java/openjdk/openjdk-17.0.16_p8.ebuild
@@ -55,7 +55,7 @@ LICENSE="GPL-2-with-classpath-exception"
SLOT="${MY_PV%%[.+]*}"
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86"
-IUSE="alsa big-endian cups debug doc examples headless-awt javafx +jbootstrap lto selinux source system-bootstrap systemtap"
+IUSE="alsa big-endian cups debug doc examples headless-awt javafx +jbootstrap selinux source system-bootstrap systemtap"
REQUIRED_USE="
javafx? ( alsa !headless-awt )
@@ -167,6 +167,8 @@ src_prepare() {
}
src_configure() {
+ local myconf=()
+
if has_version dev-java/openjdk:${SLOT}; then
export JDK_HOME=${BROOT}/usr/$(get_libdir)/openjdk-${SLOT}
elif use !system-bootstrap ; then
@@ -189,9 +191,9 @@ src_configure() {
# 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
+ # Strip lto related flags, we rely on --with-jvm-features=link-time-opt
+ # See bug #833097 and bug #833098.
+ tc-is-lto && myconf+=( --with-jvm-features=link-time-opt )
filter-lto
filter-flags -fdevirtualize-at-ltrans
@@ -199,7 +201,7 @@ src_configure() {
# explicitly disabled, the flag will get auto-enabled if pandoc and
# graphviz are detected. pandoc has loads of dependencies anyway.
- local myconf=(
+ myconf+=(
--disable-ccache
--disable-precompiled-headers
--disable-warnings-as-errors
@@ -229,8 +231,6 @@ src_configure() {
$(tc-is-clang && echo "--with-toolchain-type=clang")
)
- 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
diff --git a/dev-java/openjdk/openjdk-21.0.7_p6-r2.ebuild b/dev-java/openjdk/openjdk-21.0.7_p6-r2.ebuild
index dfed81348260..a27284c76795 100644
--- a/dev-java/openjdk/openjdk-21.0.7_p6-r2.ebuild
+++ b/dev-java/openjdk/openjdk-21.0.7_p6-r2.ebuild
@@ -51,7 +51,6 @@ LICENSE="GPL-2-with-classpath-exception"
SLOT="${MY_PV%%[.+]*}"
KEYWORDS="amd64 arm64 ppc64 ~riscv ~x86"
-# 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="
@@ -165,6 +164,8 @@ src_prepare() {
}
src_configure() {
+ local myconf=()
+
if has_version dev-java/openjdk:${SLOT}; then
export JDK_HOME=${BROOT}/usr/$(get_libdir)/openjdk-${SLOT}
elif use !system-bootstrap ; then
@@ -187,9 +188,12 @@ src_configure() {
# 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
+ # Strip lto related flags, we rely on --with-jvm-features=link-time-opt
+ # See bug #833097 and bug #833098.
+ #
+ # .. but because of -Werror=odr (bug #916735), we disable it
+ # entirely for now.
+ #tc-is-lto && myconf+=( --with-jvm-features=link-time-opt )
filter-lto
filter-flags -fdevirtualize-at-ltrans
@@ -197,7 +201,7 @@ src_configure() {
# explicitly disabled, the flag will get auto-enabled if pandoc and
# graphviz are detected. pandoc has loads of dependencies anyway.
- local myconf=(
+ myconf+=(
--disable-ccache
--disable-precompiled-headers
--disable-warnings-as-errors
@@ -230,12 +234,6 @@ src_configure() {
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
diff --git a/dev-java/openjdk/openjdk-21.0.8_p9.ebuild b/dev-java/openjdk/openjdk-21.0.8_p9.ebuild
index 19c3c93a5ebf..7d8f0b1f8b42 100644
--- a/dev-java/openjdk/openjdk-21.0.8_p9.ebuild
+++ b/dev-java/openjdk/openjdk-21.0.8_p9.ebuild
@@ -51,7 +51,6 @@ LICENSE="GPL-2-with-classpath-exception"
SLOT="${MY_PV%%[.+]*}"
KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86"
-# 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="
@@ -165,6 +164,8 @@ src_prepare() {
}
src_configure() {
+ local myconf=()
+
if has_version dev-java/openjdk:${SLOT}; then
export JDK_HOME=${BROOT}/usr/$(get_libdir)/openjdk-${SLOT}
elif use !system-bootstrap ; then
@@ -187,9 +188,12 @@ src_configure() {
# 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
+ # Strip lto related flags, we rely on --with-jvm-features=link-time-opt
+ # See bug #833097 and bug #833098.
+ #
+ # .. but because of -Werror=odr (bug #916735), we disable it
+ # entirely for now.
+ #tc-is-lto && myconf+=( --with-jvm-features=link-time-opt )
filter-lto
filter-flags -fdevirtualize-at-ltrans
@@ -197,7 +201,7 @@ src_configure() {
# explicitly disabled, the flag will get auto-enabled if pandoc and
# graphviz are detected. pandoc has loads of dependencies anyway.
- local myconf=(
+ myconf+=(
--disable-ccache
--disable-precompiled-headers
--disable-warnings-as-errors
@@ -230,12 +234,6 @@ src_configure() {
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
diff --git a/dev-java/openjdk/openjdk-25_p31.ebuild b/dev-java/openjdk/openjdk-25_p31.ebuild
index e5cab96c9ddb..7d06fee39f01 100644
--- a/dev-java/openjdk/openjdk-25_p31.ebuild
+++ b/dev-java/openjdk/openjdk-25_p31.ebuild
@@ -52,7 +52,6 @@ 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="
@@ -166,6 +165,8 @@ src_prepare() {
}
src_configure() {
+ local myconf=()
+
if has_version dev-java/openjdk:${SLOT}; then
export JDK_HOME=${BROOT}/usr/$(get_libdir)/openjdk-${SLOT}
elif use !system-bootstrap ; then
@@ -185,9 +186,12 @@ src_configure() {
# 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
+ # Strip lto related flags, we rely on --with-jvm-features=link-time-opt
+ # See bug #833097 and bug #833098.
+ #
+ # .. but because of -Werror=odr (bug #916735), we disable it
+ # entirely for now.
+ #tc-is-lto && myconf+=( --with-jvm-features=link-time-opt )
filter-lto
filter-flags -fdevirtualize-at-ltrans
@@ -195,7 +199,7 @@ src_configure() {
# explicitly disabled, the flag will get auto-enabled if pandoc and
# graphviz are detected. pandoc has loads of dependencies anyway.
- local myconf=(
+ myconf+=(
--disable-ccache
--disable-precompiled-headers
--disable-warnings-as-errors
@@ -228,12 +232,6 @@ src_configure() {
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
diff --git a/dev-java/openjdk/openjdk-26_p6.ebuild b/dev-java/openjdk/openjdk-26_p6.ebuild
index 101993eb7a93..f0a842aebc24 100644
--- a/dev-java/openjdk/openjdk-26_p6.ebuild
+++ b/dev-java/openjdk/openjdk-26_p6.ebuild
@@ -52,7 +52,6 @@ LICENSE="GPL-2-with-classpath-exception"
SLOT="${MY_PV%%[.+]*}"
# KEYWORDS="" # Not an LTS candidate
-# 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="
@@ -167,6 +166,8 @@ src_prepare() {
}
src_configure() {
+ local myconf=()
+
if has_version dev-java/openjdk:25; then
export JDK_HOME=${BROOT}/usr/$(get_libdir)/openjdk-25
elif has_version dev-java/openjdk:${SLOT}; then
@@ -188,9 +189,12 @@ src_configure() {
# 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
+ # Strip lto related flags, we rely on --with-jvm-features=link-time-opt
+ # See bug #833097 and bug #833098.
+ #
+ # .. but because of -Werror=odr (bug #916735), we disable it
+ # entirely for now.
+ #tc-is-lto && myconf+=( --with-jvm-features=link-time-opt )
filter-lto
filter-flags -fdevirtualize-at-ltrans
@@ -198,7 +202,7 @@ src_configure() {
# explicitly disabled, the flag will get auto-enabled if pandoc and
# graphviz are detected. pandoc has loads of dependencies anyway.
- local myconf=(
+ myconf+=(
--disable-ccache
--disable-precompiled-headers
--disable-warnings-as-errors
@@ -231,12 +235,6 @@ src_configure() {
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
diff --git a/dev-java/openjdk/openjdk-8.452_p09-r2.ebuild b/dev-java/openjdk/openjdk-8.452_p09-r2.ebuild
index d925e84895ce..70d08bf78182 100644
--- a/dev-java/openjdk/openjdk-8.452_p09-r2.ebuild
+++ b/dev-java/openjdk/openjdk-8.452_p09-r2.ebuild
@@ -172,6 +172,8 @@ src_prepare() {
}
src_configure() {
+ local myconf=()
+
if ! use system-bootstrap; then
local xpakvar="${ARCH^^}_XPAK"
export JDK_HOME="${WORKDIR}/openjdk-bootstrap-${!xpakvar}"
@@ -189,9 +191,9 @@ src_configure() {
# Strip some flags users may set, but should not. #818502
filter-flags -fexceptions
- # Strip lto related flags, no support in this version.
- # https://bugs.gentoo.org/833097
- # https://bugs.gentoo.org/833098
+ # Strip lto related flags, we rely on --with-jvm-features=link-time-opt
+ # See bug #833097 and bug #833098.
+ tc-is-lto && myconf+=( --with-jvm-features=link-time-opt )
filter-lto
filter-flags -fdevirtualize-at-ltrans
@@ -200,7 +202,7 @@ src_configure() {
tc-export_build_env CC CXX PKG_CONFIG STRIP
- local myconf=(
+ myconf+=(
--disable-ccache
--disable-freetype-bundling
--disable-precompiled-headers
diff --git a/dev-java/openjdk/openjdk-8.462_p08.ebuild b/dev-java/openjdk/openjdk-8.462_p08.ebuild
index c229bd230c76..88b4d42891e3 100644
--- a/dev-java/openjdk/openjdk-8.462_p08.ebuild
+++ b/dev-java/openjdk/openjdk-8.462_p08.ebuild
@@ -172,6 +172,8 @@ src_prepare() {
}
src_configure() {
+ local myconf=()
+
if ! use system-bootstrap; then
local xpakvar="${ARCH^^}_XPAK"
export JDK_HOME="${WORKDIR}/openjdk-bootstrap-${!xpakvar}"
@@ -189,9 +191,9 @@ src_configure() {
# Strip some flags users may set, but should not. #818502
filter-flags -fexceptions
- # Strip lto related flags, no support in this version.
- # https://bugs.gentoo.org/833097
- # https://bugs.gentoo.org/833098
+ # Strip lto related flags, we rely on --with-jvm-features=link-time-opt
+ # See bug #833097 and bug #833098.
+ tc-is-lto && myconf+=( --with-jvm-features=link-time-opt )
filter-lto
filter-flags -fdevirtualize-at-ltrans
@@ -200,7 +202,7 @@ src_configure() {
tc-export_build_env CC CXX PKG_CONFIG STRIP
- local myconf=(
+ myconf+=(
--disable-ccache
--disable-freetype-bundling
--disable-precompiled-headers