aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Richardson <arichardson@FreeBSD.org>2019-07-01 11:47:45 +0000
committerAlex Richardson <arichardson@FreeBSD.org>2019-07-01 11:47:45 +0000
commit92aea66e57ebb7106fc216f3c152aff6284effbf (patch)
tree684a0dd216a7eb85f60882719f3c0d6e424efce2
parent3e7bae08210e094df725c4b86c412c9e44b04e22 (diff)
downloadsrc-92aea66e57ebb7106fc216f3c152aff6284effbf.tar.gz
src-92aea66e57ebb7106fc216f3c152aff6284effbf.zip
Fix generation of krb5-config with LC_CTYPE=*.UTF-8
When building on MacOS with a UTF-8 locale sed will fail when reading krb-config.in due to invalid characters. Forcing the "C" locale fixes this. Reviewed By: emaste, cy Differential Revision: https://reviews.freebsd.org/D16849
Notes
Notes: svn path=/head/; revision=349576
-rw-r--r--kerberos5/usr.bin/krb5-config/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/kerberos5/usr.bin/krb5-config/Makefile b/kerberos5/usr.bin/krb5-config/Makefile
index cabc250ff404..5224f7c54503 100644
--- a/kerberos5/usr.bin/krb5-config/Makefile
+++ b/kerberos5/usr.bin/krb5-config/Makefile
@@ -5,8 +5,12 @@ MAN= krb5-config.1
CLEANFILES= krb5-config
+# In order for this to work on MacOS we need to set LC_ALL=C since the
+# krb5-config.in file contains characters that will be rejected by MacOS with
+# a UTF-8 locale (see https://stackoverflow.com/a/23584470/894271)
+# TODO: Should we just require LC_ALL=C during the build?
krb5-config: krb5-config.in
- sed -e "s,@PACKAGE@,FreeBSD heimdal,g" \
+ env LC_ALL=C sed -e "s,@PACKAGE@,FreeBSD heimdal,g" \
-e "s,@VERSION@,1.1.0,g" \
-e "s,@prefix@,/usr,g" \
-e "s,@exec_prefix@,/usr,g" \