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

The date is embedded in a shipped PDF file:

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

  /usr/share/doc/libint-dev/progman.pdf.gz

  Created·on:·June·8,·2023
  vs.
  Created·on:·July·11,·2024

The attached patch sets FORCE_SOURCE_DATE in debian/rules to ensure that
texlive respects SOURCE_DATE_EPOCH for a reproducible date.

According to my local tests, with this patch applied libint should
build reproducibly on tests.reproducible-builds.org!

Thanks for maintaining libint!

live well,
  vagrant
From 7bba472a4e8c37d852ce89a6b9ad51c3a120e05d Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagr...@reproducible-builds.org>
Date: Sat, 10 Jun 2023 17:26:42 -0700
Subject: [PATCH] debian/rules: Avoid embedding build date in PDF.

Setting FORCE_SOURCE_DATE is necessary to get texlive to respect
SOURCE_DATE_EPOCH.

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 5b46154..2bd48be 100755
--- a/debian/rules
+++ b/debian/rules
@@ -16,6 +16,9 @@ export LDFLAGS  := $(shell dpkg-buildflags --get LDFLAGS) -Wl,--as-needed
 
 export AUTOHEADER = true
 
+# Ensure that texlive respects SOURCE_DATE_EPOCH for reproducible builds
+export FORCE_SOURCE_DATE=1
+
 %:
 	dh $@ --with autoreconf --parallel
 
-- 
2.39.2

Attachment: signature.asc
Description: PGP signature

Reply via email to