Source: ltsp Version: 22.01-1 Severity: wishlist Tags: patch User: reproducible-bui...@lists.alioth.debian.org Usertags: timestamps X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org
Hi, Whilst working on the Reproducible Builds effort [0] we noticed that ltsp could not be built reproducibly. Whilst ltsp does use the date provided by SOURCE_DATE_EPOCH, when converting this to a text string it takes into account the current timezone. A patch is therefore attached that simply passes --utc to date(1) so that the date in the generated manpages is timezone agnostic. [0] https://reproducible-builds.org/ Regards, -- ,''`. : :' : Chris Lamb `. `'` la...@debian.org / chris-lamb.co.uk `-
--- a/debian/patches/reproducible-build.patch 1969-12-31 16:00:00.000000000 -0800 --- b/debian/patches/reproducible-build.patch 2022-02-05 11:05:15.577723278 -0800 @@ -0,0 +1,15 @@ +Description: Make the build reproducible +Author: Chris Lamb <la...@debian.org> +Last-Update: 2022-02-05 + +--- ltsp-22.01.orig/docs/Makefile.sh ++++ ltsp-22.01/docs/Makefile.sh +@@ -212,7 +212,7 @@ main() { + _VERSION=$(. ../ltsp/common/ltsp/55-ltsp.sh && echo "$_VERSION") + fi + if [ -n "$SOURCE_DATE_EPOCH" ]; then +- _DATE=$(date -d"@$SOURCE_DATE_EPOCH" "+%Y-%m-%d") ++ _DATE=$(date -u -d"@$SOURCE_DATE_EPOCH" "+%Y-%m-%d") + else + _DATE=$(date "+%Y-%m-%d") + fi --- a/debian/patches/series 2022-02-05 10:55:53.098635739 -0800 --- b/debian/patches/series 2022-02-05 11:05:14.469724095 -0800 @@ -0,0 +1 @@ +reproducible-build.patch