Source: sonnet Version: 5.98.0-1 Tags: patch upstream User: debian-cr...@lists.debian.org Usertags: ftcbfs
sonnet fails to cross build from source, because the upstream CMakeLists.txt forcefully disables the designer plugin when cross building. However, the Debian packaging requires it and thus fails. I don't quite understand the reasons for why upstream disables it as it cross builds just fine. I also don't understand why they make that non-overridable. So I'm proposing to simply drop that condition. Please consider applying the attached patch. Helmut
--- sonnet-5.98.0.orig/CMakeLists.txt +++ sonnet-5.98.0/CMakeLists.txt @@ -57,7 +57,7 @@ add_feature_info(QCH ${BUILD_QCH} "API documentation in QCH format (for e.g. Qt Assistant, Qt Creator & KDevelop)") if(SONNET_USE_WIDGETS) - cmake_dependent_option(BUILD_DESIGNERPLUGIN "Build plugin for Qt Designer" ON "NOT CMAKE_CROSSCOMPILING" OFF) + option(BUILD_DESIGNERPLUGIN "Build plugin for Qt Designer" ON) add_feature_info(DESIGNERPLUGIN ${BUILD_DESIGNERPLUGIN} "Build plugin for Qt Designer") endif()