Source: ksyntax-highlighting
Version: 5.62.0-3
Tags: patch
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

ksyntax-highlighting fails to cross build from source, because it fails
to build the indexer component. The indexer is meant to be run during
build and thus needs to either be prebuilt or built using a native qt,
neither of which is provided. Since the Debian package does not install
the indexer into any binary package that could be added to
Build-Depends, the preferred solution likely is to build depend on a
native qmake and pass the prefix to the build. After doing so,
ksyntax-highlighting cross builds successfully. The cross build support
is great on the uptream side. Please consider applying the attached
patch.

Helmut
diff --minimal -Nru ksyntax-highlighting-5.62.0/debian/changelog 
ksyntax-highlighting-5.62.0/debian/changelog
--- ksyntax-highlighting-5.62.0/debian/changelog        2020-02-19 
19:38:17.000000000 +0100
+++ ksyntax-highlighting-5.62.0/debian/changelog        2020-02-21 
05:58:26.000000000 +0100
@@ -1,3 +1,10 @@
+ksyntax-highlighting (5.62.0-3.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Pass a native qt to the build. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Fri, 21 Feb 2020 05:58:26 +0100
+
 ksyntax-highlighting (5.62.0-3) unstable; urgency=medium
 
   * Team upload.
diff --minimal -Nru ksyntax-highlighting-5.62.0/debian/control 
ksyntax-highlighting-5.62.0/debian/control
--- ksyntax-highlighting-5.62.0/debian/control  2020-02-19 08:44:34.000000000 
+0100
+++ ksyntax-highlighting-5.62.0/debian/control  2020-02-21 05:58:26.000000000 
+0100
@@ -12,7 +12,9 @@
                libqt5xmlpatterns5-dev (>= 5.11.0~),
                pkg-kde-tools (>= 0.15.15ubuntu1~),
                qtbase5-dev (>= 5.11.0~),
+               qtbase5-dev:native,
                qttools5-dev (>= 5.4),
+               qttools5-dev:native,
 Standards-Version: 4.5.0
 Homepage: https://projects.kde.org/projects/frameworks/syntax-highlighting
 Vcs-Browser: https://salsa.debian.org/qt-kde-team/kde/syntax-highlighting
diff --minimal -Nru ksyntax-highlighting-5.62.0/debian/rules 
ksyntax-highlighting-5.62.0/debian/rules
--- ksyntax-highlighting-5.62.0/debian/rules    2020-02-19 08:44:34.000000000 
+0100
+++ ksyntax-highlighting-5.62.0/debian/rules    2020-02-21 05:57:26.000000000 
+0100
@@ -7,4 +7,4 @@
        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 -DKF5_HOST_TOOLING=/usr/lib

Reply via email to