Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/, sys-devel/gcc/files/, dev-lang/gnat-gpl/files/
Date: Wed, 19 Aug 2020 08:29:02
Message-Id: 1597825575.eaa3057f4602c72ef847775109663cd03578d0f9.slyfox@gentoo
1 commit: eaa3057f4602c72ef847775109663cd03578d0f9
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Wed Aug 19 08:26:15 2020 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 19 08:26:15 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eaa3057f
7
8 toolchain.eclass: stop installing /usr/bin/c89 and /usr/bin/c99
9
10 Ownership of /usr/bin/c89 and /usr/bin/c99 was switched to
11 sys-devel/gcc-config-2.3.1.
12
13 Closes: https://bugs.gentoo.org/728722
14 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
15
16 dev-lang/gnat-gpl/files/c89 | 20 --------------------
17 dev-lang/gnat-gpl/files/c99 | 21 ---------------------
18 eclass/toolchain.eclass | 15 ---------------
19 sys-devel/gcc/files/c89 | 20 --------------------
20 sys-devel/gcc/files/c99 | 21 ---------------------
21 5 files changed, 97 deletions(-)
22
23 diff --git a/dev-lang/gnat-gpl/files/c89 b/dev-lang/gnat-gpl/files/c89
24 deleted file mode 100644
25 index cee0325f50f..00000000000
26 --- a/dev-lang/gnat-gpl/files/c89
27 +++ /dev/null
28 @@ -1,20 +0,0 @@
29 -#! /bin/sh
30 -
31 -# Call the appropriate C compiler with options to accept ANSI/ISO C
32 -# The following options are the same (as of gcc-2.95):
33 -# -ansi
34 -# -std=c89
35 -# -std=iso9899:1990
36 -
37 -for i; do
38 - case "$i" in
39 - -ansi|-std=c89|-std=iso9899:1990)
40 - ;;
41 - -std=*)
42 - echo >&2 "`basename $0` called with non ANSI/ISO C90 option $i"
43 - exit 1
44 - ;;
45 - esac
46 -done
47 -
48 -exec gcc -std=c89 -pedantic -U_FORTIFY_SOURCE "$@"
49
50 diff --git a/dev-lang/gnat-gpl/files/c99 b/dev-lang/gnat-gpl/files/c99
51 deleted file mode 100644
52 index c9542095e38..00000000000
53 --- a/dev-lang/gnat-gpl/files/c99
54 +++ /dev/null
55 @@ -1,21 +0,0 @@
56 -#! /bin/sh
57 -
58 -# Call the appropriate C compiler with options to accept ANSI/ISO C
59 -# The following options are the same (as of gcc-3.3):
60 -# -std=c99
61 -# -std=c9x
62 -# -std=iso9899:1999
63 -# -std=iso9899:199x
64 -
65 -for i; do
66 - case "$i" in
67 - -std=c9[9x]|-std=iso9899:199[9x])
68 - ;;
69 - -ansi|-std=*)
70 - echo >&2 "`basename $0` called with non ANSI/ISO C99 option $i"
71 - exit 1
72 - ;;
73 - esac
74 -done
75 -
76 -exec gcc -std=c99 -pedantic -U_FORTIFY_SOURCE ${1+"$@"}
77
78 diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
79 index 7a4364af4e6..db02ee6be50 100644
80 --- a/eclass/toolchain.eclass
81 +++ b/eclass/toolchain.eclass
82 @@ -1785,11 +1785,6 @@ toolchain_src_install() {
83 # prune empty dirs left behind
84 find "${ED}" -depth -type d -delete 2>/dev/null
85
86 - if ! is_crosscompile && [[ ${PN} != "kgcc64" ]] ; then
87 - exeinto "${DATAPATH#${EPREFIX}}"
88 - doexe "${FILESDIR}"/c{89,99} || die
89 - fi
90 -
91 # libstdc++.la: Delete as it doesn't add anything useful: g++ itself
92 # handles linkage correctly in the dynamic & static case. It also just
93 # causes us pain: any C++ progs/libs linking with libtool will gain a
94 @@ -2096,11 +2091,6 @@ toolchain_pkg_postinst() {
95 rm -f "${EROOT%/}"/sbin/fix_libtool_files.sh
96 rm -f "${EROOT%/}"/usr/sbin/fix_libtool_files.sh
97 rm -f "${EROOT%/}"/usr/share/gcc-data/fixlafiles.awk
98 -
99 - mkdir -p "${EROOT%/}"/usr/bin
100 - # Since these aren't critical files and portage sucks with
101 - # handling of binpkgs, don't require these to be found
102 - cp "${ROOT%/}${DATAPATH}"/c{89,99} "${EROOT%/}"/usr/bin/ 2>/dev/null
103 fi
104 }
105
106 @@ -2110,11 +2100,6 @@ toolchain_pkg_postrm() {
107 eselect compiler-shadow clean all
108 fi
109
110 - # to make our lives easier (and saner), we do the fix_libtool stuff here.
111 - # rather than checking SLOT's and trying in upgrade paths, we just see if
112 - # the common libstdc++.la exists in the ${LIBPATH} of the gcc that we are
113 - # unmerging. if it does, that means this was a simple re-emerge.
114 -
115 # clean up the cruft left behind by cross-compilers
116 if is_crosscompile ; then
117 if [[ -z $(ls "${EROOT%/}"/etc/env.d/gcc/${CTARGET}* 2>/dev/null) ]] ; then
118
119 diff --git a/sys-devel/gcc/files/c89 b/sys-devel/gcc/files/c89
120 deleted file mode 100644
121 index cee0325f50f..00000000000
122 --- a/sys-devel/gcc/files/c89
123 +++ /dev/null
124 @@ -1,20 +0,0 @@
125 -#! /bin/sh
126 -
127 -# Call the appropriate C compiler with options to accept ANSI/ISO C
128 -# The following options are the same (as of gcc-2.95):
129 -# -ansi
130 -# -std=c89
131 -# -std=iso9899:1990
132 -
133 -for i; do
134 - case "$i" in
135 - -ansi|-std=c89|-std=iso9899:1990)
136 - ;;
137 - -std=*)
138 - echo >&2 "`basename $0` called with non ANSI/ISO C90 option $i"
139 - exit 1
140 - ;;
141 - esac
142 -done
143 -
144 -exec gcc -std=c89 -pedantic -U_FORTIFY_SOURCE "$@"
145
146 diff --git a/sys-devel/gcc/files/c99 b/sys-devel/gcc/files/c99
147 deleted file mode 100644
148 index c9542095e38..00000000000
149 --- a/sys-devel/gcc/files/c99
150 +++ /dev/null
151 @@ -1,21 +0,0 @@
152 -#! /bin/sh
153 -
154 -# Call the appropriate C compiler with options to accept ANSI/ISO C
155 -# The following options are the same (as of gcc-3.3):
156 -# -std=c99
157 -# -std=c9x
158 -# -std=iso9899:1999
159 -# -std=iso9899:199x
160 -
161 -for i; do
162 - case "$i" in
163 - -std=c9[9x]|-std=iso9899:199[9x])
164 - ;;
165 - -ansi|-std=*)
166 - echo >&2 "`basename $0` called with non ANSI/ISO C99 option $i"
167 - exit 1
168 - ;;
169 - esac
170 -done
171 -
172 -exec gcc -std=c99 -pedantic -U_FORTIFY_SOURCE ${1+"$@"}