diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-08-14 09:50:40 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-08-14 09:51:00 +0000 |
commit | be370d0767b4c12b1d9c8d8ffc461be1a2962dff (patch) | |
tree | e0474f7b8372214fdbdb9f9fc044b9444a080d72 | |
parent | Releasing debian version 4.2+20230508-6. (diff) | |
download | mdadm-be370d0767b4c12b1d9c8d8ffc461be1a2962dff.tar.xz mdadm-be370d0767b4c12b1d9c8d8ffc461be1a2962dff.zip |
Removing generated files to fix FTBFS when build twice in a row (Closes: #1047538).
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rwxr-xr-x | debian/rules | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules index e05fee1..73813bc 100755 --- a/debian/rules +++ b/debian/rules @@ -25,6 +25,13 @@ export CONFFILE2="/etc/mdadm.conf" %: dh $@ +execute_after_dh_auto_clean: + # remove generated files + for file in $$(find . -type f -name "*.in"); \ + do \ + rm -f "$$(dirname "$${file}")"/"$$(basename "$${file}" .in)"; \ + done + override_dh_install: $(MAKE) install-systemd DESTDIR=$(CURDIR)/debian/tmp dh_install |