pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/mk
Module Name: pkgsrc
Committed By: jperkin
Date: Thu Jun 25 08:45:00 UTC 2020
Modified Files:
pkgsrc/mk: subst.mk
Log Message:
mk: Handle pdksh issue with "set -e" in for loop.
With our current version of pdksh, a "false && something" construct under
"set -e" conditions will continue as it does with other shells, but if the
construct is within a for loop then it exits, causing failures in the
substitution code. An explicit "|| true" is necessary to avoid this.
Approved during the freeze by wiz.
To generate a diff of this commit:
cvs rdiff -u -r1.100 -r1.101 pkgsrc/mk/subst.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/mk/subst.mk
diff -u pkgsrc/mk/subst.mk:1.100 pkgsrc/mk/subst.mk:1.101
--- pkgsrc/mk/subst.mk:1.100 Tue Jun 16 18:13:54 2020
+++ pkgsrc/mk/subst.mk Thu Jun 25 08:45:00 2020
@@ -1,4 +1,4 @@
-# $NetBSD: subst.mk,v 1.100 2020/06/16 18:13:54 rillig Exp $
+# $NetBSD: subst.mk,v 1.101 2020/06/25 08:45:00 jperkin Exp $
#
# The subst framework replaces text in one or more files in the WRKSRC
# directory. Packages can define several ``classes'' of replacements.
@@ -221,7 +221,7 @@ ${_SUBST_COOKIE.${class}}:
noop_count="$$noop_count+"; \
noop_patterns="$$noop_patterns$$noop_sep$$pattern"; \
noop_sep=" "; \
- }; \
+ } || ${TRUE}; \
done; \
\
case $$noop_count in \
Home |
Main Index |
Thread Index |
Old Index