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

Several PDFs shipped in various debian-faq packages embed the build date:

  
https://tests.reproducible-builds.org/debian/rb-pkg/bullseye/amd64/diffoscope-results/debian-faq.html
  
  /usr/share/doc/debian/FAQ/debian-faq.de.pdf.gz
  2     5.·Januar·2022          2       3.·Dezember·2020

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/

live well,
  vagrant

From 7176b957c5e7d3adaa539ac9f9eb70285ad7ccea Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagr...@reproducible-builds.org>
Date: Thu, 3 Dec 2020 19:20:06 +0000
Subject: [PATCH] debian/rules: Set FORCE_SOURCE_DATE=1 in order for texlive to
 respect SOURCE_DATE_EPOCH for reproducible timestamps.

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 64bb6b8..f3f359d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,5 +1,8 @@
 #!/usr/bin/make -f
 
+# Needed for texlive to respect SOURCE_DATE_EPOCH when setting date
+export FORCE_SOURCE_DATE=1
+
 %:
 	dh $@
 
-- 
2.29.2

Attachment: signature.asc
Description: PGP signature

Reply via email to