Your message dated Sat, 27 Sep 2025 10:38:44 +0000
with message-id <[email protected]>
and subject line Bug#1017475: fixed in sphinx-panels 0.6.0-6
has caused the Debian Bug report #1017475,
regarding sphinx-panels: please make the build reproducible
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1017475: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1017475
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: sphinx-panels
Version: 0.6.0-2
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: randomness
X-Debbugs-Cc: [email protected]

Hi,

Whilst working on the Reproducible Builds effort [0] we noticed that
sphinx-panels could not be built reproducibly.

This is because it uses Python's uuid.uuid4 to generate unique
identifiers, but those numbers are random/nondeterminstic by design.
I've attached a patch that will seed these random numbers from
SOURCE_DATE_EPOCH if it exists, otherwise it will revert back to
random numbers.

  [0] https://reproducible-builds.org/


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      [email protected] / chris-lamb.co.uk
       `-
diff --git a/sphinx_panels/tabs.py b/sphinx_panels/tabs.py
index ac2a546..725a5f4 100644
--- a/sphinx_panels/tabs.py
+++ b/sphinx_panels/tabs.py
@@ -1,4 +1,8 @@
-from uuid import uuid4
+import os
+import random
+import time
+import uuid
+
 from typing import Optional
 
 from docutils import nodes
@@ -10,6 +14,9 @@ from sphinx.util.nodes import NodeMatcher
 
 LOGGER = getLogger(__name__)
 
+rnd = random.Random()
+rnd.seed(os.environ.get("SOURCE_DATE_EPOCH", time.time()))
+
 
 def setup_tabs(app):
     app.add_directive("tabbed", TabbedDirective)
@@ -122,7 +129,7 @@ class TabbedHtmlTransform(SphinxPostTransform):
     formats = ("html",)
 
     def get_unique_key(self):
-        return str(uuid4())
+        return uuid.UUID(int=rnd.getrandbits(128), version=4).hex
 
     def run(self):
         matcher = NodeMatcher(nodes.container, type="tabbed")

--- End Message ---
--- Begin Message ---
Source: sphinx-panels
Source-Version: 0.6.0-6
Done: Dmitry Shachnev <[email protected]>

We believe that the bug you reported is fixed in the latest version of
sphinx-panels, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Dmitry Shachnev <[email protected]> (supplier of updated sphinx-panels package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sat, 27 Sep 2025 12:47:39 +0300
Source: sphinx-panels
Architecture: source
Version: 0.6.0-6
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <[email protected]>
Changed-By: Dmitry Shachnev <[email protected]>
Closes: 1017475
Changes:
 sphinx-panels (0.6.0-6) unstable; urgency=medium
 .
   * Team upload.
 .
   [ Alexandre Detiste ]
   * Tighten autopkgtest dependencies
   * Make the build reproducible (Closes: #1017475)
   * Drop "Rules-Requires-Root: no"
 .
   [ Dmitry Shachnev ]
   * Add a patch to make the tests pass with Docutils 0.22.
   * Run the autopkgtest for all supported Python versions.
   * Fix Lintian warnings regarding debian/copyright.
   * Sort CSS files for reproducibility.
Checksums-Sha1:
 b122a1f3da1fbaf78049177a6c59e7845f954ddc 2413 sphinx-panels_0.6.0-6.dsc
 cc63148343d811242c2900b1e5925861cdc89c14 5880 
sphinx-panels_0.6.0-6.debian.tar.xz
 931496884d3d1192c9662be2066eb697b120e448 8953 
sphinx-panels_0.6.0-6_source.buildinfo
Checksums-Sha256:
 2e15c93de79ad2dd065581ed72f9d9e3c10f2669ff28cee9916f0c3de4ae21ca 2413 
sphinx-panels_0.6.0-6.dsc
 05c22bd11619f93daa1e1d206969f04212adf152399af6c36945cd0f1a12ce26 5880 
sphinx-panels_0.6.0-6.debian.tar.xz
 d1ff315318ae956b35fdd3e41edad346bb878d7b578643752af1d97c4deb72bd 8953 
sphinx-panels_0.6.0-6_source.buildinfo
Files:
 7c497bec1da3f8dba59cd13e407b3c4d 2413 python optional sphinx-panels_0.6.0-6.dsc
 2bb81b8a4beba84b52526fa40047eb86 5880 python optional 
sphinx-panels_0.6.0-6.debian.tar.xz
 08b7bac8ace735f7a2def48ddb33feea 8953 python optional 
sphinx-panels_0.6.0-6_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJHBAEBCgAxFiEE8kKZ/xu8kBi5BqTLYCaTbS8ciuAFAmjXueETHG1pdHlhNTdA
ZGViaWFuLm9yZwAKCRBgJpNtLxyK4AaVD/909O5LMcDq2iiQFMYLS7V7SO43JPey
HVLn/10vrRdaTLGUAnEwd9qf+7FBfYc/OdPRgGLiIzPyk7Z2JSKx0/OszoRuhbAP
SOY/E5loznThJq+2TPK1ITcFP/Rcgcm5pE0YcHItSW0JNudAq2F8AjqO3dY0f2c8
X5mtcI31yWVIfska8RbJs94EvJWvZdheQyGbPZLg3vN4MYIBBn3VzHiX6qiQYXrU
giJqUrxin6FYmJGnd933DJruY0Kq4CbArVsj8PUktz2IHyYVhp9KZFWz3fhfoGVB
TycLEWgWdpwj3B3C5UwSVR1LT08OllP1KIsko0tG8oSrzP3tdNYd3GZUWLp4Sz75
Tuo8LJRMX0DQaS+qp50j9br6moh4G2RiD6JUmnAe3iBJNgcKxmmKWxoet1eUysZS
E7+qwBVi5oG65g/zS9jiszTHfIZg4IUyvguJ8L3T9D+TRz6F9f9+hXm4LmUXrREJ
W77fiUqADxktOhlY8s9+fYAzZ1e0G7/K3ALEm0MMKY2yYt6gsVnJtgtlq7enXDs7
V8oTPw+K2fa6aHzhrEYJw25r4Utg0sPUTfy7DKt5XgePykp4hHGH2WpzkOOqqW1K
Pt6QZtqIBMUOoUMU61rAE3KR+1+2uUxIDGjXsbO61v/VbuCjPkf/WyPdUPH/y9hX
2Whv3JptwNxD1A==
=V0v8
-----END PGP SIGNATURE-----

Attachment: pgpsyxRkkQv1t.pgp
Description: PGP signature


--- End Message ---

Reply via email to