[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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



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
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

Attachment: signature.asc
Description: PGP signature


Reply to: