Source: qpdfview
Version: 0.4.18+ds-9
Tags: upstream patch

In version 0.4.18+ds-9 qpdfview regressed cross building. Presumably,
vendor copies that were previously used are now deleted. It uses the
build architecture pkg-config to discover the host architecture
libraries and fails now. I'm attaching a patch to make it use the
host's pkg-config for your convenience.

Helmut
--- qpdfview-0.5.0+ds.orig/application.pro
+++ qpdfview-0.5.0+ds/application.pro
@@ -80,6 +80,8 @@
 
 greaterThan(QT_MAJOR_VERSION, 4): QT += concurrent widgets printsupport
 
+PKG_CONFIG = $$pkgConfigExecutable()
+
 !without_svg {
     DEFINES += WITH_SVG
     QT += svg
@@ -109,7 +111,7 @@
 !without_pdf {
     DEFINES += WITH_PDF
 
-    !without_pkgconfig:POPPLER_VERSION = $$system(pkg-config --modversion poppler-qt$${QT_MAJOR_VERSION})
+    !without_pkgconfig:POPPLER_VERSION = $$system($$PKG_CONFIG --modversion poppler-qt$${QT_MAJOR_VERSION})
     DEFINES += POPPLER_VERSION=\\\"$${POPPLER_VERSION}\\\"
 
     static_pdf_plugin {
@@ -135,7 +137,7 @@
 !without_ps {
     DEFINES += WITH_PS
 
-    !without_pkgconfig:LIBSPECTRE_VERSION = $$system(pkg-config --modversion libspectre)
+    !without_pkgconfig:LIBSPECTRE_VERSION = $$system($$PKG_CONFIG --modversion libspectre)
     DEFINES += LIBSPECTRE_VERSION=\\\"$${LIBSPECTRE_VERSION}\\\"
 
     static_ps_plugin {
@@ -159,7 +161,7 @@
 !without_djvu {
     DEFINES += WITH_DJVU
 
-    !without_pkgconfig:DJVULIBRE_VERSION = $$system(pkg-config --modversion ddjvuapi)
+    !without_pkgconfig:DJVULIBRE_VERSION = $$system($$PKG_CONFIG --modversion ddjvuapi)
     DEFINES += DJVULIBRE_VERSION=\\\"$${DJVULIBRE_VERSION}\\\"
 
     static_djvu_plugin {
@@ -234,11 +236,11 @@
 !without_synctex {
     DEFINES += WITH_SYNCTEX
 
-    !without_pkgconfig:system(pkg-config --exists synctex) {
+    !without_pkgconfig:system($$PKG_CONFIG --exists synctex) {
         CONFIG += link_pkgconfig
         PKGCONFIG += synctex
 
-        system(pkg-config --atleast-version=1.19 synctex):DEFINES += HAS_SYNCTEX_2
+        system($$PKG_CONFIG --atleast-version=1.19 synctex):DEFINES += HAS_SYNCTEX_2
     } else {
         HEADERS += synctex/synctex_parser.h synctex/synctex_parser_utils.h synctex/synctex_parser_local.h
         SOURCES += synctex/synctex_parser.c synctex/synctex_parser_utils.c

Reply via email to