Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Wed, 08 Mar 2017 07:36:00
Message-Id: 1488958536.a85a7c74c7611e85748b0b6f0cab2a733fd9c200.mgorny@gentoo
1 commit: a85a7c74c7611e85748b0b6f0cab2a733fd9c200
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu Feb 23 19:35:52 2017 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Mar 8 07:35:36 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a85a7c74
7
8 toolchain-funcs.eclass: Remove meaningless eval
9
10 The 'eval' as used does not do anything. The function name is expanded
11 anyway.
12
13 eclass/toolchain-funcs.eclass | 6 +++---
14 1 file changed, 3 insertions(+), 3 deletions(-)
15
16 diff --git a/eclass/toolchain-funcs.eclass b/eclass/toolchain-funcs.eclass
17 index dec786994f2..a0c359a950b 100644
18 --- a/eclass/toolchain-funcs.eclass
19 +++ b/eclass/toolchain-funcs.eclass
20 @@ -1,4 +1,4 @@
21 -# Copyright 1999-2015 Gentoo Foundation
22 +# Copyright 1999-2017 Gentoo Foundation
23 # Distributed under the terms of the GNU General Public License v2
24
25 # @ECLASS: toolchain-funcs.eclass
26 @@ -168,8 +168,8 @@ tc-getBUILD_PKG_CONFIG() { tc-getBUILD_PROG PKG_CONFIG pkg-config "$@"; }
27 tc-export() {
28 local var
29 for var in "$@" ; do
30 - [[ $(type -t tc-get${var}) != "function" ]] && die "tc-export: invalid export variable '${var}'"
31 - eval tc-get${var} > /dev/null
32 + [[ $(type -t "tc-get${var}") != "function" ]] && die "tc-export: invalid export variable '${var}'"
33 + "tc-get${var}" > /dev/null
34 done
35 }