summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2015-11-27 12:45:04 +0000
committerjperkin <jperkin@pkgsrc.org>2015-11-27 12:45:04 +0000
commit85189e3f15db45f137b1aa5c7bd0d2ef6d969c37 (patch)
tree48ab9d7386e093233534ec7df5d602d7feab5ba1 /mk
parentdde44308efd9ba66c6843410225bbdf1c40d7309 (diff)
downloadpkgsrc-85189e3f15db45f137b1aa5c7bd0d2ef6d969c37.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')
-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; \
}; \