summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-08-14 08:38:29 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-08-14 08:53:52 +0000
commit967ef8231e53d2e18b37b7cc18414072a04a4df0 (patch)
tree7c7db5d8b6134a0a34ce713a9411b11f673a0e28
parentReleasing debian version 2.1.3-1. (diff)
downloaddnscap-967ef8231e53d2e18b37b7cc18414072a04a4df0.tar.xz
dnscap-967ef8231e53d2e18b37b7cc18414072a04a4df0.zip
Removing generated files to fix FTBFS when build twice in a row (Closes: #1044550).
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
-rwxr-xr-xdebian/rules10
1 files changed, 10 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules
index 025863b..6ce45aa 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,6 +3,16 @@
%:
dh ${@}
+execute_after_dh_auto_clean:
+ # remove generated files
+ rm -f plugins/*/dns.pcap-dist plugins/*/dns6.pcap-dist
+ rm -f src/test/*.out
+ rm -f src/test/frags.gold
+ for file in $$(find . -type f -name "*.in"); \
+ do \
+ rm -f "$$(dirname "$${file}")"/"$$(basename "$${file}" .in)"; \
+ done
+
execute_after_dh_auto_install:
# Removing useless files
rm -f debian/tmp/usr/lib/*/dnscap/*.la