summaryrefslogtreecommitdiff
path: root/dev-java
diff options
context:
space:
mode:
Diffstat (limited to 'dev-java')
-rw-r--r--dev-java/Manifest.gzbin57499 -> 57499 bytes
-rw-r--r--dev-java/openjdk/Manifest8
-rw-r--r--dev-java/openjdk/metadata.xml1
-rw-r--r--dev-java/openjdk/openjdk-11.0.18_p10.ebuild10
-rw-r--r--dev-java/openjdk/openjdk-17.0.6_p10.ebuild10
-rw-r--r--dev-java/openjdk/openjdk-8.362_p09.ebuild6
6 files changed, 29 insertions, 6 deletions
diff --git a/dev-java/Manifest.gz b/dev-java/Manifest.gz
index 7b17ffb099f1..9fee0f5ee2d6 100644
--- a/dev-java/Manifest.gz
+++ b/dev-java/Manifest.gz
Binary files differ
diff --git a/dev-java/openjdk/Manifest b/dev-java/openjdk/Manifest
index bc4bb7f8e7da..8994d2f123a3 100644
--- a/dev-java/openjdk/Manifest
+++ b/dev-java/openjdk/Manifest
@@ -13,7 +13,7 @@ DIST openjdk-bootstrap-17.0.1_p12-ppc64.tar.xz 116557680 BLAKE2B d20e45a5a76e30e
DIST openjdk-bootstrap-17.0.1_p12-x86.tar.xz 111479904 BLAKE2B 17d33f8ee81c2846f417d8e7cd1429eb611e916a6b375c76127179dc6afc55b0254248360c892ce37a178fd553934d952ec8955ff5d0613eb66678b8ecefe917 SHA512 094bcc960801e5fd7e1c966c8101c195ac7fa5e222d9c8e79ca64f8a3e6812613c17a0356211e7dd831325fa11af88cc22ed56c434d65504f18dd4f4ceaedfdf
DIST openjdk-bootstrap-17.0.2_p8-arm64-musl.tar.xz 115353932 BLAKE2B 0cc4ab078085f094bbcc65448458d98a0f521e3b754c5118b1b4f957cfa00c24e896c811c2a477822c469ffcfe0de1ad6a8d0b7db23b0b09ae3b459eaf8c4fc8 SHA512 e30acd6c64a0095f4203129ecf2cff4c6b4293bc017457465d3abb746d280a2f5d89028eed22f7f3d236890d047149c7aa257e3b49593d7a6ab4dd6b777a7c26
DIST openjdk-bootstrap-17.0.3_p7-riscv.tar.xz 113344052 BLAKE2B 69ae326c600ecf1840a0874b1e26545779434b979e195a3bc7975615f873cd9ffce324f291e56a2800edc304447845baec774b2a08964afde274bd8e0dd3f704 SHA512 4a483faa32b26758f6fae605fdb3d3b77814c627a3a560e91ca88e2d36a88543a53f019a59b5a6456b87ca671e8b7129d5766210bd5cd52125cb3a040ec2a23f
-EBUILD openjdk-11.0.18_p10.ebuild 8450 BLAKE2B 7e09d9697a4e06355e51aeae20e3cee2a1d71a48d95cc4e94bfc99469039dbb2814f03e2cfab05f10b47342155dedd84d8be97d35739c0afbaa160e969a291b9 SHA512 6be24f35715c3dc560515e20e7d06ffcae0c76bf2c9bc1dbc3b4d48f5d2c1a2060986a4320646579df1b177dbbf54698ed7bff23c6e7c19c354a82a41e5b2402
-EBUILD openjdk-17.0.6_p10.ebuild 9232 BLAKE2B ab1a75c40107ae7a7a33bb8683837124e111f165b99c560e7b85e560e2349d7b2d8406b9c3777a58e32999e4b78792c0685cd0a028a507bbfd2b1acf92e14f24 SHA512 fe52a9c427ea0649e275e8f78f45dda7094ae31566d6ae6a2061ac183bb6eed65651d5f05ed935997043b2128dc48bcb34fcceb69defad8a1db1a46e59c7d604
-EBUILD openjdk-8.362_p09.ebuild 6208 BLAKE2B cf5e7a57c9084f33a5128a2e1bf274ae7a77225f3b2e13a643b60b06b083d8e3987d01990189c9a7fb69a6a7d05d231d30c511e1309fd01fa316ca136c9e2e48 SHA512 46642406d10efab7293ecda4449b72f0c0908b8d2726281e9040425cec69b1582a79f6dc87b7fd4c3d60c771a5618f9c9646849860161369b793228438d044da
-MISC metadata.xml 1607 BLAKE2B 166efc846c7aedb0e25b7479bc2d804079ea52a1fddbf5f1bb8e463c777a79b5cebd901e9c897e5135140ba2e5067bec7a02aedf5d15da12bd4063505a711d48 SHA512 c54bc02d391ecd8ab2fda8b8a37b0e28bbddf71d821ade63a1b353eb02bf8fa92983f42a4d470ada6d8d835e0bf012aea8409b6f6fd3f4b25c86949a35167eba
+EBUILD openjdk-11.0.18_p10.ebuild 8729 BLAKE2B 166109710e3241e30fb09ec5457ff3705b121fffcfe4d518bb2309f5ad87f341b3eba06b86783a35fdb00e02503808c99185255e29bc798abaab5a059fbe6bdf SHA512 8f8d02bd00801e02d919709f02bdadf9a7a6dd1e0b5137bad3ab8884469a7e3fc61c2f360ce115f9171d7a119195adaf508d0097760672875bfe6ec8db7edbf0
+EBUILD openjdk-17.0.6_p10.ebuild 9511 BLAKE2B 3274358c03e26b9a9dd89dcb19439ceee2a02ee65d027bbc9528bbdba2f3b7f15fa46158c0e0a2137c83c31fadf8c1a78cfd23188fd7b474903d1271bb3730f6 SHA512 0f0016aa3564480ff81a4d7a128b4c3a52f5bc77b04357d339db6431675d6d7fb4d4c4ca8ff4c533ad91f8a6bb3094b88aeafd4e61a7897dd256164cbdfcf898
+EBUILD openjdk-8.362_p09.ebuild 6395 BLAKE2B ce533353890336ba2edef69f6ca595c6c5fc69473e5ec8e5cd365ff53bdb37037cc6f56b88e0aa207e5d9596a54b84b844c2f5e07ec12c292981eaefd9a4fb04 SHA512 18b46306f1f7b214bc3e766f4fbc10f1d87b896fcf1e45b8d4b57567d8b02b8f4f4a2b96f6b5a1e080de7b0165ad5b65b1b14960caffef4941f53e09b1ee0be0
+MISC metadata.xml 1669 BLAKE2B 3ec4792eb15f531ed5aa6358270b8d4173e6bab43e7bc894791ffeec8374e88106d574e8a0676d5bd6c8f55c484f2ec57f6439e7bd4897416fbf700b20486de7 SHA512 d11e6595c1929fdc7a1199a907b7b45d6f893c56b4fa2f4a9fa2691b1a3b9106121d46c7c3fc722fbea9605e4270c515793da825257e93a03ccee787c5a01966
diff --git a/dev-java/openjdk/metadata.xml b/dev-java/openjdk/metadata.xml
index 367d2eb36d3e..201e1fe75f50 100644
--- a/dev-java/openjdk/metadata.xml
+++ b/dev-java/openjdk/metadata.xml
@@ -23,6 +23,7 @@
<flag name="javafx" restrict="&lt;=dev-java/openjdk-9">Provide JavaFX support via <pkg>dev-java/openjfx</pkg></flag>
<flag name="javafx" restrict="&gt;=dev-java/openjdk-11">Import OpenJFX modules at build time, via <pkg>dev-java/openjfx</pkg></flag>
<flag name="jbootstrap">Build OpenJDK twice, the second time using the result of the first</flag>
+ <flag name="lto">Enable Link Time Optimization (LTO)</flag>
<flag name="source">Install JVM sources</flag>
<flag name="system-bootstrap">Bootstrap using installed openjdk</flag>
<flag name="systemtap" restrict="&gt;=dev-java/openjdk-11">Enable SystemTAP/DTrace tracing</flag>
diff --git a/dev-java/openjdk/openjdk-11.0.18_p10.ebuild b/dev-java/openjdk/openjdk-11.0.18_p10.ebuild
index b2eafe9b1e68..8f67061d2ac5 100644
--- a/dev-java/openjdk/openjdk-11.0.18_p10.ebuild
+++ b/dev-java/openjdk/openjdk-11.0.18_p10.ebuild
@@ -51,7 +51,7 @@ SRC_URI="
LICENSE="GPL-2-with-classpath-exception"
KEYWORDS="amd64 ~arm arm64 ppc64 ~riscv x86"
-IUSE="alsa big-endian cups debug doc examples headless-awt javafx +jbootstrap selinux source system-bootstrap systemtap"
+IUSE="alsa big-endian cups debug doc examples headless-awt javafx +jbootstrap lto selinux source system-bootstrap systemtap"
REQUIRED_USE="
javafx? ( alsa !headless-awt )
@@ -173,6 +173,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
+ filter-flags '-flto*'
+ 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.
@@ -207,6 +213,8 @@ 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.6_p10.ebuild b/dev-java/openjdk/openjdk-17.0.6_p10.ebuild
index a4fedb98ad08..328018b6e7c8 100644
--- a/dev-java/openjdk/openjdk-17.0.6_p10.ebuild
+++ b/dev-java/openjdk/openjdk-17.0.6_p10.ebuild
@@ -54,7 +54,7 @@ SRC_URI="
LICENSE="GPL-2-with-classpath-exception"
KEYWORDS="amd64 ~arm arm64 ppc64 ~riscv x86"
-IUSE="alsa big-endian cups debug doc examples headless-awt javafx +jbootstrap selinux source system-bootstrap systemtap"
+IUSE="alsa big-endian cups debug doc examples headless-awt javafx +jbootstrap lto selinux source system-bootstrap systemtap"
REQUIRED_USE="
javafx? ( alsa !headless-awt )
@@ -191,6 +191,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
+ filter-flags '-flto*'
+ 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.
@@ -227,6 +233,8 @@ src_configure() {
use riscv && myconf+=( --with-boot-jdk-jvmargs="-Djdk.lang.Process.launchMechanism=vfork" )
+ 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.362_p09.ebuild b/dev-java/openjdk/openjdk-8.362_p09.ebuild
index 36aa8a4c97ae..2da4bca4fce1 100644
--- a/dev-java/openjdk/openjdk-8.362_p09.ebuild
+++ b/dev-java/openjdk/openjdk-8.362_p09.ebuild
@@ -132,6 +132,12 @@ 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
+ filter-flags '-flto*'
+ filter-flags -fdevirtualize-at-ltrans
+
tc-export_build_env CC CXX PKG_CONFIG STRIP
local myconf=(