Debian Bug report logs - #1024007
haskell98-report: reproducible builds: timestamp embedded in .ps files

Package: src:haskell98-report; Maintainer for src:haskell98-report is Debian QA Group <packages@qa.debian.org>;

Reported by: Vagrant Cascadian <vagrant@reproducible-builds.org>

Date: Sun, 13 Nov 2022 18:27:04 UTC

Severity: normal

Tags: patch

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, reproducible-bugs@lists.alioth.debian.org, Debian QA Group <packages@qa.debian.org>:
Bug#1024007; Package src:haskell98-report. (Sun, 13 Nov 2022 18:27:06 GMT) (full text, mbox, link).


Acknowledgement sent to Vagrant Cascadian <vagrant@reproducible-builds.org>:
New Bug report received and forwarded. Copy sent to reproducible-bugs@lists.alioth.debian.org, Debian QA Group <packages@qa.debian.org>. (Sun, 13 Nov 2022 18:27:06 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Vagrant Cascadian <vagrant@reproducible-builds.org>
To: submit@bugs.debian.org
Subject: haskell98-report: reproducible builds: timestamp embedded in .ps files
Date: Sun, 13 Nov 2022 10:26:12 -0800
[Message part 1 (text/plain, inline)]
Source: haskell98-report
Severity: normal
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-bugs@lists.alioth.debian.org

The build time was embedded in several .ps files:

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

  /usr/share/doc/haskell98-report/ffi.ps.gz

  %DVIPSSource:··TeX·output·2023.12.08:1504
  vs.
  %DVIPSSource:··TeX·output·2022.11.06:1057

The attached patch to debian/rules fixes this by setting the
FORCE_SOURCE_DATE environment variable, which ensures that texlive
respects SOURCE_DATE_EPOCH to set the timestamp.

According to my local tests, with this patch applied, haskell98-report should
build reproducibly on tests.reproducible-builds.org!

Thanks for maintaining haskell98-report!

live well,
  vagrant
[0001-debian-rules-Set-FORCE_SOURCE_DATE-for-reproducible-.patch (text/x-diff, inline)]
From c5f0a7284e26e38663fb9862d976fb10a9949fd1 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Sun, 13 Nov 2022 18:18:44 +0000
Subject: [PATCH] debian/rules: Set FORCE_SOURCE_DATE for reproducible builds.

https://tests.reproducible-builds.org/debian/issues/unstable/timestamps_in_ps_generated_by_dvips_issue.html
---
 debian/rules | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/debian/rules b/debian/rules
index a1c1a5c..0744c4e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,4 +1,8 @@
 #!/usr/bin/make -f
+
+# Ensure texlive respects SOURCE_DATE_EPOCH for reproducible builds
+export FORCE_SOURCE_DATE=1
+
 %:
 	dh $@
 
-- 
2.38.1

[signature.asc (application/pgp-signature, inline)]

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed May 17 11:31:36 2023; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.