Source: tcsh Version: 6.18.01-3 Severity: wishlist Tags: patch User: [email protected] Usertags: locale X-Debbugs-Cc: [email protected]
Hi! While working on the "reproducible builds" effort [1], we have noticed that tcsh could not be built reproducibly. Sort behaves differently depending on the configured locale. The attached patch fixes this by calling sort with LC_ALL set to C. Regards, Reiner [1]: https://wiki.debian.org/ReproducibleBuilds
diff --git a/Makefile.in b/Makefile.in
index cff1487..5e17cad 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -533,7 +533,7 @@ tc.const.h: tc.const.c sh.char.h config.h config_f.h sh.types.h sh.err.h
${CPP} $(CPPFLAGS) ${DFLAGS} ${EXTRAFLAGS} -D_h_tc_const\
$(srcdir)/tc.const.c | \
sed -n -e 's/^\(Char STR[a-zA-Z0-9_]*\) *\[ *\].*/extern \1[];/p' | \
- sort >> [email protected]
+ LC_ALL=C sort >> [email protected]
@echo '#endif /* _h_tc_const */' >> [email protected]
@if [ -f $@ ] && cmp -s [email protected] $@; then echo $@ unchanged.; rm -f [email protected]; else mv -f [email protected] $@; echo $@ recreated.; fi
signature.asc
Description: OpenPGP digital signature

