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

The build timestamp is embedded in various .dvi files:

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

  /usr/share/doc/fdutils/Fdutils.dvi.gz

  ··TeX·output·2021.
vs.
  ··TeX·output·2022.

  ··09.21:0514......
vs.
  ··10.24:1139......

The attached patch fixes this by setting FORCE_SOURCE_DATE=1 in
debian/rules, which texlive needs in order to respect SOURCE_DATE_EPOCH,
which is set during debian package builds to the timestamp in the latest
debian/changelog entry.

  https://reproducible-builds.org/docs/source-date-epoch/

With this patch applied, fdutils should build reproducibly on
tests.reproducible-builds.org

Thanks for maintaining fdutils!

live well,
  vagrant
From 240f44a97bec6af8271560526c0ca5f629ee6a3b Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagr...@reproducible-builds.org>
Date: Sun, 3 Oct 2021 17:00:13 +0000
Subject: [PATCH] debian/rules: Export FORCE_SOURCE_DATE=1 in order for texlive
 to respect SOURCE_DATE_EPOCH when generating .dvi file.

https://reproducible-builds.org/docs/source-date-epoch/
---
 debian/rules | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/debian/rules b/debian/rules
index 090d7a4..bee225b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,6 +6,9 @@ export DH_OPTIONS=-v
 
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 
+# Ensure texlive respects SOURCE_DATE_EPOCH
+export FORCE_SOURCE_DATE=1
+
 %:
 	dh $@ --no-parallel
 
-- 
2.33.0

Attachment: signature.asc
Description: PGP signature

Reply via email to