summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schlemmer <azarah@gentoo.org>2003-04-28 02:15:16 +0000
committerMartin Schlemmer <azarah@gentoo.org>2003-04-28 02:15:16 +0000
commit9b6d03c7a4c17c44932765065e11ae9c083dc62c (patch)
tree8efea29c220f0cfb85637e658d9e502c0096970f /sys-devel/gcc-config/files
parentrev bump that gives ofx/hbci and new guile support (diff)
downloadgentoo-2-9b6d03c7a4c17c44932765065e11ae9c083dc62c.tar.gz
gentoo-2-9b6d03c7a4c17c44932765065e11ae9c083dc62c.tar.bz2
gentoo-2-9b6d03c7a4c17c44932765065e11ae9c083dc62c.zip
fix for when portageq not in path
Diffstat (limited to 'sys-devel/gcc-config/files')
-rw-r--r--sys-devel/gcc-config/files/digest-gcc-config-1.3.3-r10
-rw-r--r--sys-devel/gcc-config/files/gcc-config-1.3.37
2 files changed, 4 insertions, 3 deletions
diff --git a/sys-devel/gcc-config/files/digest-gcc-config-1.3.3-r1 b/sys-devel/gcc-config/files/digest-gcc-config-1.3.3-r1
new file mode 100644
index 000000000000..e69de29bb2d1
--- /dev/null
+++ b/sys-devel/gcc-config/files/digest-gcc-config-1.3.3-r1
diff --git a/sys-devel/gcc-config/files/gcc-config-1.3.3 b/sys-devel/gcc-config/files/gcc-config-1.3.3
index ffa794390741..f00cb0326a3b 100644
--- a/sys-devel/gcc-config/files/gcc-config-1.3.3
+++ b/sys-devel/gcc-config/files/gcc-config-1.3.3
@@ -2,7 +2,7 @@
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author: Martin Schlemmer <azarah@gentoo.org>
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-config/files/gcc-config-1.3.3,v 1.1 2003/04/12 18:44:22 azarah Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-config/files/gcc-config-1.3.3,v 1.2 2003/04/28 02:14:30 azarah Exp $
source /etc/init.d/functions.sh || {
@@ -119,9 +119,10 @@ cmd_setup() {
CC_COMP=""
get_real_chost() {
- [ -n "$REAL_CHOST" ] && return 0
+ [ -n "${REAL_CHOST}" ] && return 0
- REAL_CHOST="$(portageq envvar CHOST)"
+ # Use absolute path until all protage versions have portageq in /usr/bin
+ REAL_CHOST="$(/usr/lib/portage/bin/portageq envvar CHOST)"
if [ -z "${REAL_CHOST}" ]
then