diff options
author | jperkin <jperkin> | 2015-11-27 12:45:04 +0000 |
---|---|---|
committer | jperkin <jperkin> | 2015-11-27 12:45:04 +0000 |
commit | 69f97dcdbf12f65a07c9f13fcc3fa72d0a5e76ff (patch) | |
tree | 48ab9d7386e093233534ec7df5d602d7feab5ba1 | |
parent | cea196474e6e4ac7b247cb6f4d6bac868ad4e188 (diff) | |
download | pkgsrc-69f97dcdbf12f65a07c9f13fcc3fa72d0a5e76ff.tar.gz |
Perform interpreter sed(1) check with LC_ALL=C, avoids failures on newer
Darwin releases with "sed: RE error: illegal byte sequence".
-rw-r--r-- | mk/check/check-interpreter.mk | 4 |
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; \ }; \ |