Bug#1146687: lektor: please make the build reproducible
Chris Lamb
lamby at debian.org
Fri Sep 4 12:03:22 BST 2026
Source: lektor
Version: 3.3.14-0.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
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
`. `'` lamby at debian.org / chris-lamb.co.uk
`-
-------------- next part --------------
--- 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'
%:
More information about the Reproducible-bugs
mailing list