diff options
author | bapt <bapt@FreeBSD.org> | 2013-06-14 02:56:24 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2013-06-14 02:56:24 +0800 |
commit | 7b74c7232462d861a371261784d804bb076c6402 (patch) | |
tree | a50744fed4ea521dd6e41dc5819b9f7aa085de01 | |
parent | 01f99f12562fb7569e6b6a105a5c04229c28ac00 (diff) | |
download | freebsd-ports-gnome-7b74c7232462d861a371261784d804bb076c6402.tar.gz freebsd-ports-gnome-7b74c7232462d861a371261784d804bb076c6402.tar.zst freebsd-ports-gnome-7b74c7232462d861a371261784d804bb076c6402.zip |
Previous attempt to fix the make patch with bmake (make it fail if a patch fails) was too intrusive.
Turn it back into a full script with set -e expliticly added.
-rw-r--r-- | Mk/bsd.port.mk | 45 |
1 files changed, 23 insertions, 22 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk index d8dd2ca11123..e43081557a04 100644 --- a/Mk/bsd.port.mk +++ b/Mk/bsd.port.mk @@ -3591,30 +3591,31 @@ patch-dos2unix: do-patch: .if defined(PATCHFILES) @${ECHO_MSG} "===> Applying distribution patches for ${PKGNAME}" -.for i in ${_PATCHFILES} -. if defined(PATCH_DEBUG_TMP) && ${PATCH_DEBUG_TMP} == yes - @${ECHO_MSG} "===> Applying distribution patch $i" -. endif - @(cd ${_DISTDIR}; \ - case $i in \ - *.Z|*.gz) ${GZCAT} $i ;; \ - *.bz2) ${BZCAT} $i ;; \ - *.xz) ${XZCAT} $i ;; \ - *) ${CAT} $i ;; \ - esac | ${PATCH} ${PATCH_DIST_ARGS} ) -. endfor + @set -e ; \ + (cd ${_DISTDIR} ; \ + for i in ${_PATCHFILES}; do \ + if [ ${PATCH_DEBUG_TMP} = yes ]; then \ + @${ECHO_MSG} "===> Applying distribution patch $$i" ; \ + fi ; \ + case $$i in \ + *.Z|*.gz) ${GZCAT} $$i ;; \ + *.bz2) ${BZCAT} $$i ;; \ + *.xz) ${XZCAT} $$i ;; \ + *) ${CAT} $$i ;; \ + esac | ${PATCH} ${PATCH_DIST_ARGS} ; \ + done ) .endif .if defined(EXTRA_PATCHES) -. for i in ${EXTRA_PATCHES} - @${ECHO_MSG} "===> Applying extra patch $i" - @(cd ${_DISTDIR}; \ - case $i in \ - *.Z|*.gz) ${GZCAT} $i ;; \ - *.bz2) ${BZCAT} $i ;; \ - *.xz) ${XZCAT} $i ;; \ - *) ${CAT} $i ;; \ - esac | ${PATCH} ${PATCH_DIST_ARGS} ) -. endfor + @set -e ; \ + for i in ${EXTRA_PATCHES}; do \ + ${ECHO_MSG} "===> Applying extra patch $$i" ; \ + case $$i in \ + *.Z|*.gz) ${GZCAT} $$i ;; \ + *.bz2) ${BZCAT} $$i ;; \ + *.xz) ${XZCAT} $$i ;; \ + *) ${CAT} $$i ;; \ + esac | ${PATCH} ${PATCH_ARGS} ; \ + done .endif @set -e ;\ if [ -d ${PATCHDIR} ]; then \ |