From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 0F88D158087 for ; Thu, 20 Jan 2022 04:36:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0B32DE0788; Thu, 20 Jan 2022 04:36:48 +0000 (UTC) Received: from smtp.gentoo.org (mail.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 pigeon.gentoo.org (Postfix) with ESMTPS id 2E93EE0788 for ; Thu, 20 Jan 2022 04:36:47 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 113D3342E87 for ; Thu, 20 Jan 2022 04:36:46 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6B9ED29B for ; Thu, 20 Jan 2022 04:36:44 +0000 (UTC) From: "Georgy Yakovlev" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Georgy Yakovlev" Message-ID: <1642653398.bff66eedb4ae530ef21187d617daeba5472320a1.gyakovlev@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/rust/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-lang/rust/rust-1.58.0.ebuild X-VCS-Directories: dev-lang/rust/ X-VCS-Committer: gyakovlev X-VCS-Committer-Name: Georgy Yakovlev X-VCS-Revision: bff66eedb4ae530ef21187d617daeba5472320a1 X-VCS-Branch: master Date: Thu, 20 Jan 2022 04:36: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: 536865f1-38d8-4831-845c-b0ebc50d948e X-Archives-Hash: af4fa499e785f938d2f9285c01597900 commit: bff66eedb4ae530ef21187d617daeba5472320a1 Author: Georgy Yakovlev gentoo org> AuthorDate: Thu Jan 20 04:32:00 2022 +0000 Commit: Georgy Yakovlev gentoo org> CommitDate: Thu Jan 20 04:36:38 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bff66eed dev-lang/rust: pass -fcf-protection=none on i586 while building for i586 targets we need to explicitly opt out of cet in internal llvm build. we don't even support bootstrapping this target right now as there is no self-hosting version, but may support in the future via our own tarball. Bug: https://bugs.gentoo.org/741708 Issue: https://github.com/rust-lang/rust/issues/93059 Signed-off-by: Georgy Yakovlev gentoo.org> dev-lang/rust/rust-1.58.0.ebuild | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/dev-lang/rust/rust-1.58.0.ebuild b/dev-lang/rust/rust-1.58.0.ebuild index 2b3cee83c811..05df5cfc5f9d 100644 --- a/dev-lang/rust/rust-1.58.0.ebuild +++ b/dev-lang/rust/rust-1.58.0.ebuild @@ -314,6 +314,14 @@ src_configure() { targets = "${LLVM_TARGETS// /;}" experimental-targets = "" link-shared = $(toml_usex system-llvm) + $(case "${rust_target}" in + i586-*-linux-*) + # https://github.com/rust-lang/rust/issues/93059 + echo 'cflags = "-fcf-protection=none"' + echo 'cxxflags = "-fcf-protection=none"' + echo 'ldflags = "-fcf-protection=none"' + ;; + esac) [build] build-stage = 2 test-stage = 2