/[gentoo-x86]/eclass/kernel-2.eclass
Gentoo

Diff of /eclass/kernel-2.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.121 Revision 1.122
1# Copyright 1999-2005 Gentoo Foundation 1# Copyright 1999-2005 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.121 2005/04/14 10:43:25 johnm Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.122 2005/04/14 11:00:34 johnm Exp $
4 4
5# Description: kernel.eclass rewrite for a clean base regarding the 2.6 5# Description: kernel.eclass rewrite for a clean base regarding the 2.6
6# series of kernel with back-compatibility for 2.4 6# series of kernel with back-compatibility for 2.4
7# 7#
8# Maintainer: John Mylchreest <johnm@gentoo.org> 8# Maintainer: John Mylchreest <johnm@gentoo.org>
560 560
561# unipatch 561# unipatch
562#============================================================== 562#==============================================================
563unipatch() { 563unipatch() {
564 local i x y z extention PIPE_CMD UNIPATCH_DROP KPATCH_DIR PATCH_DEPTH ELINE 564 local i x y z extention PIPE_CMD UNIPATCH_DROP KPATCH_DIR PATCH_DEPTH ELINE
565 local STRICT_COUNT PATCH_LEVEL myLC_ALL 565 local STRICT_COUNT PATCH_LEVEL myLC_ALL myLANG
566 566
567 # set to a standard locale to ensure sorts are ordered properly. 567 # set to a standard locale to ensure sorts are ordered properly.
568 myLC_ALL="${LC_ALL}" 568 myLC_ALL="${LC_ALL}"
569 myLANG="${LANG}"
569 LC_ALL="C" 570 LC_ALL="C"
571 LANG=""
570 572
571 [ -z "${KPATCH_DIR}" ] && KPATCH_DIR="${WORKDIR}/patches/" 573 [ -z "${KPATCH_DIR}" ] && KPATCH_DIR="${WORKDIR}/patches/"
572 [ ! -d ${KPATCH_DIR} ] && mkdir -p ${KPATCH_DIR} 574 [ ! -d ${KPATCH_DIR} ] && mkdir -p ${KPATCH_DIR}
573 575
574 # We're gonna need it when doing patches with a predefined patchlevel 576 # We're gonna need it when doing patches with a predefined patchlevel
720 722
721 # clean up KPATCH_DIR's - fixes bug #53610 723 # clean up KPATCH_DIR's - fixes bug #53610
722 for x in ${KPATCH_DIR}; do rm -Rf ${x}; done 724 for x in ${KPATCH_DIR}; do rm -Rf ${x}; done
723 725
724 LC_ALL="${myLC_ALL}" 726 LC_ALL="${myLC_ALL}"
727 LANG="${myLANG}"
725} 728}
726 729
727# getfilevar accepts 2 vars as follows: 730# getfilevar accepts 2 vars as follows:
728# getfilevar <VARIABLE> <CONFIGFILE> 731# getfilevar <VARIABLE> <CONFIGFILE>
729# pulled from linux-info 732# pulled from linux-info

Legend:
Removed from v.1.121  
changed lines
  Added in v.1.122

  ViewVC Help
Powered by ViewVC 1.1.20