Source: nemo-qml-plugin-contacts
Version: 0.3.33-1
Tags: patch upstream
User: [email protected]
Usertags: ftcbfs
nemo-qml-plugin-contacts fails to cross build from source, because the
upstream build system hard codes the build architecture pkg-config
executable in one occasion and therefore fails to locate a dependency,
which is only requested for the host architecture by Build-Depends. I am
attaching a patch that makes it use the correctly detected host
architecture pkg-config. Please consider applying it and forwarding it
upstream. It is all that is needed to make the package cross buildable.
Helmut
--- nemo-qml-plugin-contacts-0.3.33.orig/lib/lib.pri
+++ nemo-qml-plugin-contacts-0.3.33/lib/lib.pri
@@ -2,6 +2,7 @@
CONFIG += qt hide_symbols
CONFIG += link_pkgconfig
+PKG_CONFIG_EXECUTABLE = $$pkgConfigExecutable()
packagesExist(mlite$${QT_MAJOR_VERSION}) {
PKGCONFIG += mlite$${QT_MAJOR_VERSION}
@@ -31,7 +32,7 @@
QT += contacts-private
# We need the moc output for ContactManagerEngine from sqlite-extensions
-extensionsIncludePath = $$system(pkg-config --cflags-only-I qtcontacts-sqlite-qt$${QT_MAJOR_VERSION}-extensions)
+extensionsIncludePath = $$system($$PKG_CONFIG_EXECUTABLE --cflags-only-I qtcontacts-sqlite-qt$${QT_MAJOR_VERSION}-extensions)
VPATH += $$replace(extensionsIncludePath, -I, )
HEADERS += \
contactmanagerengine.h \