Source: jacal Version: 1b9-6 Severity: wishlist Tags: patch User: reproducible-builds@lists.alioth.debian.org Usertags: locale X-Debbugs-Cc: reproducible-builds@lists.alioth.debian.org
Hi! While working on the "reproducible builds" effort [1], we have noticed that jacal could not be built reproducibly. The release date varies depending on the locale. The attached patch fixes this by using the C locale for getting the date. Regards, Reiner [1]: https://wiki.debian.org/ReproducibleBuilds
diff --git a/debian/patches/0005-reproducible-build.patch b/debian/patches/0005-reproducible-build.patch index dc2893e..4fac466 100644 --- a/debian/patches/0005-reproducible-build.patch +++ b/debian/patches/0005-reproducible-build.patch @@ -22,7 +22,7 @@ index 0c2db13..e947491 100644 ver = $(VERSION) +fmt = '%B %Y' +ifdef SOURCE_DATE_EPOCH -+jacaldate = $(shell date -u -d "@$(SOURCE_DATE_EPOCH)" "+$(fmt)" 2>/dev/null || date -u -r "$(SOURCE_DATE_EPOCH)" "+$(fmt)" 2>/dev/null || date -u "+$(fmt)") ++jacaldate = $(shell LC_ALL=C date -u -d "@$(SOURCE_DATE_EPOCH)" "+$(fmt)" 2>/dev/null || LC_ALL=C date -u -r "$(SOURCE_DATE_EPOCH)" "+$(fmt)" 2>/dev/null || LC_ALL=C date -u "+$(fmt)") +else +jacaldate = $(shell date "+$(fmt)") +endif
signature.asc
Description: PGP signature
_______________________________________________ Reproducible-builds mailing list Reproducible-builds@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds