Source: btrfsmaintenance Severity: normal Tags: patch User: reproducible-bui...@lists.alioth.debian.org Usertags: timestamps locale X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org
The build timestamp is embedded in /usr/share/man/man8/btrfsmaintenance.8.gz: https://tests.reproducible-builds.org/debian/rb-pkg/unstable/arm64/diffoscope-results/btrfsmaintenance.html .TH·BTRFSMAINTENANCE·8·"12·March,·2022"·v0.5 vs. .TH·BTRFSMAINTENANCE·8·"13·March,·2022"·v0.5 The attached patch fixes this by passing the --utc argument to date in debian/create-man-page.sh and by using a locale-independent date format. With this patch applied, btrfsmaintenance should build reproducibly on tests.reproducible-builds.org! Thanks for maintaining btrfsmaintenance! live well, vagrant
From b7b79e3fa70b925e173e4c21aa6022a6a0a5987e Mon Sep 17 00:00:00 2001 From: Vagrant Cascadian <vagr...@reproducible-builds.org> Date: Sat, 12 Mar 2022 22:37:04 +0000 Subject: [PATCH] debian/create-man-page.sh: Use UTC timezone and a locale-idependent date string. Without this, the locale may output a translated month, or building in a different timezone may result in a different day or month. --- debian/create-man-page.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/create-man-page.sh b/debian/create-man-page.sh index 9057e4d..5d8fa39 100755 --- a/debian/create-man-page.sh +++ b/debian/create-man-page.sh @@ -1,6 +1,6 @@ #!/bin/sh -man_date=$(date -d "@$(dpkg-parsechangelog -STimestamp)" +"%d %B, %Y") +man_date=$(date --utc -d "@$(dpkg-parsechangelog -STimestamp)" +"%Y-%m-%d") cat << EOF > debian/tmp/btrfsmaintenance.md % BTRFSMAINTENANCE 8 "$man_date" v$DEB_VERSION_UPSTREAM -- 2.35.1
signature.asc
Description: PGP signature