Bug#1005408: wcwidth: reproducible-builds: build path and timestamp embedded in unicode_versions.py

Vagrant Cascadian vagrant at reproducible-builds.org
Sat Feb 12 22:16:35 GMT 2022


Source: wcwidth
Severity: normal
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: buildpath timestamps
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org

Builds in a different source directory and at a different time trigger
reproducibility issues in the generated file
/usr/lib/python3/dist-packages/wcwidth/unicode_versions.py:


│ │ │ ├── ./usr/lib/python3/dist-packages/wcwidth/unicode_versions.py
│ │ │ │ @@ -1,11 +1,11 @@
│ │ │ │  """
│ │ │ │  Exports function list_versions() for unicode version level support.
│ │ │ │
│ │ │ │ -This code generated by /tmp/reprotest.WGluB5/const_build_path/bin/update-tables.py on 2022-02-12 21:45:53.764832.
│ │ │ │ +This code generated by /tmp/reprotest.WGluB5/build-experiment-1/bin/update-tables.py on 2023-06-01 05:54:05.897865.
│ │ │ │  """
│ │ │ │
│ │ │ │
│ │ │ │  def list_versions():
│ │ │ │      """
│ │ │ │      Return Unicode version levels supported by this module release.

The attached patch fixes this by modifying update-tables.py to not add
comment to files it generates, which is presumably safe to do...


With this patch applied, wcwidth should build reproducibly on
tests.reproducible-builds.org!


Thanks for maintaining wcwidth!


live well,
  vagrant
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-bin-update-tables.py-Remove-comment-which-embeds-the.patch
Type: text/x-diff
Size: 797 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/reproducible-bugs/attachments/20220212/c1f757c9/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 227 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/reproducible-bugs/attachments/20220212/c1f757c9/attachment.sig>


More information about the Reproducible-bugs mailing list