Source: kxmlgui Version: 5.98.0-1 Tags: patch User: debian-cr...@lists.debian.org Usertags: ftcbfs
kxmlgui fails to cross build from source, because building tests fails. However, cross builds are performed with the nocheck option, so they should not be building tests. I'm attaching a patch to disable building tests for nocheck builds for your convenience. With this patch, it cross builds successfully. Helmut
diff --minimal -Nru kxmlgui-5.98.0/debian/changelog kxmlgui-5.98.0/debian/changelog --- kxmlgui-5.98.0/debian/changelog 2022-09-18 23:11:47.000000000 +0200 +++ kxmlgui-5.98.0/debian/changelog 2022-11-12 21:06:41.000000000 +0100 @@ -1,3 +1,10 @@ +kxmlgui (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 21:06:41 +0100 + kxmlgui (5.98.0-1) unstable; urgency=medium [ Aurélien COUDERC ] diff --minimal -Nru kxmlgui-5.98.0/debian/patches/cross.patch kxmlgui-5.98.0/debian/patches/cross.patch --- kxmlgui-5.98.0/debian/patches/cross.patch 1970-01-01 01:00:00.000000000 +0100 +++ kxmlgui-5.98.0/debian/patches/cross.patch 2022-11-12 21:04:52.000000000 +0100 @@ -0,0 +1,11 @@ +--- kxmlgui-5.98.0.orig/CMakeLists.txt ++++ kxmlgui-5.98.0/CMakeLists.txt +@@ -39,7 +39,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") + + # Dependencies diff --minimal -Nru kxmlgui-5.98.0/debian/patches/series kxmlgui-5.98.0/debian/patches/series --- kxmlgui-5.98.0/debian/patches/series 1970-01-01 01:00:00.000000000 +0100 +++ kxmlgui-5.98.0/debian/patches/series 2022-11-12 21:04:34.000000000 +0100 @@ -0,0 +1 @@ +cross.patch diff --minimal -Nru kxmlgui-5.98.0/debian/rules kxmlgui-5.98.0/debian/rules --- kxmlgui-5.98.0/debian/rules 2022-07-28 00:30:54.000000000 +0200 +++ kxmlgui-5.98.0/debian/rules 2022-11-12 21:06:40.000000000 +0100 @@ -9,7 +9,7 @@ dh $@ --with pkgkde_symbolshelper override_dh_auto_configure: - dh_auto_configure -- -DBUILD_QCH=ON -DXMLGUI_DISTRIBUTION_TEXT="$(DEB_VENDOR) packages" -DBUILD_TESTING=OFF + dh_auto_configure -- -DBUILD_QCH=ON -DXMLGUI_DISTRIBUTION_TEXT="$(DEB_VENDOR) packages" -DBUILD_TESTING=OFF -DBUILD_DESIGNERPLUGIN=ON override_dh_auto_test: # Disable dh_auto_test at build time