Bug#1099516: sphinxcontrib-googleanalytics: please make the build reproducible
Chris Lamb
lamby at debian.org
Tue Mar 4 11:29:22 GMT 2025
Source: sphinxcontrib-googleanalytics
Version: 0.4-1
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org
Hi,
Whilst working on the Reproducible Builds effort [0], we noticed that
sphinxcontrib-googleanalytics could not be built reproducibly.
This is because the Python package's version embeds the current date,
which then ends up in filenames and file contents. For example:
\\\\////
--- ./usr/lib/python3/dist-packages/sphinxcontrib_googleanalytics-0.4.dev20250303.dist-info/METADATA
+++ ./usr/lib/python3/dist-packages/sphinxcontrib_googleanalytics-0.4.dev20260406.dist-info/METADATA
@@ -1,10 +1,10 @@
Name: sphinxcontrib-googleanalytics
-Version: 0.4.dev20250303
+Version: 0.4.dev20260406
Summary: Sphinx extension googleanalytics
(Note the change of filename, too.)
Patch attached.
[0] https://reproducible-builds.org/
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` lamby at debian.org / chris-lamb.co.uk
`-
-------------- next part --------------
--- a/debian/patches/reproducible-build.patch 1970-01-01 01:00:00.000000000 +0100
--- b/debian/patches/reproducible-build.patch 2025-03-04 11:27:40.497444876 +0000
@@ -0,0 +1,14 @@
+Description: Make the build reproducible
+Author: Chris Lamb <lamby at debian.org>
+Last-Update: 2025-03-04
+
+--- sphinxcontrib-googleanalytics-0.4.orig/setup.cfg
++++ sphinxcontrib-googleanalytics-0.4/setup.cfg
+@@ -31,7 +31,6 @@ namespace_packages = sphinxcontrib
+
+ [egg_info]
+ tag_build = dev
+-tag_date = true
+
+ [aliases]
+ release = egg_info -RDb ''
--- a/debian/patches/series 1970-01-01 01:00:00.000000000 +0100
--- b/debian/patches/series 2025-03-04 11:27:39.669439555 +0000
@@ -0,0 +1 @@
+reproducible-build.patch
More information about the Reproducible-bugs
mailing list