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

The build timestamp is embedded in various /usr/share/doc/erlang-proper/

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

  /usr/share/doc/erlang-proper-doc/edoc/overview-summary.html

  <p><b>Version:</b>·Apr·17·2023·19:21:38</p>
  vs.
  <p><b>Version:</b>·May·21·2024·03:46:23</p>

The attached patch to debian/rules fixes this removing the lines
embedding these timestamps.

An alternate approach might be to get erlang-edoc to support
SOURCE_DATE_EPOCH:

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


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

Thanks for maintaining erlang-proper!

live well,
  vagrant
From e0f75a842067878dcd9f51b5fb40b628e7be7802 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagr...@reproducible-builds.org>
Date: Sat, 10 Jun 2023 08:02:22 -0700
Subject: [PATCH] debian/rules: Remove embedded build date from documentation.

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

diff --git a/debian/rules b/debian/rules
index 44ec97e..3773cfd 100755
--- a/debian/rules
+++ b/debian/rules
@@ -17,3 +17,5 @@ override_dh_installdocs-indep:
 	mv $(CURDIR)/debian/erlang-proper-doc/usr/share/doc/erlang-proper/doc \
 		$(CURDIR)/debian/erlang-proper-doc/usr/share/doc/erlang-proper-doc/edoc
 	rm -rf $(CURDIR)/debian/erlang-proper-doc/usr/share/doc/erlang-proper-doc/edoc/overview.edoc
+	# Remove embedded build date for reproducible builds
+	sed -i -e 's,<p><b>Version:</b>.*</p>,,g' debian/erlang-proper-doc/usr/share/doc/erlang-proper-doc/edoc/*.html
-- 
2.39.2

Attachment: signature.asc
Description: PGP signature

Reply via email to