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

Bug#995646: abntex: reproducible builds: Embedded timestamps in .dvi file



Source: abntex
Severity: normal
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-bugs@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/abntex.html

  /usr/share/doc/abntex/abnt-bibtex-alf-doc.dvi.gz

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

  ...08.14:0757
vs.
  ...09.17:1623

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, abntex should build reproducibly on
tests.reproducible-builds.org

Thanks for maintaining abntex!

live well,
  vagrant
From d9f085c50a8eb9979d12f56de6d72300a6f279c4 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Sun, 3 Oct 2021 16:24:22 +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 3d1944c..420a7cf 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,6 +2,9 @@
 
 #export DH_VERBOSE=1
 
+# Ensure texlive respects SOURCE_DATE_EPOCH
+export FORCE_SOURCE_DATE=1
+
 %:
 	dh $@
 
-- 
2.33.0

Attachment: signature.asc
Description: PGP signature


Reply to: