summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2004-04-18 20:45:23 +0000
committerMike Frysinger <vapier@gentoo.org>2004-04-18 20:45:23 +0000
commita5949a816c45b493d4c773821be889fde5e589a7 (patch)
tree2a4611140fac75570bafe4576b3545afe2b50d5c /eclass/eutils.eclass
parentStable on sparc. (Manifest recommit) (diff)
downloadgentoo-2-a5949a816c45b493d4c773821be889fde5e589a7.tar.gz
gentoo-2-a5949a816c45b493d4c773821be889fde5e589a7.tar.bz2
gentoo-2-a5949a816c45b493d4c773821be889fde5e589a7.zip
allow $EPATCH_OPTS to override #33636
Diffstat (limited to 'eclass/eutils.eclass')
-rw-r--r--eclass/eutils.eclass8
1 files changed, 4 insertions, 4 deletions
diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass
index 3e21dd4fcfb4..9cc8820372e8 100644
--- a/eclass/eutils.eclass
+++ b/eclass/eutils.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.87 2004/04/01 20:50:43 iggy Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.88 2004/04/18 20:45:23 vapier Exp $
#
# Author: Martin Schlemmer <azarah@gentoo.org>
#
@@ -260,7 +260,7 @@ epatch() {
fi
echo -n "PATCH COMMAND: " >> ${STDERR_TARGET%/*}/${x##*/}-${STDERR_TARGET##*/}
- echo "patch ${popts} -p${count} < ${PATCH_TARGET}" >> ${STDERR_TARGET%/*}/${x##*/}-${STDERR_TARGET##*/}
+ echo "patch -p${count} ${popts} < ${PATCH_TARGET}" >> ${STDERR_TARGET%/*}/${x##*/}-${STDERR_TARGET##*/}
echo >> ${STDERR_TARGET%/*}/${x##*/}-${STDERR_TARGET##*/}
draw_line "***** ${x##*/} *****" >> ${STDERR_TARGET%/*}/${x##*/}-${STDERR_TARGET##*/}
@@ -277,7 +277,7 @@ epatch() {
fi
fi
- if (cat ${PATCH_TARGET} | patch ${popts} --dry-run -f -p${count}) >> ${STDERR_TARGET%/*}/${x##*/}-${STDERR_TARGET##*/} 2>&1
+ if (cat ${PATCH_TARGET} | patch -p${count} ${popts} --dry-run -f) >> ${STDERR_TARGET%/*}/${x##*/}-${STDERR_TARGET##*/} 2>&1
then
draw_line "***** ${x##*/} *****" > ${STDERR_TARGET%/*}/${x##*/}-${STDERR_TARGET##*/}.real
echo >> ${STDERR_TARGET%/*}/${x##*/}-${STDERR_TARGET##*/}.real
@@ -285,7 +285,7 @@ epatch() {
echo >> ${STDERR_TARGET%/*}/${x##*/}-${STDERR_TARGET##*/}.real
draw_line "***** ${x##*/} *****" >> ${STDERR_TARGET%/*}/${x##*/}-${STDERR_TARGET##*/}.real
- cat ${PATCH_TARGET} | patch ${popts} -p${count} >> ${STDERR_TARGET%/*}/${x##*/}-${STDERR_TARGET##*/}.real 2>&1
+ cat ${PATCH_TARGET} | patch -p${count} ${popts} >> ${STDERR_TARGET%/*}/${x##*/}-${STDERR_TARGET##*/}.real 2>&1
if [ "$?" -ne 0 ]
then