Tags: patch
For some reason, the scons invocation does some building - generating
brushlib/brushsettings.pyc - and because debain/rules's $(shell find
...) is evaluated when make initialises, the clean target fails to
clean up properly. Repeated invocations of "clean" flip the package
directory between a state where it has a brushlib/brushsettings.pyc and
a state where that file is absent. Running the find after scons has
run makes the problem go away.
Patch attached. This one should be applied after the one pending in bug
545387 ideally, but does not depend on it.
--
Andrew Chadwick
diff -rU3 mypaint-0.7.1/debian/rules mypaint-0.7.1+ftbfsfix/debian/rules
--- mypaint-0.7.1/debian/rules 2009-09-21 12:49:40.000000000 +0100
+++ mypaint-0.7.1+ftbfsfix/debian/rules 2009-09-21 12:48:50.602277362 +0100
@@ -14,7 +14,8 @@
dh_testroot
rm -f build-stamp
scons -c
- rm -f lib/mypaintlib_wrap.cpp options.cache .sconsign.dblite $(shell find . -name "*.pyc")
+ rm -f lib/mypaintlib_wrap.cpp options.cache .sconsign.dblite
+ find . -type f -name "*.pyc" -exec rm -vf {} \;
dh_clean
install: build