Source: lektor
Version: 3.3.14-0.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
lektor could not be built reproducibly.
This is because the package contents differ if the testsuite is run or
not. Specifically, a number of files are 'missing' from the .deb if
the testsuite is skipped, as they are movied into place via the
PYBUILD_BEFORE_TEST environment variable.
Patch attached that removes these files after running the tests. However,
if the package needs these files at runtime, then the packaging will
need to be rejigged (likely replacing PYBUILD_BEFORE_TEST with something
like PYBUILD_AFTER_BUILD).
[0] https://reproducible-builds.org/
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` [email protected] / chris-lamb.co.uk
`-
--- a/debian/rules 2026-09-04 11:47:38.824305886 +0100
--- b/debian/rules 2026-09-04 12:01:16.379842402 +0100
@@ -5,6 +5,7 @@
export PYBUILD_NAME=lektor
export PYBUILD_BEFORE_TEST=cp -r {dir}/lektor/translations
{dir}/lektor/quickstart-templates {build_dir}/lektor
+export PYBUILD_AFTER_TEST=rm -rf {build_dir}/lektor/translations
{build_dir}/lektor/quickstart-templates
export PYBUILD_TEST_ARGS=-m 'not requiresinternet' -k 'not
install_local_package'
%: