summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2007-08-31 01:42:47 +0000
committerMike Frysinger <vapier@gentoo.org>2007-08-31 01:42:47 +0000
commit8136c3ec1d1fdc0733aa27f6ce7610ac3330a44c (patch)
tree10e51be131e84113507eea21464dd0a13dc9b9b6 /sys-devel/gcc-config/files
parentold (diff)
downloadhistorical-8136c3ec1d1fdc0733aa27f6ce7610ac3330a44c.tar.gz
historical-8136c3ec1d1fdc0733aa27f6ce7610ac3330a44c.tar.bz2
historical-8136c3ec1d1fdc0733aa27f6ce7610ac3330a44c.zip
Rename NATIVE symlink to .NATIVE so it doesnt show up in listings and confuse people.
Package-Manager: portage-2.1.3.7
Diffstat (limited to 'sys-devel/gcc-config/files')
-rw-r--r--sys-devel/gcc-config/files/digest-gcc-config-1.4.0-r20
-rwxr-xr-xsys-devel/gcc-config/files/gcc-config-1.4.05
-rw-r--r--sys-devel/gcc-config/files/wrapper-1.5.0.c4
3 files changed, 5 insertions, 4 deletions
diff --git a/sys-devel/gcc-config/files/digest-gcc-config-1.4.0-r2 b/sys-devel/gcc-config/files/digest-gcc-config-1.4.0-r2
new file mode 100644
index 000000000000..e69de29bb2d1
--- /dev/null
+++ b/sys-devel/gcc-config/files/digest-gcc-config-1.4.0-r2
diff --git a/sys-devel/gcc-config/files/gcc-config-1.4.0 b/sys-devel/gcc-config/files/gcc-config-1.4.0
index e8ac054b0394..9cf1b1d486b6 100755
--- a/sys-devel/gcc-config/files/gcc-config-1.4.0
+++ b/sys-devel/gcc-config/files/gcc-config-1.4.0
@@ -1,7 +1,7 @@
#!/bin/bash
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-config/files/gcc-config-1.4.0,v 1.20 2007/08/26 03:21:02 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-config/files/gcc-config-1.4.0,v 1.21 2007/08/31 01:42:47 vapier Exp $
trap ":" INT QUIT TSTP
@@ -260,7 +260,8 @@ switch_profile() {
echo "CURRENT=${CC_COMP}" > "${GCC_ENV_D}/config-${CTARGET}"
# Help out the gcc wrapper
- ln -sf ${CC_COMP} "${GCC_ENV_D}/NATIVE"
+ rm -f "${GCC_ENV_D}/NATIVE" "${GCC_ENV_D}/.NATIVE"
+ ln -sf ${CC_COMP} "${GCC_ENV_D}/.NATIVE"
# Punt old files
rm -f "${ENV_D}/05gcc"
diff --git a/sys-devel/gcc-config/files/wrapper-1.5.0.c b/sys-devel/gcc-config/files/wrapper-1.5.0.c
index a23149d0b363..a434a676b351 100644
--- a/sys-devel/gcc-config/files/wrapper-1.5.0.c
+++ b/sys-devel/gcc-config/files/wrapper-1.5.0.c
@@ -1,7 +1,7 @@
/*
* Copyright 1999-2007 Gentoo Foundation
* Distributed under the terms of the GNU General Public License v2
- * $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-config/files/wrapper-1.5.0.c,v 1.3 2007/08/26 03:21:02 vapier Exp $
+ * $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-config/files/wrapper-1.5.0.c,v 1.4 2007/08/31 01:42:47 vapier Exp $
* Author: Martin Schlemmer <azarah@gentoo.org>
* az's lackey: Mike Frysinger <vapier@gentoo.org>
*/
@@ -134,7 +134,7 @@ static int find_target_in_envd(struct wrapper_data *data, int cross_compile)
/* for the sake of speed, we'll keep a symlink around for
* the native compiler. #190260
*/
- snprintf(envd_file, sizeof(envd_file)-1, "/etc/env.d/gcc/NATIVE");
+ snprintf(envd_file, sizeof(envd_file)-1, "/etc/env.d/gcc/.NATIVE");
} else {
char *ctarget, *end = strrchr(data->name, '-');
if (end == NULL)