[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1023896: kconfigwidgets FTCBFS: disables designer plugin



Source: kconfigwidgets
Version: 5.98.0-1
Tags: patch
User: debian-cross@lists.debian.org
Usertags: ftcbfs

kconfigwidgets 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 kconfigwidgets-5.98.0/debian/changelog kconfigwidgets-5.98.0/debian/changelog
--- kconfigwidgets-5.98.0/debian/changelog	2022-09-18 23:11:44.000000000 +0200
+++ kconfigwidgets-5.98.0/debian/changelog	2022-11-12 09:11:35.000000000 +0100
@@ -1,3 +1,10 @@
+kconfigwidgets (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 09:11:35 +0100
+
 kconfigwidgets (5.98.0-1) unstable; urgency=medium
 
   [ Aurélien COUDERC ]
diff --minimal -Nru kconfigwidgets-5.98.0/debian/patches/cross.patch kconfigwidgets-5.98.0/debian/patches/cross.patch
--- kconfigwidgets-5.98.0/debian/patches/cross.patch	1970-01-01 01:00:00.000000000 +0100
+++ kconfigwidgets-5.98.0/debian/patches/cross.patch	2022-11-12 09:11:25.000000000 +0100
@@ -0,0 +1,11 @@
+--- kconfigwidgets-5.98.0.orig/CMakeLists.txt
++++ kconfigwidgets-5.98.0/CMakeLists.txt
+@@ -41,7 +41,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_setup_version(PROJECT VARIABLE_PREFIX KCONFIGWIDGETS
diff --minimal -Nru kconfigwidgets-5.98.0/debian/patches/series kconfigwidgets-5.98.0/debian/patches/series
--- kconfigwidgets-5.98.0/debian/patches/series	1970-01-01 01:00:00.000000000 +0100
+++ kconfigwidgets-5.98.0/debian/patches/series	2022-11-12 09:11:22.000000000 +0100
@@ -0,0 +1 @@
+cross.patch
diff --minimal -Nru kconfigwidgets-5.98.0/debian/rules kconfigwidgets-5.98.0/debian/rules
--- kconfigwidgets-5.98.0/debian/rules	2022-07-28 00:31:55.000000000 +0200
+++ kconfigwidgets-5.98.0/debian/rules	2022-11-12 09:11:31.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" dbus-run-session dh_auto_test --buildsystem=kf5 -O--buildsystem=kf5

Reply to: