Gentoo Archives: gentoo-commits

From: Alfredo Tupone <tupone@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/gnat-gpl/, dev-lang/gnat-gpl/files/
Date: Sat, 01 Jan 2022 21:44:11
Message-Id: 1641073423.eb143fae3bca40c52cfbf6f96b9a439dc26b0976.tupone@gentoo
1 commit: eb143fae3bca40c52cfbf6f96b9a439dc26b0976
2 Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jan 1 21:43:43 2022 +0000
4 Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
5 CommitDate: Sat Jan 1 21:43:43 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eb143fae
7
8 dev-lang/gnat-gpl: fix cet detection
9
10 Closes: https://bugs.gentoo.org/830345
11 Package-Manager: Portage-3.0.28, Repoman-3.0.3
12 Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>
13
14 dev-lang/gnat-gpl/files/gnat-gpl-2021-gentoo.patch | 10 ++++++++++
15 dev-lang/gnat-gpl/gnat-gpl-2021-r1.ebuild | 7 ++++++-
16 2 files changed, 16 insertions(+), 1 deletion(-)
17
18 diff --git a/dev-lang/gnat-gpl/files/gnat-gpl-2021-gentoo.patch b/dev-lang/gnat-gpl/files/gnat-gpl-2021-gentoo.patch
19 index 3caa2a6d996e..2bfc54c551a9 100644
20 --- a/dev-lang/gnat-gpl/files/gnat-gpl-2021-gentoo.patch
21 +++ b/dev-lang/gnat-gpl/files/gnat-gpl-2021-gentoo.patch
22 @@ -39,3 +39,13 @@
23 + %{fdump-scos:-fpreserve-decisions-generic}\
24 %{fprofile-arcs|fprofile-generate*|coverage:\
25 - %{!fprofile-update=singel:\
26 +--- a/gcc-10-2021-20210519-19A74-src/config/cet.m4 2022-01-01 11:18:09.663425422 +0100
27 ++++ b/gcc-10-2021-20210519-19A74-src/config/cet.m4 2022-01-01 11:18:14.809345911 +0100
28 +@@ -62,7 +62,6 @@
29 + i[[34567]]86-*-linux* | x86_64-*-linux*)
30 + may_have_cet=yes
31 + save_CFLAGS="$CFLAGS"
32 +- CFLAGS="$CFLAGS -fcf-protection"
33 + case "$enable_cet" in
34 + auto)
35 + # Check if target supports multi-byte NOPs
36
37 diff --git a/dev-lang/gnat-gpl/gnat-gpl-2021-r1.ebuild b/dev-lang/gnat-gpl/gnat-gpl-2021-r1.ebuild
38 index 3502c2c009fd..60a6e2908ead 100644
39 --- a/dev-lang/gnat-gpl/gnat-gpl-2021-r1.ebuild
40 +++ b/dev-lang/gnat-gpl/gnat-gpl-2021-r1.ebuild
41 @@ -1,4 +1,4 @@
42 -# Copyright 1999-2021 Gentoo Authors
43 +# Copyright 1999-2022 Gentoo Authors
44 # Distributed under the terms of the GNU General Public License v2
45
46 EAPI=7
47 @@ -87,6 +87,11 @@ src_prepare() {
48 ln -s /usr/bin/$CHOST-ld \
49 "${WORKDIR}"/${BTSTRP}/libexec/gcc/x86_64-pc-linux-gnu/4.7.4/ld \
50 || die
51 + rm "${WORKDIR}"/${BTSTRP}/libexec/gcc/x86_64-pc-linux-gnu/4.7.4/as \
52 + || die
53 + ln -s /usr/bin/$CHOST-as \
54 + "${WORKDIR}"/${BTSTRP}/libexec/gcc/x86_64-pc-linux-gnu/4.7.4/as \
55 + || die
56 fi
57
58 CC=${GCC}