From: | "Mike Frysinger (vapier)" <vapier@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in sys-devel/gcc-config/files: gcc-config-1.4.0 |
Date: | Thu, 27 Dec 2007 19:01:14 |
Message-Id: | E1J7xyd-0000ko-12@stork.gentoo.org |
1 | vapier 07/12/27 19:01:07 |
2 | |
3 | Modified: gcc-config-1.4.0 |
4 | Log: |
5 | Fix fallback CHOST detection when python is broken #203387 by Ambroz BIzjak. |
6 | (Portage version: 2.1.4_rc11) |
7 | |
8 | Revision Changes Path |
9 | 1.24 sys-devel/gcc-config/files/gcc-config-1.4.0 |
10 | |
11 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/gcc-config/files/gcc-config-1.4.0?rev=1.24&view=markup |
12 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/gcc-config/files/gcc-config-1.4.0?rev=1.24&content-type=text/plain |
13 | diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/gcc-config/files/gcc-config-1.4.0?r1=1.23&r2=1.24 |
14 | |
15 | Index: gcc-config-1.4.0 |
16 | =================================================================== |
17 | RCS file: /var/cvsroot/gentoo-x86/sys-devel/gcc-config/files/gcc-config-1.4.0,v |
18 | retrieving revision 1.23 |
19 | retrieving revision 1.24 |
20 | diff -u -r1.23 -r1.24 |
21 | --- gcc-config-1.4.0 11 Oct 2007 05:27:57 -0000 1.23 |
22 | +++ gcc-config-1.4.0 27 Dec 2007 19:01:06 -0000 1.24 |
23 | @@ -1,7 +1,7 @@ |
24 | #!/bin/bash |
25 | # Copyright 1999-2007 Gentoo Foundation |
26 | # Distributed under the terms of the GNU General Public License v2 |
27 | -# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-config/files/gcc-config-1.4.0,v 1.23 2007/10/11 05:27:57 vapier Exp $ |
28 | +# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-config/files/gcc-config-1.4.0,v 1.24 2007/12/27 19:01:06 vapier Exp $ |
29 | |
30 | trap ":" INT QUIT TSTP |
31 | |
32 | @@ -54,7 +54,7 @@ |
33 | # First we read make.conf |
34 | # |
35 | |
36 | - local varname=$1 |
37 | + local varname=${1:-CHOST} |
38 | local conf=${ROOT}/etc/make.conf |
39 | local ret=$(source "${conf}" 2>/dev/null ; echo ${!varname}) |
40 | if [[ -z ${ret} ]] ; then |
41 | @@ -63,7 +63,7 @@ |
42 | ret=$(eval $( |
43 | sed -n \ |
44 | -e 's:[[:space:]]::g' \ |
45 | - -e '/^CHOST=/p' \ |
46 | + -e "/^${varname}=/p" \ |
47 | "${conf}" |
48 | ) ; echo ${!varname} |
49 | ) |
50 | |
51 | |
52 | |
53 | -- |
54 | gentoo-commits@g.o mailing list |