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

Bug#990844: libtheora: reproducible builds: Embedded timestamps in PDF file



Source: libtheora
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/libtheora-dev/Theora.pdf.gz:

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

  June·15,·2021
  vs.
  July·19,·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/


With this patch and the recently submitted patch removing
examples/Makefile, libtheora should build reproducibly on
tests.reproducible-builds.org


Thanks for maintaining libtheora!


live well,
  vagrant
From 8d3b41850e12792aefed8ea8da6d51e8792abe68 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Fri, 9 Jul 2021 05:37:35 +0000
Subject: [PATCH 1/2] debian/rules: Set FORCE_SOURCE_DATE=1 in order for
 texlive to respect SOURCE_DATE_EPOCH when generating PDF.

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 874cf23..c9de1d0 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,6 +4,9 @@ CONFIG_SHELL = /bin/sh
 export CONFIG_SHELL
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 
+# Ensure texlive respects SOURCE_DATE_EPOCH
+export FORCE_SOURCE_DATE=1
+
 %:
 	dh $@
 
-- 
2.32.0

Attachment: signature.asc
Description: PGP signature


Reply to: