diff options
author | triaxx <triaxx@pkgsrc.org> | 2021-05-19 14:44:22 +0000 |
---|---|---|
committer | triaxx <triaxx@pkgsrc.org> | 2021-05-19 14:44:22 +0000 |
commit | 4cf105d926579512735f4ec12dcc6bc28fb84728 (patch) | |
tree | 4ec38f000bec7f0d4ec5e7542560fd2f19a25465 /mk/subst.mk | |
parent | d3b14d7e89ca8527d4c0ffd881cf1666a1cb8047 (diff) | |
download | pkgsrc-4cf105d926579512735f4ec12dcc6bc28fb84728.tar.gz |
subst.mk: Fix mk/scrips/subst-identity.awk for FreeBSD
At least on FreeBSD 13.0, awk '/^[\t -~]/' does not match alphabetical
characters with some utf-8 locales (e.g. neither en_US.UTF-8 nor
fr_FR.UTF-8 works but C.UTF-8 does).
Diffstat (limited to 'mk/subst.mk')
-rw-r--r-- | mk/subst.mk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/subst.mk b/mk/subst.mk index 89931013ec4..fe4c4ac016c 100644 --- a/mk/subst.mk +++ b/mk/subst.mk @@ -1,4 +1,4 @@ -# $NetBSD: subst.mk,v 1.103 2020/10/06 17:48:02 rillig Exp $ +# $NetBSD: subst.mk,v 1.104 2021/05/19 14:44:22 triaxx Exp $ # # The subst framework replaces text in one or more files in the WRKSRC # directory. Packages can define several ``classes'' of replacements. @@ -195,7 +195,7 @@ ${_SUBST_COOKIE.${class}}: }; \ ${SUBST_FILTER_CMD.${class}} < "$$file" > "$$tmpfile"; \ ${CMP} -s "$$tmpfile" "$$file" && { \ - ${AWK} -f ${PKGSRCDIR}/mk/scripts/subst-identity.awk -- ${SUBST_SED.${class}} \ + LC_ALL=C ${AWK} -f ${PKGSRCDIR}/mk/scripts/subst-identity.awk -- ${SUBST_SED.${class}} \ && found_text=$$(LC_ALL=C ${SED} -n ${SUBST_SED.${class}:C,^['"]?s.*,&p,} "$$file") \ && [ -n "$$found_text" ] \ && found_any=yes \ |