reopen 1045287
tags 1045287 patch
severity 1045287 normal
thanks

On Sun, Feb 22, 2026 at 06:04:21AM +0000, Christopher Obbard wrote:
> close 1045287 2026.01-1

Hi. This is not fixed. When trying to build source after binary build,
this is what happens:

dpkg-source: info: local changes detected, the modified files are:
 lava-2026.01/.pybuild/cpython3_3.13/.pydistutils.cfg
 lava-2026.01/lava_common.egg-info/PKG-INFO
 lava-2026.01/lava_common.egg-info/SOURCES.txt
 lava-2026.01/lava_common.egg-info/dependency_links.txt
 lava-2026.01/lava_common.egg-info/not-zip-safe
 lava-2026.01/lava_common.egg-info/top_level.txt
 lava-2026.01/lava_coordinator.egg-info/PKG-INFO
 lava-2026.01/lava_coordinator.egg-info/SOURCES.txt
 lava-2026.01/lava_coordinator.egg-info/dependency_links.txt
 lava-2026.01/lava_coordinator.egg-info/not-zip-safe
 [... and lots of lines similar to the ones above ...]

The main problem here is that the default dh_auto_clean usually takes
care of that, but it does not work because it's not included in the
current override_dh_auto_clean.

The attached patch works for me by changing "override_dh_auto_clean"
to "execute_after_dh_auto_clean" (and dropping lots of unnecessary
lines while we are at it).

Thanks.
commit 538d21a77c29506a819bafc8f310e2566e1ef6ac
Author: Santiago Vila <[email protected]>
Date:   Sun Feb 22 11:30:00 2026 +0100

    Fix clean target. Closes: #1045287.

diff --git a/debian/rules b/debian/rules
index e984cada8..03e085761 100755
--- a/debian/rules
+++ b/debian/rules
@@ -105,14 +105,7 @@ override_dh_compress:
        $(RM) -r debian/lava/usr/lib
        $(RM) -r debian/lava/usr/bin
 
-override_dh_auto_clean:
-       python3 setup.py clean -a
-       find . -path '*/__pycache__/*' -delete
-       $(RM) -r lava.egg-info .idea/ build/
-       $(RM) -r .eggs/ versiontools-*.egg/ doc/build/ doc/html/
-       find . -type d -name '__pycache__' -empty -delete
-       $(RM) -r dist/
-       $(RM) debian/*.service
+execute_after_dh_auto_clean:
        $(RM) common-requirements.txt dispatcher-requirements.txt 
server-requirements.txt
        [ ! -f doc/v2/Makefile ] || make -C doc/v2/ clean
        [ ! -f man/Makefile ] || make -C man/ clean

Reply via email to