summaryrefslogtreecommitdiff
path: root/mk/check
diff options
context:
space:
mode:
authorjperkin <jperkin>2015-11-27 12:45:04 +0000
committerjperkin <jperkin>2015-11-27 12:45:04 +0000
commit35a4f09f23900c236c14e24b9ab960ab75696b82 (patch)
tree48ab9d7386e093233534ec7df5d602d7feab5ba1 /mk/check
parent2321f4b9d8aff914631b544fb7debba27f7588f6 (diff)
downloadpkgsrc-35a4f09f23900c236c14e24b9ab960ab75696b82.tar.gz
Perform interpreter sed(1) check with LC_ALL=C, avoids failures on newer
Darwin releases with "sed: RE error: illegal byte sequence".
Diffstat (limited to 'mk/check')
-rw-r--r--mk/check/check-interpreter.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/check/check-interpreter.mk b/mk/check/check-interpreter.mk
index 7970df4945b..193e852d415 100644
--- a/mk/check/check-interpreter.mk
+++ b/mk/check/check-interpreter.mk
@@ -1,4 +1,4 @@
-# $NetBSD: check-interpreter.mk,v 1.29 2015/04/29 13:05:28 jperkin Exp $
+# $NetBSD: check-interpreter.mk,v 1.30 2015/11/27 12:45:04 jperkin Exp $
#
# This file checks that after installation, all files of the package
# that start with a "#!" line will find their interpreter. Files that
@@ -61,7 +61,7 @@ _check-interpreter: error-check .PHONY
continue; \
fi; \
${SHCOMMENT} "[$$file]"; \
- interp=`${SED} -n -e '1s/^#![[:space:]]*\([^[:space:]]*\).*/\1/p' -e '1q' < "$$file"` \
+ interp=`LC_ALL=C ${SED} -n -e '1s/^#![[:space:]]*\([^[:space:]]*\).*/\1/p' -e '1q' < "$$file"` \
|| { ${DELAYED_WARNING_MSG} "[check-interpreter.mk] sed(1) failed for \"${DESTDIR}${PREFIX}/$$file\"."; \
continue; \
}; \