Source: ruby-standalone Version: 0.5 Severity: wishlist Tags: patch User: [email protected] Usertags: locale timestamps X-Debbugs-Cc: [email protected]
Hi! While working on the "reproducible builds" effort [1], we have noticed that ruby-standalone could not be built reproducibly. The language of the date in the manpage varies by configured locale. The attached patch fixes this by setting LC_ALL instead of LANG to C, and also normalizes the date output to use UTC. Regards, Reiner [1]: https://wiki.debian.org/ReproducibleBuilds
diff --git a/Makefile b/Makefile index dfe3f10..bece71c 100644 --- a/Makefile +++ b/Makefile @@ -39,7 +39,7 @@ ruby-standalone.1: README.md -V section:1 \ -V footer:ruby-standalone \ -V header:'User commands' \ - -V date:"$(shell LANG=C date -d "$(dpkg-parsechangelog -SDate)" '+%B %Y')" \ + -V date:"$(shell LC_ALL=C date -u -d "$(dpkg-parsechangelog -SDate)" '+%B %Y')" \ -o $@ $< sed -i -e '2 s/\.SH\s*/\.SH NAME\n/' $@
signature.asc
Description: OpenPGP digital signature

