Bug#846832: patat: please make the build reproducible (locale)

Daniel Shahaf danielsh at apache.org
Sat Dec 3 15:06:09 UTC 2016


Source: patat
Version: 0.4.4.0-1
Severity: wishlist
Tags: upstream patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: locale

Hi!

While working on the “reproducible builds” effort [1], we have noticed
that patat could not be built reproducibly.

While it already uses $SOURCE_DATE_EPOCH, it renders that date in
a locale-dependent manner.

Patch attached.

Thanks,

Daniel

 [1]: https://wiki.debian.org/ReproducibleBuilds

[[[
diff --git a/Makefile b/Makefile
index 5ca60d4..68c36b4 100644
--- a/Makefile
+++ b/Makefile
@@ -9,7 +9,7 @@ SOURCE_DATE_EPOCH?=$(shell date '+%s' \
 					   --date="$(shell git log -1 --format=%cd --date=rfc)")
 
 # Prettify the date.
-SOURCE_DATE=$(shell date '+%B %d, %Y' -d "@${SOURCE_DATE_EPOCH}")
+SOURCE_DATE=$(shell env LC_ALL=C date '+%B %d, %Y' -d "@${SOURCE_DATE_EPOCH}")
 
 extra/patat.1: README.md extra/make-man
 	SOURCE_DATE="$(SOURCE_DATE)" ./extra/make-man >$@
]]]



More information about the Reproducible-bugs mailing list