Gentoo Archives: gentoo-commits

From: Georgy Yakovlev <gyakovlev@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/rust/
Date: Thu, 20 Jan 2022 04:36:49
Message-Id: 1642653398.bff66eedb4ae530ef21187d617daeba5472320a1.gyakovlev@gentoo
1 commit: bff66eedb4ae530ef21187d617daeba5472320a1
2 Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jan 20 04:32:00 2022 +0000
4 Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 20 04:36:38 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bff66eed
7
8 dev-lang/rust: pass -fcf-protection=none on i586
9
10 while building for i586 targets we need to explicitly opt out of cet
11 in internal llvm build.
12 we don't even support bootstrapping this target right now as there is no
13 self-hosting version, but may support in the future via our own tarball.
14
15 Bug: https://bugs.gentoo.org/741708
16 Issue: https://github.com/rust-lang/rust/issues/93059
17 Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>
18
19 dev-lang/rust/rust-1.58.0.ebuild | 8 ++++++++
20 1 file changed, 8 insertions(+)
21
22 diff --git a/dev-lang/rust/rust-1.58.0.ebuild b/dev-lang/rust/rust-1.58.0.ebuild
23 index 2b3cee83c811..05df5cfc5f9d 100644
24 --- a/dev-lang/rust/rust-1.58.0.ebuild
25 +++ b/dev-lang/rust/rust-1.58.0.ebuild
26 @@ -314,6 +314,14 @@ src_configure() {
27 targets = "${LLVM_TARGETS// /;}"
28 experimental-targets = ""
29 link-shared = $(toml_usex system-llvm)
30 + $(case "${rust_target}" in
31 + i586-*-linux-*)
32 + # https://github.com/rust-lang/rust/issues/93059
33 + echo 'cflags = "-fcf-protection=none"'
34 + echo 'cxxflags = "-fcf-protection=none"'
35 + echo 'ldflags = "-fcf-protection=none"'
36 + ;;
37 + esac)
38 [build]
39 build-stage = 2
40 test-stage = 2