Source: ktextwidgets Version: 5.98.0-1 Tags: patch User: debian-cr...@lists.debian.org Usertags: ftcbfs
ktextwidgets 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 ktextwidgets-5.98.0/debian/changelog ktextwidgets-5.98.0/debian/changelog --- ktextwidgets-5.98.0/debian/changelog 2022-09-18 23:11:47.000000000 +0200 +++ ktextwidgets-5.98.0/debian/changelog 2022-11-12 18:28:07.000000000 +0100 @@ -1,3 +1,10 @@ +ktextwidgets (5.98.0-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Build designer plugin. (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Sat, 12 Nov 2022 18:28:07 +0100 + ktextwidgets (5.98.0-1) unstable; urgency=medium [ Aurélien COUDERC ] diff --minimal -Nru ktextwidgets-5.98.0/debian/patches/cross.patch ktextwidgets-5.98.0/debian/patches/cross.patch --- ktextwidgets-5.98.0/debian/patches/cross.patch 1970-01-01 01:00:00.000000000 +0100 +++ ktextwidgets-5.98.0/debian/patches/cross.patch 2022-11-12 18:27:50.000000000 +0100 @@ -0,0 +1,11 @@ +--- ktextwidgets-5.98.0.orig/CMakeLists.txt ++++ ktextwidgets-5.98.0/CMakeLists.txt +@@ -58,7 +58,7 @@ + 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") + + add_definitions(-DTRANSLATION_DOMAIN=\"ktextwidgets5\") diff --minimal -Nru ktextwidgets-5.98.0/debian/patches/series ktextwidgets-5.98.0/debian/patches/series --- ktextwidgets-5.98.0/debian/patches/series 1970-01-01 01:00:00.000000000 +0100 +++ ktextwidgets-5.98.0/debian/patches/series 2022-11-12 18:27:31.000000000 +0100 @@ -0,0 +1 @@ +cross.patch diff --minimal -Nru ktextwidgets-5.98.0/debian/rules ktextwidgets-5.98.0/debian/rules --- ktextwidgets-5.98.0/debian/rules 2022-07-28 00:32:10.000000000 +0200 +++ ktextwidgets-5.98.0/debian/rules 2022-11-12 18:28:06.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" dh_auto_test --no-parallel