From c920f1bfe01a74ae5664122628f89016e4e1dac6 Mon Sep 17 00:00:00 2001 From: David Levine Date: Tue, 8 May 2012 10:16:46 -0500 Subject: [PATCH] Fixed patch section of prep(). --- SPECS/build-nmh-cygwin | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/SPECS/build-nmh-cygwin b/SPECS/build-nmh-cygwin index 359925f..e7ce976 100755 --- a/SPECS/build-nmh-cygwin +++ b/SPECS/build-nmh-cygwin @@ -234,12 +234,14 @@ mkdirs_log() { } # Unpack the original tarball, and get everything set up for this script. +# Change from generic-build-script: cd to ${srcdir} instead of ${topdir}. +# Change from generic-build-script: use -p1 instead of -p0 patch option. prep() { (cd ${topdir} && \ unpack ${src_orig_pkg} && \ - cd ${topdir} && \ + cd ${srcdir} && \ if [ -f ${src_patch} ] ; then \ - patch -Z -p0 < ${src_patch} ;\ + patch -Z -p1 < ${src_patch} ;\ fi && \ mkdirs ) } -- 1.7.10.4