[pkg-tasktools] Bug#1046804: fixed in tasksh 1.2.0-2
Santiago Vila
sanvila at debian.org
Fri Dec 26 12:02:30 GMT 2025
Hello Andreas.
> * d/rules: Fix clean target
> Closes: #1046804
As I'm currently looking at those bugs, I'm always curious about
how other people fix them.
In this package the file cmake.h has not any "precious" status,
and it does not really need to be preserved.
The package builds the same regardless of its contents, so in this
case you can just remove the file before the build starts, as in the
attached patch (where we use debian/clean).
Thanks.
-------------- next part --------------
commit 927cdecc25ddf1afbc71be28bb2caa46e36236d9
Author: Santiago Vila <sanvila at debian.org>
Date: Fri Dec 26 12:50:00 2025 +0100
Fix clean target in a more simple way.
diff --git a/debian/clean b/debian/clean
new file mode 100644
index 0000000..044d064
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1 @@
+cmake.h
diff --git a/debian/rules b/debian/rules
index 2f87616..d8309f6 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,11 +4,3 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all
%:
dh $@
-
-override_dh_auto_configure:
- cp -a cmake.h cmake.h~
- dh_auto_configure
-
-override_dh_clean:
- if [ -e cmake.h~ ] ; then mv cmake.h~ cmake.h ; fi
- dh_clean
More information about the pkg-tasktools-discuss
mailing list