Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gcc-config:master commit in: /
Date: Sat, 07 Sep 2019 08:47:24
Message-Id: 1567845976.e8e4dd8786f39b2d2c682f385ea2c70b2b44022f.slyfox@gentoo
1 commit: e8e4dd8786f39b2d2c682f385ea2c70b2b44022f
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Sat Sep 7 08:46:16 2019 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Sat Sep 7 08:46:16 2019 +0000
6 URL: https://gitweb.gentoo.org/proj/gcc-config.git/commit/?id=e8e4dd87
7
8 gcc-config: don't recreate unused '.NATIVE' symlink.
9
10 As gcc-wrapper is gone nothing should use it anymore.
11
12 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
13
14 README | 6 ------
15 gcc-config | 7 ++++---
16 2 files changed, 4 insertions(+), 9 deletions(-)
17
18 diff --git a/README b/README
19 index c3bf427..48183b2 100644
20 --- a/README
21 +++ b/README
22 @@ -56,12 +56,6 @@ Files, variables, things.
23 Before Aug 2018 used to contain paths for cross-compilers.
24 To be removed eventually.
25
26 - /etc/env.d/gcc/.NATIVE -> x86_64-pc-linux-gnu-8.1.0 (link to target config)
27 -
28 - Link to current native toolchain.
29 -
30 - Before Aug 2018 was used by gcc binary wrapper. Not used nowadays.
31 -
32 TODOs
33 -----
34
35
36 diff --git a/gcc-config b/gcc-config
37 index aefdbc4..92e9014 100755
38 --- a/gcc-config
39 +++ b/gcc-config
40 @@ -656,14 +656,15 @@ switch_profile() {
41 fi
42
43 # Punt old files; maybe globs too much, but oh well
44 + # 'NATIVE' and '.NATIVE' were used by gcc-wrapper before Aug 2018
45 + # and are not used as wrapper is removed.
46 + # '.NATIVE' was created before Sept 2019.
47 + # We clean up both for now. Should be safe to remove in 2021.
48 rm -f \
49 "${GCC_ENV_D}/NATIVE" "${GCC_ENV_D}/.NATIVE" \
50 "${ENV_D}/05gcc" "${ENV_D}/05gcc-${CTARGET}" \
51 "${ENV_D}/05gcc-${CTARGET}"-* "${GCC_ENV_D}/config-${CTARGET}"-*
52
53 - # Help out the gcc wrapper
54 - ln -sf ${CC_COMP} "${GCC_ENV_D}/.NATIVE"
55 -
56 # Relocate random crap
57 local x libdir pkgconfdir
58 local mver=${CC_COMP_VERSION:0:3}