Source: actiona
Version: 3.10.1-1
Tags: patch
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

actiona fails to cross build from source for two reasons.

For one thing its common.pri hard codes the build architecture
pkg-config. qmake does have native support for pkg-config and once using
it, it automatically works for cross builds.

For running lrelease, a build dependency on qt5-qmake:native is
required.

The attached patch fixes both and makes actiona cross buildable. Please
consider applying it.

Helmut
diff --minimal -Nru actiona-3.10.1/debian/changelog 
actiona-3.10.1/debian/changelog
--- actiona-3.10.1/debian/changelog     2020-03-25 22:51:14.000000000 +0100
+++ actiona-3.10.1/debian/changelog     2020-12-27 12:51:53.000000000 +0100
@@ -1,3 +1,12 @@
+actiona (3.10.1-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: (Closes: #-1)
+    + Build-Depends: qt5-qmake:native for running lrelease.
+    + cross.patch: Properly integrate pkg-config.
+
+ -- Helmut Grohne <hel...@subdivi.de>  Sun, 27 Dec 2020 12:51:53 +0100
+
 actiona (3.10.1-1) unstable; urgency=medium
 
   * New upstream release
diff --minimal -Nru actiona-3.10.1/debian/control actiona-3.10.1/debian/control
--- actiona-3.10.1/debian/control       2020-03-25 22:51:14.000000000 +0100
+++ actiona-3.10.1/debian/control       2020-12-27 12:51:53.000000000 +0100
@@ -2,7 +2,7 @@
 Section: utils
 Priority: optional
 Maintainer: Adrien Cunin <adri2...@ubuntu.com>
-Build-Depends: debhelper (>= 9), qtbase5-dev, libqt5x11extras5-dev, 
libqt5xmlpatterns5-dev, qtscript5-dev, qttools5-dev, qtmultimedia5-dev, 
qttools5-dev-tools, libxtst-dev, libnotify-dev, libopencv-dev, libboost-dev, 
libxkbcommon-dev, libqt5texttospeech5-dev
+Build-Depends: debhelper (>= 9), qtbase5-dev, libqt5x11extras5-dev, 
libqt5xmlpatterns5-dev, qtscript5-dev, qttools5-dev, qtmultimedia5-dev, 
qttools5-dev-tools, libxtst-dev, libnotify-dev, libopencv-dev, libboost-dev, 
libxkbcommon-dev, libqt5texttospeech5-dev, qt5-qmake:native
 Standards-Version: 4.1.4
 Homepage: https://actiona.tools
 Vcs-Git: https://salsa.debian.org/debian/actiona.git
diff --minimal -Nru actiona-3.10.1/debian/patches/cross.patch 
actiona-3.10.1/debian/patches/cross.patch
--- actiona-3.10.1/debian/patches/cross.patch   1970-01-01 01:00:00.000000000 
+0100
+++ actiona-3.10.1/debian/patches/cross.patch   2020-12-27 12:51:51.000000000 
+0100
@@ -0,0 +1,25 @@
+--- actiona-3.10.1.orig/common.pri
++++ actiona-3.10.1/common.pri
+@@ -15,19 +15,10 @@
+     PKGCONFIG_OPENCV = opencv
+ }
+ 
++CONFIG += link_pkgconfig
++
+ unix:!mac {
+-        !system(pkg-config --exists 'x11') {
+-                error(Please install pkg-config)      #Here whe assume that 
x11 is always present, so this is to check if pkg-config is installed
+-}
+-        !system(pkg-config --exists 'libnotify') {
+-                error(Please install libnotify development libraries 
(libnotify-dev on Debian))
+-}
+-        !system(pkg-config --exists 'xtst') {
+-                error(Please install XTest development libraries (libxtst-dev 
on Debian))
+-}
+-        !system(pkg-config --exists '$$PKGCONFIG_OPENCV') {
+-                error(Please install OpenCV development libraries 
(libopencv-dev on Debian))
+-}
++      PKGCONFIG += x11 libnotify xtst $$PKGCONFIG_OPENCV
+ }
+ 
+ DEFINES *= ACT_VERSION=$$ACTIONA_VERSION
diff --minimal -Nru actiona-3.10.1/debian/patches/series 
actiona-3.10.1/debian/patches/series
--- actiona-3.10.1/debian/patches/series        2020-03-25 22:51:14.000000000 
+0100
+++ actiona-3.10.1/debian/patches/series        2020-12-27 12:50:59.000000000 
+0100
@@ -0,0 +1 @@
+cross.patch

Reply via email to