summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorrillig <rillig>2005-09-22 18:21:00 +0000
committerrillig <rillig>2005-09-22 18:21:00 +0000
commitdb6dfbcb1c8d2af0eb415df0adbb7d63c25dea77 (patch)
tree423ab005b9088e36ed3dfaf5d60a40153dd9169f /mk
parent74fd00d6504dd84ca12e4c9da686eadaeffb6c6f (diff)
downloadpkgsrc-db6dfbcb1c8d2af0eb415df0adbb7d63c25dea77.tar.gz
Fixed a bug which prevented modified patches from stopping the build
process. In a pipe, each command may be executed as a child process. Therefore variable assignments do not affect the parent process.
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.pkg.patch.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/mk/bsd.pkg.patch.mk b/mk/bsd.pkg.patch.mk
index b89759794eb..3d22ba9f80a 100644
--- a/mk/bsd.pkg.patch.mk
+++ b/mk/bsd.pkg.patch.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.patch.mk,v 1.17 2005/07/31 05:26:50 snj Exp $
+# $NetBSD: bsd.pkg.patch.mk,v 1.18 2005/09/22 18:21:00 rillig Exp $
#
# This Makefile fragment is included by bsd.pkg.mk and defines the
# relevant variables and targets for the "patch" phase.
@@ -238,8 +238,8 @@ do-pkgsrc-patch:
${ECHO_MSG} "**************************************"; \
continue; \
fi; \
- ${ECHO} "$$algsum" | \
- { read alg recorded; \
+ set -- $$algsum; \
+ { alg="$$1"; recorded="$$2"; \
calcsum=`${SED} -e '/\$$NetBSD.*/d' $$i | ${DIGEST} $$alg`; \
${ECHO_PATCH_MSG} "=> Verifying $$filename (using digest algorithm $$alg)"; \
if ${TEST} -z "$$recorded"; then \