summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Drake <dsd@gentoo.org>2008-12-03 18:11:47 +0000
committerDaniel Drake <dsd@gentoo.org>2008-12-03 18:11:47 +0000
commit90c98c9398cca30ef77a22a1811b480e5166a4d9 (patch)
tree0a7f3ce3a3a77b392277935979fa08739a323ec0 /eclass/linux-info.eclass
parentAdded dev-php5/symfony-1.2.0 (#248663). (diff)
downloadhistorical-90c98c9398cca30ef77a22a1811b480e5166a4d9.tar.gz
historical-90c98c9398cca30ef77a22a1811b480e5166a4d9.tar.bz2
historical-90c98c9398cca30ef77a22a1811b480e5166a4d9.zip
avoid changing of directory, reported by Tanktalus in bug #229223
Diffstat (limited to 'eclass/linux-info.eclass')
-rw-r--r--eclass/linux-info.eclass9
1 files changed, 3 insertions, 6 deletions
diff --git a/eclass/linux-info.eclass b/eclass/linux-info.eclass
index 539026f98964..5bda9d581937 100644
--- a/eclass/linux-info.eclass
+++ b/eclass/linux-info.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/linux-info.eclass,v 1.56 2008/10/31 22:01:32 dsd Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/linux-info.eclass,v 1.57 2008/12/03 18:11:47 dsd Exp $
#
# Original author: John Mylchreest <johnm@gentoo.org>
# Maintainer: kernel-misc@gentoo.org
@@ -147,7 +147,7 @@ qeerror() { qout eerror "${@}" ; }
# @DESCRIPTION:
# It detects the value of the variable defined in the file configfile
getfilevar() {
-local ERROR workingdir basefname basedname myARCH="${ARCH}"
+local ERROR basefname basedname myARCH="${ARCH}"
ERROR=0
[ -z "${1}" ] && ERROR=1
@@ -159,15 +159,12 @@ local ERROR workingdir basefname basedname myARCH="${ARCH}"
eerror "getfilevar requires 2 variables, with the second a valid file."
eerror " getfilevar <VARIABLE> <CONFIGFILE>"
else
- workingdir="${PWD}"
basefname="$(basename ${2})"
basedname="$(dirname ${2})"
unset ARCH
- cd "${basedname}"
echo -e "e:\\n\\t@echo \$(${1})\\ninclude ${basefname}" | \
- make M="${S}" ${BUILD_FIXES} -s -f - 2>/dev/null
- cd "${workingdir}"
+ make -C "${basedname}" M="${S}" ${BUILD_FIXES} -s -f - 2>/dev/null
ARCH=${myARCH}
fi