[neon/qt/qtfeedback/Neon/release] debian: debian/rules: Don't build and install API doc files with qtdoc if the architecture does not ship qt5-qtdoc. (Closes: #1002972).
Mike Gabriel
null at kde.org
Thu May 5 12:52:35 BST 2022
Git commit 1db3bb618452d63b976738e8d18d79c3e8c9dca9 by Mike Gabriel.
Committed on 02/01/2022 at 21:21.
Pushed by jriddell into branch 'Neon/release'.
debian/rules: Don't build and install API doc files with qtdoc if the architecture does not ship qt5-qtdoc. (Closes: #1002972).
M +11 -2 debian/rules
https://invent.kde.org/neon/qt/qtfeedback/commit/1db3bb618452d63b976738e8d18d79c3e8c9dca9
diff --git a/debian/rules b/debian/rules
index 3b50b81..edc3f77 100755
--- a/debian/rules
+++ b/debian/rules
@@ -20,7 +20,11 @@ QT_MODULE_VERSION = $(shell cat .qmake.conf | grep MODULE_VERSION | sed -re 's/M
override_dh_auto_build:
dh_auto_build
- make docs
+
+ # only build doc files for architectures that have qt5-qtdoc
+ if [ -e /usr/lib/$(DEB_HOST_MULTIARCH)/qt5/bin/qdoc ]; then \
+ make docs; \
+ fi
override_dh_auto_configure:
cd src/feedback/ && perl /usr/lib/qt5/bin/syncqt.pl -module QtFeedback -version $(QT_MODULE_VERSION) -outdir $(CURDIR) -builddir $(CURDIR) $(CURDIR) && cd - 1>/dev/null
@@ -31,7 +35,12 @@ override_dh_missing:
override_dh_auto_install:
dh_auto_install
- $(MAKE) INSTALL_ROOT=$(CURDIR)/debian/tmp install_docs
+
+ # only install doc files for architectures that have qt5-qtdoc
+ if [ -e /usr/lib/$(DEB_HOST_MULTIARCH)/qt5/bin/qdoc ]; then \
+ $(MAKE) INSTALL_ROOT=$(CURDIR)/debian/tmp install_docs; \
+ fi
+
# Fix wrong path in pkgconfig files
find $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig -type f -name '*.pc' \
-exec sed -i -e 's/$(DEB_HOST_MULTIARCH)\/$(DEB_HOST_MULTIARCH)/$(DEB_HOST_MULTIARCH)/g' {} \;
More information about the Neon-commits
mailing list