From e2551f8a7f8051835dd5ad334889daff4b217692 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=BCller?= Date: Mon, 8 Jun 2020 17:12:09 +0200 Subject: [PATCH] qpdfview: Fix build with Qt >= 5.15 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Andreas Müller --- .../0001-Fix-build-with-Qt-5.15.patch | 33 +++++++++++++++++++ recipes-graphics/qpdfview/qpdfview_0.4.18.bb | 5 ++- 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 recipes-graphics/qpdfview/qpdfview/0001-Fix-build-with-Qt-5.15.patch diff --git a/recipes-graphics/qpdfview/qpdfview/0001-Fix-build-with-Qt-5.15.patch b/recipes-graphics/qpdfview/qpdfview/0001-Fix-build-with-Qt-5.15.patch new file mode 100644 index 00000000..dc85c632 --- /dev/null +++ b/recipes-graphics/qpdfview/qpdfview/0001-Fix-build-with-Qt-5.15.patch @@ -0,0 +1,33 @@ +From 04d58fcb669c9d6ee79cdd630f04791b61f417cc Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Andreas=20M=C3=BCller?= +Date: Mon, 8 Jun 2020 17:10:03 +0200 +Subject: [PATCH] Fix build with Qt >= 5.15 +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Fixes: +| ../qpdfview-0.4.18/sources/model.h:46:22: error: field 'boundary' has incomplete type 'QPainterPath' + +Upstream-Status: Pending + +Signed-off-by: Andreas Müller +--- + sources/model.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/sources/model.h b/sources/model.h +index 6363c32..dc10a8c 100644 +--- a/sources/model.h ++++ b/sources/model.h +@@ -27,6 +27,7 @@ along with qpdfview. If not, see . + #include + #include + #include ++#include + + class QAbstractItemModel; + class QColor; +-- +2.26.2 + diff --git a/recipes-graphics/qpdfview/qpdfview_0.4.18.bb b/recipes-graphics/qpdfview/qpdfview_0.4.18.bb index a558c1f4..ce5062d9 100644 --- a/recipes-graphics/qpdfview/qpdfview_0.4.18.bb +++ b/recipes-graphics/qpdfview/qpdfview_0.4.18.bb @@ -4,7 +4,10 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" DEPENDS += "cups poppler qtsvg" -SRC_URI = "https://launchpad.net/qpdfview/trunk/${PV}/+download/${BPN}-${PV}.tar.gz" +SRC_URI = " \ + https://launchpad.net/qpdfview/trunk/${PV}/+download/${BPN}-${PV}.tar.gz \ + file://0001-Fix-build-with-Qt-5.15.patch \ +" SRC_URI[md5sum] = "4d63ee0095e939602f9bf4759ae57953" SRC_URI[sha256sum] = "cc642e7fa74029373ca9b9fbc29adc4883f8b455130a78ad54746d6844a0396c"