Bug#1122226: bibtexparser: please make the build reproducible
Chris Lamb
lamby at debian.org
Mon Dec 8 23:17:55 GMT 2025
Source: bibtexparser
Version: 2.0.0b5+really1.4.3-1
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: nocheck
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org
Hi,
Whilst working on the Reproducible Builds effort [0], we noticed that
bibtexparser could not be built reproducibly.
This is because if the tests are run or not, the mtimes of various files
are changed via a "cp" call. A patch is attached that uses "cp -a" to
also copy the (deterministic) source modification times.
[0] https://reproducible-builds.org/
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` lamby at debian.org / chris-lamb.co.uk
`-
-------------- next part --------------
--- a/debian/rules 2025-12-08 15:11:17.778060961 -0800
--- b/debian/rules 2025-12-08 15:16:03.033356766 -0800
@@ -2,8 +2,8 @@
export DH_VERBOSE=1
export PYBUILD_NAME=bibtexparser
-export PYBUILD_BEFORE_TEST=cp -r {dir}/bibtexparser {build_dir};cd {build_dir};
-export PYBUILD_BEFORE_TEST_python3=cp -r {dir}/bibtexparser {build_dir}; \
+export PYBUILD_BEFORE_TEST=cp -ar {dir}/bibtexparser {build_dir};cd {build_dir};
+export PYBUILD_BEFORE_TEST_python3=cp -ar {dir}/bibtexparser {build_dir}; \
cd {build_dir};
export PYBUILD_AFTER_TEST=rm -rf {build_dir}/bibtexparser/tests
export PYBUILD_AFTER_TEST_python3=rm -rf {build_dir}/bibtexparser/tests
More information about the Reproducible-bugs
mailing list