rewrite block in d/rules {dh_override,execute_before}_dh_auto_build.
authorSandro Knauß <hefee@debian.org>
Sat, 15 Feb 2025 02:23:23 +0000 (03:23 +0100)
committerSandro Knauß <hefee@debian.org>
Sat, 15 Feb 2025 02:23:23 +0000 (03:23 +0100)
debian/rules

index fef376d45842b9f61e0c49b4333e738197c77266..c8010a72b4606bccd6161e73761c12b7521ae063 100755 (executable)
@@ -22,14 +22,7 @@ override_dh_auto_configure:
                -DBUILD_WITH_WEBENGINE=$(BUILD_WEBENGINE) \
                -DPLUGINDIR=/usr/lib/$(DEB_HOST_GNU_TYPE)/qt6/plugins \
                -DEXTERNAL_VERSION=$(DEB_VERSION)
-
-
-override_dh_auto_build-indep:
-       dh_auto_build -- -C shell_integration/nautilus
-       dh_auto_build -- doc-html
-       dh_auto_build # unfortunately we don't get icons and translations otherwise.
-
-override_dh_auto_build-arch:
+execute_before_dh_auto_build-arch:
        dh_auto_build -- doc-man
        @echo "blhc: ignore-line-regexp: .*/CMakeCXXCompilerABI.cpp.*"
        #tests are not built with all hardening, to debug stuff more easily
@@ -37,7 +30,11 @@ override_dh_auto_build-arch:
        @echo "blhc: ignore-line-regexp: .*/check_.*.dir/.*"
        @echo "blhc: ignore-line-regexp: .*/test/csync/torture_.*"
        @echo "blhc: ignore-line-regexp: .*/LargeSyncBench\.dir/.*"
-       dh_auto_build --
+
+# unfortunately icons and translations are installed only together with the gui, so we need to run dh_auto_build
+execute_before_dh_auto_build-indep:
+       dh_auto_build -- doc-html
+       dh_auto_build -- -C shell_integration/nautilus
 
 override_dh_auto_test-arch:
        mkdir -p obj-$(DEB_HOST_GNU_TYPE)/config