Source: bibtexparser
Version: 2.0.0b5+really1.4.3-1
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: nocheck
X-Debbugs-Cc: [email protected]
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
`. `'` [email protected] / chris-lamb.co.uk
`-
--- 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