Source: pycparser
Version: 2.23-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
pycparser could not be built reproducibly.
This was because it ships a different binary package depending
on whether the tests are run or not, which was caused by the testsuite
not cleaning up the ast.pickle file (in addition to the various
other files already being cleaned).
Patch attached.
[0] https://reproducible-builds.org/
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` [email protected] / chris-lamb.co.uk
`-
--- a/debian/rules 2025-11-19 12:31:38.733645483 -0800
--- b/debian/rules 2025-11-19 12:34:44.673306189 -0800
@@ -4,7 +4,7 @@
export PYBUILD_BEFORE_TEST=ln -s {dir}/examples {dir}/utils {build_dir}
export PYBUILD_AFTER_TEST=rm -f {build_dir}/parser.out \
{build_dir}/lextab.py {build_dir}/yacctab.py \
- {build_dir}/utils {build_dir}/examples
+ {build_dir}/utils {build_dir}/examples {build_dir}/ast.pickle
%:
dh $@ --with python3 --buildsystem pybuild