Bug#1023897: kwidgetsaddons FTCBFS: disables designer plugin
Source: kcompletion
Version: 5.98.0-1
Tags: patch
User: debian-cross@lists.debian.org
Usertags: ftcbfs
kcompletion fails to cross build from source, because the upstream
CMakeLists.txt forcefully disables building the designer plugin during
cross builds. I think this should be an option and it practically works.
I'm attaching a patch for your convenience.
Helmut
diff --minimal -Nru kcompletion-5.98.0/debian/changelog kcompletion-5.98.0/debian/changelog
--- kcompletion-5.98.0/debian/changelog 2022-09-18 23:11:40.000000000 +0200
+++ kcompletion-5.98.0/debian/changelog 2022-11-12 08:03:24.000000000 +0100
@@ -1,3 +1,10 @@
+kcompletion (5.98.0-1.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Fix FTCBFS: Build designer plugin. (Closes: #-1)
+
+ -- Helmut Grohne <helmut@subdivi.de> Sat, 12 Nov 2022 08:03:24 +0100
+
kcompletion (5.98.0-1) unstable; urgency=medium
[ Aurélien COUDERC ]
diff --minimal -Nru kcompletion-5.98.0/debian/patches/cross.patch kcompletion-5.98.0/debian/patches/cross.patch
--- kcompletion-5.98.0/debian/patches/cross.patch 1970-01-01 01:00:00.000000000 +0100
+++ kcompletion-5.98.0/debian/patches/cross.patch 2022-11-12 08:03:06.000000000 +0100
@@ -0,0 +1,11 @@
+--- kcompletion-5.98.0.orig/CMakeLists.txt
++++ kcompletion-5.98.0/CMakeLists.txt
+@@ -46,7 +46,7 @@ set(EXCLUDE_DEPRECATED_BEFORE_AND_AT 0 C
+ option(BUILD_QCH "Build API documentation in QCH format (for e.g. Qt Assistant, Qt Creator & KDevelop)" OFF)
+ add_feature_info(QCH ${BUILD_QCH} "API documentation in QCH format (for e.g. Qt Assistant, Qt Creator & KDevelop)")
+
+-cmake_dependent_option(BUILD_DESIGNERPLUGIN "Build plugin for Qt Designer" ON "NOT CMAKE_CROSSCOMPILING" OFF)
++option(BUILD_DESIGNERPLUGIN "Build plugin for Qt Designer" "NOT CMAKE_CROSSCOMPILING")
+ add_feature_info(DESIGNERPLUGIN ${BUILD_DESIGNERPLUGIN} "Build plugin for Qt Designer")
+
+ ecm_set_disabled_deprecation_versions(
diff --minimal -Nru kcompletion-5.98.0/debian/patches/series kcompletion-5.98.0/debian/patches/series
--- kcompletion-5.98.0/debian/patches/series 1970-01-01 01:00:00.000000000 +0100
+++ kcompletion-5.98.0/debian/patches/series 2022-11-12 08:03:01.000000000 +0100
@@ -0,0 +1 @@
+cross.patch
diff --minimal -Nru kcompletion-5.98.0/debian/rules kcompletion-5.98.0/debian/rules
--- kcompletion-5.98.0/debian/rules 2022-07-28 00:30:14.000000000 +0200
+++ kcompletion-5.98.0/debian/rules 2022-11-12 08:03:22.000000000 +0100
@@ -7,7 +7,7 @@
dh $@ --with kf5,pkgkde_symbolshelper --buildsystem kf5 --without build_stamp
override_dh_auto_configure:
- dh_auto_configure -- -DBUILD_QCH=ON
+ dh_auto_configure -- -DBUILD_QCH=ON -DBUILD_DESIGNERPLUGIN=ON
override_dh_auto_test:
xvfb-run -a --server-args="-screen 0 1024x768x24+32" dh_auto_test
Reply to: