Bug#1064891: pytest-repeat: please make the build reproducible
Chris Lamb
lamby at debian.org
Tue Feb 27 10:44:43 GMT 2024
Source: pytest-repeat
Version: 0.9.3-1
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: shell
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org
Hi,
Whilst working on the Reproducible Builds effort [0], we noticed that
pytest-repeat could not be built reproducibly.
This was because of the use of echo "... \n ..." in debian/rules,
which emits a literal "\n" on shells other than Bash such as dash:
│ │ │ ├── ./usr/lib/python3/dist-packages/pytest_repeat.egg-info/entry_points.txt
│ │ │ │ @@ -1,2 +1 @@
│ │ │ │ -[pytest11]
│ │ │ │ -repeat = pytest_repeat
│ │ │ │ +[pytest11]\nrepeat = pytest_repeat
A patch is attached that uses printf instead.
[0] https://reproducible-builds.org/
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` lamby at debian.org / chris-lamb.co.uk
`-
-------------- next part --------------
--- a/debian/rules 2024-02-27 10:40:03.115731187 +0000
--- b/debian/rules 2024-02-27 10:42:13.759688623 +0000
@@ -1,7 +1,7 @@
#!/usr/bin/make -f
export PYBUILD_BEFORE_TEST=mkdir {build_dir}/pytest_repeat.egg-info && \
- echo "[pytest11]\nrepeat = pytest_repeat" > {build_dir}/pytest_repeat.egg-info/entry_points.txt
+ printf "[pytest11]\nrepeat = pytest_repeat\n" > {build_dir}/pytest_repeat.egg-info/entry_points.txt
%:
dh $@ --buildsystem=pybuild
More information about the Reproducible-bugs
mailing list