From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 9066E1581EE for ; Thu, 03 Apr 2025 15:26:56 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 7C5DF3431BE for ; Thu, 03 Apr 2025 15:26:56 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 9DF831104B8; Thu, 03 Apr 2025 15:26:47 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 942A91104B8 for ; Thu, 03 Apr 2025 15:26:47 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5068D3431B7 for ; Thu, 03 Apr 2025 15:26:47 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 42A8B2809 for ; Thu, 03 Apr 2025 15:26:44 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1743693960.2c9bffc2f3d272ebc5e3b3d3ad581c05cbdd67a9.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-java/openjdk/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-java/openjdk/openjdk-8.442_p06.ebuild X-VCS-Directories: dev-java/openjdk/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 2c9bffc2f3d272ebc5e3b3d3ad581c05cbdd67a9 X-VCS-Branch: master Date: Thu, 03 Apr 2025 15:26:44 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 2abfd98f-1002-4436-a4de-841dbe8a3c45 X-Archives-Hash: 2f2e346e60db7dc117c50fb66e74b166 commit: 2c9bffc2f3d272ebc5e3b3d3ad581c05cbdd67a9 Author: Z. Liu gmail com> AuthorDate: Tue Feb 25 06:27:32 2025 +0000 Commit: Sam James gentoo org> CommitDate: Thu Apr 3 15:26:00 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2c9bffc2 dev-java/openjdk: force gcc for openjdk 8 despite we have workaround "-std=gnu++14", but openjdk 8 doesn't fully respect CXXFLAGS in various places and that patching that in now is a bit risky given JDK 8 is so old. e.g., see hotspot/make/linux/makefiles/adlc.make, CXXFLAGS defined by: 61 # set flags for adlc compilation 62 CXXFLAGS = $(SYSDEFS) $(INCLUDES) 63 64 # Force assertions on. 65 CXXFLAGS += -DASSERT Bug: https://bugs.gentoo.org/918655 Signed-off-by: Z. Liu gmail.com> Closes: https://github.com/gentoo/gentoo/pull/40746 Signed-off-by: Sam James gentoo.org> dev-java/openjdk/openjdk-8.442_p06.ebuild | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/dev-java/openjdk/openjdk-8.442_p06.ebuild b/dev-java/openjdk/openjdk-8.442_p06.ebuild index a7cad0a4da65..2311722c03b2 100644 --- a/dev-java/openjdk/openjdk-8.442_p06.ebuild +++ b/dev-java/openjdk/openjdk-8.442_p06.ebuild @@ -96,6 +96,7 @@ DEPEND=" BDEPEND=" virtual/pkgconfig + sys-devel/gcc:* " PDEPEND="javafx? ( dev-java/openjfx:${SLOT} )" @@ -156,6 +157,15 @@ src_prepare() { hotspot/make/linux/makefiles/gcc.make || die chmod +x configure || die + + # Force gcc because build failed with modern clang, #918655 + if ! tc-is-gcc; then + ewarn "openjdk/8 can be built with gcc only." + ewarn "Ignoring CC=$(tc-getCC) and forcing ${CHOST}-gcc" + export CC=${CHOST}-gcc + export CXX=${CHOST}-g++ + tc-is-gcc || die "tc-is-gcc failed in spite of CC=${CC}" + fi } src_configure() {