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

Bug#978577: coinor-symphony: reproducible builds: Embedded timestamps in PDF files



Source: coinor-symphony
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 /usr/share/doc/coinor-libsymphony-doc/man.pdf.gz:

  https://tests.reproducible-builds.org/debian/rb-pkg/bullseye/amd64/diffoscope-results/coinor-symphony.html

  November·29,·2020
  vs.
  January·2,·2022

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/

While this alone does not fix all reproducibility issues in
coinor-symphony (e.g. build paths), it should be reproducible once it
lands in bullseye, which does not vary build paths in the reproducible
builds test infrastructure.

Thanks for maintaining coinor-symphony!

live well,
  vagrant
From e0f55da79c9c08ce566eb0808e765addde35ef44 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Mon, 28 Dec 2020 18:58:22 +0000
Subject: [PATCH 1/2] 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 6f39c85..fc42b74 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,6 +2,9 @@
 
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 
+# Ensure texlive respects SOURCE_DATE_EPOCH
+export FORCE_SOURCE_DATE=1
+
 %:
 	dh $@ --without autoreconf
 
-- 
2.30.0.rc2

Attachment: signature.asc
Description: PGP signature


Reply to: