Bug#1154605: python-inline-snapshot: please make the build reproducible [filesystem]
Chris Lamb
lamby at debian.org
Fri Nov 20 19:20:52 GMT 2026
Source: python-inline-snapshot
Version: 0.36.2-1
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: filesystem
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org
Hi,
Whilst working on the Reproducible Builds effort [0], we noticed that
python-inline-snapshot could not be built reproducibly.
Specifically, the documentation contained references to whichever
version of Python was used to build them, but this was nondetermistic
due to the use of:
PYTHONPATH=`dirname $$(find -type d -name "*dist-info" | head -n1)` […]
^
… in debian/rules. That "*dist-info" was expanded and, crucially, was
not then sorted, leading to the directory being chosen based on the
naive filesystem order.
Patch attached.
[0] https://reproducible-builds.org/
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` lamby at debian.org / chris-lamb.co.uk
`-
-------------- next part --------------
--- a/debian/rules 2026-11-20 18:47:56.143652731 +0000
--- b/debian/rules 2026-11-20 19:08:35.931232516 +0000
@@ -33,7 +33,7 @@
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
cp -a CHANGELOG.md CONTRIBUTING.md README.md mkdocs.yml docs src .pybuild && \
cd .pybuild && mkdir changelog.d && \
- HOME=$(CURDIR) PYTHONPATH=`dirname $$(find -type d -name "*dist-info" | head -n1)` && \
+ HOME=$(CURDIR) PYTHONPATH=`dirname $$(find -type d -name "*dist-info" | LC_ALL=C sort | head -n1)` && \
export PYTHONPATH && \
python3 -m mkdocs build -v --site-dir=../html
rm -f html/requirements.* html/sitemap.xml.gz
More information about the Reproducible-bugs
mailing list