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

The generated PDF files included in the systemtap-doc package include
dates based on the build time, which breaks reproducible builds.

The attached patch enables use of SOURCE_DATE_EPOCH, by setting
FORCE_SOURCE_DATE=1, which texlive requires in order to respect
SOURCE_DATE_EPOCH.

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

live well,
  vagrant

From d69d87a871443123bd9431e83ec2b9b35472dea3 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagr...@reproducible-builds.org>
Date: Fri, 29 May 2020 22:51:16 +0000
Subject: [PATCH] Build .pdf files with reproducible date.

Add "export FORCE_SOURCE_DATE=1" from debian/rules to make texlive
respect the SOURCE_DATE_EPOCH variable when generating .pdf files.

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

diff --git a/debian/rules b/debian/rules
index f9a71f62f..38fcfad8e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -24,6 +24,8 @@ ifeq (,$(filter systemtap-runtime,$(shell dh_listpackages -a)))
   sdt_only := yes
 endif
 
+export FORCE_SOURCE_DATE=1
+
 %:
 	dh $@ --with autoreconf
 
-- 
2.20.1

Attachment: signature.asc
Description: PGP signature

Reply via email to