summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorJohn Mylchreest <johnm@gentoo.org>2005-04-14 11:00:34 +0000
committerJohn Mylchreest <johnm@gentoo.org>2005-04-14 11:00:34 +0000
commiteff7fe26836095a069de89da916f4f67e817fb1e (patch)
tree64f55ac328bd91db4df70485f4b6625e679b391e /eclass
parentProblem with setting KERNELPATH, fixes bug #85410 (diff)
downloadgentoo-2-eff7fe26836095a069de89da916f4f67e817fb1e.tar.gz
gentoo-2-eff7fe26836095a069de89da916f4f67e817fb1e.tar.bz2
gentoo-2-eff7fe26836095a069de89da916f4f67e817fb1e.zip
Fixes bug #77190, unsetting LANG and changing LC_ALL to prevent any locale weirdness
Diffstat (limited to 'eclass')
-rw-r--r--eclass/kernel-2.eclass7
1 files changed, 5 insertions, 2 deletions
diff --git a/eclass/kernel-2.eclass b/eclass/kernel-2.eclass
index 0cb1499554cb..ea744bb7a894 100644
--- a/eclass/kernel-2.eclass
+++ b/eclass/kernel-2.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.121 2005/04/14 10:43:25 johnm Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.122 2005/04/14 11:00:34 johnm Exp $
# Description: kernel.eclass rewrite for a clean base regarding the 2.6
# series of kernel with back-compatibility for 2.4
@@ -562,11 +562,13 @@ setup_headers() {
#==============================================================
unipatch() {
local i x y z extention PIPE_CMD UNIPATCH_DROP KPATCH_DIR PATCH_DEPTH ELINE
- local STRICT_COUNT PATCH_LEVEL myLC_ALL
+ local STRICT_COUNT PATCH_LEVEL myLC_ALL myLANG
# set to a standard locale to ensure sorts are ordered properly.
myLC_ALL="${LC_ALL}"
+ myLANG="${LANG}"
LC_ALL="C"
+ LANG=""
[ -z "${KPATCH_DIR}" ] && KPATCH_DIR="${WORKDIR}/patches/"
[ ! -d ${KPATCH_DIR} ] && mkdir -p ${KPATCH_DIR}
@@ -722,6 +724,7 @@ unipatch() {
for x in ${KPATCH_DIR}; do rm -Rf ${x}; done
LC_ALL="${myLC_ALL}"
+ LANG="${myLANG}"
}
# getfilevar accepts 2 vars as follows: