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 C70C01580E0 for ; Tue, 10 Jun 2025 17:19:10 +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) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id AD3BE33FECD for ; Tue, 10 Jun 2025 17:19:10 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id A287B1103DD; Tue, 10 Jun 2025 17:19:09 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 9CE2E1103DD for ; Tue, 10 Jun 2025 17:19:09 +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) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4CF1533FECD for ; Tue, 10 Jun 2025 17:19:09 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E21A664E for ; Tue, 10 Jun 2025 17:19:07 +0000 (UTC) From: "Joonas Niilola" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Joonas Niilola" Message-ID: <1749575887.9dd4853cd6c55934e3b13a019be3d62fe5c6d1ea.juippis@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/rust/, dev-lang/rust/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-lang/rust/files/rust-1.86.0-issue-139372-bgo-953956-fix-hardcoded-gnu-linker-flags.patch dev-lang/rust/rust-1.86.0-r2.ebuild X-VCS-Directories: dev-lang/rust/ dev-lang/rust/files/ X-VCS-Committer: juippis X-VCS-Committer-Name: Joonas Niilola X-VCS-Revision: 9dd4853cd6c55934e3b13a019be3d62fe5c6d1ea X-VCS-Branch: master Date: Tue, 10 Jun 2025 17:19:07 +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: 4b9b06f4-30d2-463e-8ad2-09111aba565d X-Archives-Hash: d49aa0e4216a94d2cf93e8417f910080 commit: 9dd4853cd6c55934e3b13a019be3d62fe5c6d1ea Author: Joonas Niilola gentoo org> AuthorDate: Tue Jun 10 17:18:07 2025 +0000 Commit: Joonas Niilola gentoo org> CommitDate: Tue Jun 10 17:18:07 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9dd4853c dev-lang/rust: fix building '+wasm' on clang/lld system on 1.86.0 Closes: https://bugs.gentoo.org/953956 Signed-off-by: Joonas Niilola gentoo.org> ...372-bgo-953956-fix-hardcoded-gnu-linker-flags.patch | 18 ++++++++++++++++++ dev-lang/rust/rust-1.86.0-r2.ebuild | 2 ++ 2 files changed, 20 insertions(+) diff --git a/dev-lang/rust/files/rust-1.86.0-issue-139372-bgo-953956-fix-hardcoded-gnu-linker-flags.patch b/dev-lang/rust/files/rust-1.86.0-issue-139372-bgo-953956-fix-hardcoded-gnu-linker-flags.patch new file mode 100644 index 000000000000..11d7738f2ee1 --- /dev/null +++ b/dev-lang/rust/files/rust-1.86.0-issue-139372-bgo-953956-fix-hardcoded-gnu-linker-flags.patch @@ -0,0 +1,18 @@ +diff '--color=auto' -Nuar rustc-1.86.0-src.orig/src/bootstrap/src/utils/helpers.rs rustc-1.86.0-src/src/bootstrap/src/utils/helpers.rs +--- rustc-1.86.0-src.orig/src/bootstrap/src/utils/helpers.rs 2025-03-31 22:37:24.000000000 +0100 ++++ rustc-1.86.0-src/src/bootstrap/src/utils/helpers.rs 2025-04-17 12:31:37.651607535 +0100 +@@ -451,12 +451,12 @@ + if !builder.is_lld_direct_linker(target) && builder.config.lld_mode.is_used() { + match builder.config.lld_mode { + LldMode::External => { +- args.push("-Clinker-flavor=gnu-lld-cc".to_string()); ++ args.push("-Zlinker-features=+lld".to_string()); + // FIXME(kobzol): remove this flag once MCP510 gets stabilized + args.push("-Zunstable-options".to_string()); + } + LldMode::SelfContained => { +- args.push("-Clinker-flavor=gnu-lld-cc".to_string()); ++ args.push("-Zlinker-features=+lld".to_string()); + args.push("-Clink-self-contained=+linker".to_string()); + // FIXME(kobzol): remove this flag once MCP510 gets stabilized + args.push("-Zunstable-options".to_string()); diff --git a/dev-lang/rust/rust-1.86.0-r2.ebuild b/dev-lang/rust/rust-1.86.0-r2.ebuild index 9ca6ee0b6b79..e15141928083 100644 --- a/dev-lang/rust/rust-1.86.0-r2.ebuild +++ b/dev-lang/rust/rust-1.86.0-r2.ebuild @@ -316,6 +316,8 @@ src_prepare() { fi default + + eapply "${FILESDIR}"/rust-1.86.0-issue-139372-bgo-953956-fix-hardcoded-gnu-linker-flags.patch } src_configure() {