[neon/qt6/qt6-base/Neon/release] debian: iterate

Carlos De Maine null at kde.org
Thu Dec 5 01:33:42 GMT 2024


Git commit 59f756dce235bc904bfa32c4ad06a510f628ac44 by Carlos De Maine.
Committed on 05/12/2024 at 01:33.
Pushed by carlosdem into branch 'Neon/release'.

iterate

M  +10   -6    debian/rules

https://invent.kde.org/neon/qt6/qt6-base/-/commit/59f756dce235bc904bfa32c4ad06a510f628ac44

diff --git a/debian/rules b/debian/rules
index 20bf78b..678b815 100755
--- a/debian/rules
+++ b/debian/rules
@@ -14,11 +14,13 @@ export DEB_BUILD_OPTIONS DEB_BUILD_PROFILES
 sslpkgname := $(shell dpkg-query --show '--showformat=$${Depends}' libssl-dev | cut -d ' ' -f1)
 
 ifeq (,$(filter nodoc,$(DEB_BUILD_PROFILES)),)
-	extra_build_args += docs
-	extra_install_args += install_docs
-else
 	extra_build_args +=
 	extra_install_args +=
+	build_docs = false
+else
+	extra_build_args += docs
+	extra_install_args += install_docs
+	build_docs = true
 endif
 
 ifneq (,$(filter libqt6sql6-ibase,$(shell dh_listpackages)))
@@ -114,9 +116,11 @@ override_dh_auto_build-indep:
 
 override_dh_auto_install-indep:
 	DESTDIR=$(CURDIR)/debian/tmp dh_auto_build -- $(extra_install_args)
-	# Remove build path from index files.
-	find $(CURDIR)/debian/tmp/usr/share/qt6/doc -type f -name *.index -exec \
-                sed -i 's@$(CURDIR)/@@g' {} \;
+	# Remove build path from index files if we are a doc build.
+	if ($(BUILD_DOCS),true)
+		find $(CURDIR)/debian/tmp/usr/share/qt6/doc -type f -name *.index -exec \
+			sed -i 's@$(CURDIR)/@@g' {} \;
+	endif
 
 execute_after_dh_auto_install-arch:
 	# Reproducible builds: remove build paths from .prl files


More information about the Neon-commits mailing list