diff options
author | minskim <minskim@pkgsrc.org> | 2019-11-22 18:04:49 +0000 |
---|---|---|
committer | minskim <minskim@pkgsrc.org> | 2019-11-22 18:04:49 +0000 |
commit | a701446d930b03292f71e41c53e249b79b66d360 (patch) | |
tree | 38ac4b6f5cdddc08fe79a012ed37e9ec3968569f /mk | |
parent | a02d469bff70b4ccc9d26de10086f0df6611b0dc (diff) | |
download | pkgsrc-a701446d930b03292f71e41c53e249b79b66d360.tar.gz |
mk: Set LC_ALL=C to avoid encoding issue with tr and sed
Diffstat (limited to 'mk')
-rw-r--r-- | mk/subst.mk | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mk/subst.mk b/mk/subst.mk index 4817d01d7ed..fb848898c20 100644 --- a/mk/subst.mk +++ b/mk/subst.mk @@ -1,4 +1,4 @@ -# $NetBSD: subst.mk,v 1.61 2019/09/08 09:06:06 rillig Exp $ +# $NetBSD: subst.mk,v 1.62 2019/11/22 18:04:49 minskim Exp $ # # The subst framework replaces text in one or more files in the WRKSRC # directory. Packages can define several ``classes'' of replacements. @@ -83,12 +83,12 @@ ECHO_SUBST_MSG?= ${STEP_MSG} # _SUBST_IS_TEXT_FILE_CMD returns 0 if $$file is a text file. _SUBST_IS_TEXT_FILE_CMD?= \ - [ -z "`${TR} -cd '\\0' < "$$file" | ${TR} '\\0' 'x'`" ] + [ -z "`LC_ALL=C ${TR} -cd '\\0' < "$$file" | ${TR} '\\0' 'x'`" ] .for _class_ in ${SUBST_CLASSES} _SUBST_COOKIE.${_class_}= ${WRKDIR}/.subst_${_class_}_done -SUBST_FILTER_CMD.${_class_}?= ${SED} ${SUBST_SED.${_class_}} +SUBST_FILTER_CMD.${_class_}?= LC_ALL=C ${SED} ${SUBST_SED.${_class_}} SUBST_VARS.${_class_}?= # none SUBST_MESSAGE.${_class_}?= Substituting "${_class_}" in ${SUBST_FILES.${_class_}} . for v in ${SUBST_VARS.${_class_}} |