Bug#1117494: python-can: please make the build reproducible

Chris Lamb lamby at debian.org
Mon Oct 6 17:52:56 BST 2025


Source: python-can
Version: 4.6.1-1
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: environment
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org

Hi,

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

This is because the documentation calls out to Python 2.x and the
error message that gets embedded in the documentation varies depending
on the shell (eg. dash vs. bash):

│ │ │ │ -/bin/sh: 1: python: not found
│ │ │ │ +/bin/sh: line 1: python: command not found

This is, in turn, caused by the debian/patches/python3.patch patch
being slightly incomplete, we also need to patch the can.bridge bit:

  --- a/doc/scripts.rst	2025-10-06 09:41:22.757481287 -0700
  --- b/doc/scripts.rst	2025-10-06 09:49:15.270426016 -0700
  @@ -62,7 +62,7 @@
 
   A small application that can be used to connect two can buses:
 
  -.. command-output:: python -m can.bridge -h
  +.. command-output:: python3 -m can.bridge -h
       :shell:


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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- a/doc/scripts.rst	2025-10-06 09:41:22.757481287 -0700
--- b/doc/scripts.rst	2025-10-06 09:49:15.270426016 -0700
@@ -62,7 +62,7 @@
 
 A small application that can be used to connect two can buses:
 
-.. command-output:: python -m can.bridge -h
+.. command-output:: python3 -m can.bridge -h
     :shell:
 
 


More information about the Reproducible-bugs mailing list