Source: guymager
Severity: normal
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org

The date is embedded in /usr/share/man/man1/guymager.1.gz:

  
https://tests.reproducible-builds.org/debian/rb-pkg/bookworm/amd64/diffoscope-results/guymager.html

  TH·guymager·1·"2023-11-10"·"version·0.8.13-1
  vs.
  TH·guymager·1·"2022-10-09"·"version·0.8.13-1

The attached patch to the upstream manuals/rebuild.sh file fixes this by
using SOURCE_DATE_EPOCH to determine the date to embed in the manpage.

According to my local tests, with this patch applied guymager should
build reproducibly on tests.reproducible-builds.org once it migrates to
bookworm/testing! There are other outstanding issues with build-paths,
which are only tested on unstable/experimental.

Thanks for maintaining guymager!

live well,
  vagrant
From af2c2f8de89f0aba6c1579d94f4a70c957aba5ff Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagr...@reproducible-builds.org>
Date: Sun, 9 Oct 2022 23:28:44 +0000
Subject: [PATCH 2/2] manuals/rebuild.sh: Use SOURCE_DATE_EPOCH to set the date
 used for manpages.

https://reproducible-builds.org/docs/source-date-epoch/
---
 manuals/rebuild.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/manuals/rebuild.sh b/manuals/rebuild.sh
index bdb4311..b8cf453 100755
--- a/manuals/rebuild.sh
+++ b/manuals/rebuild.sh
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-TH_Date=`date '+%Y-%m-%d'`
+TH_Date=`date --utc --date=@${SOURCE_DATE_EPOCH} '+%Y-%m-%d'`
 TH_Source=`head -qn 1 ../debian/changelog ../changelog 2>/dev/null | awk '{
                                                   Version = $2
                                                   gsub ("\\\\(", "", Version)
-- 
2.37.2

Attachment: signature.asc
Description: PGP signature

Reply via email to