summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2013-01-24 11:20:56 +0000
committertron <tron@pkgsrc.org>2013-01-24 11:20:56 +0000
commit1344d210634db472cd29ab8febda2f3d6c97713c (patch)
treef5f6ca563047d134095ea621a5bbe57d933853e7
parent3a9170a7689a1ab66f4fb8bca46cdf6bb191af68 (diff)
downloadpkgsrc-1344d210634db472cd29ab8febda2f3d6c97713c.tar.gz
Force using the C locale while checking or generating patch file checksums.
Mac OS X Mountain Lion's "sed" will otherwise reject some patch files (e.g. "pkgsrc/devel/libcfg+/patches/patch-ab") because of broken UTF-8 encoding. It would probably be better not to use the bundled "sed" under Mac OS X Mountain Lion at all. But it seems that this is not supported by "pkgsrc" at the moment.
-rw-r--r--mk/checksum/checksum.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/checksum/checksum.mk b/mk/checksum/checksum.mk
index 40fe202b470..b2f815a6a5b 100644
--- a/mk/checksum/checksum.mk
+++ b/mk/checksum/checksum.mk
@@ -1,4 +1,4 @@
-# $NetBSD: checksum.mk,v 1.16 2011/09/08 20:17:15 abs Exp $
+# $NetBSD: checksum.mk,v 1.17 2013/01/24 11:20:56 tron Exp $
#
# See bsd.checksum.mk for helpful comments.
#
@@ -52,7 +52,7 @@ checksum checksum-phase:
.endif
_DISTINFO_CMD= ${PKGSRC_SETENV} DIGEST=${TOOLS_DIGEST:Q} SED=${TOOLS_SED:Q} \
- TEST=${TOOLS_TEST:Q} WC=${TOOLS_WC:Q} \
+ TEST=${TOOLS_TEST:Q} WC=${TOOLS_WC:Q} LC_ALL=C \
${AWK} -f ${PKGSRCDIR}/mk/checksum/distinfo.awk --
.if exists(${DISTDIR})