sci-libs/gdal: Fix build with poppler-0.73
authorAndreas Sturmlechner <asturm@gentoo.org>
Wed, 16 Jan 2019 20:00:55 +0000 (21:00 +0100)
committerAndreas Sturmlechner <asturm@gentoo.org>
Wed, 16 Jan 2019 20:01:16 +0000 (21:01 +0100)
Closes: https://bugs.gentoo.org/675450
Package-Manager: Portage-2.3.56, Repoman-2.3.12
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
sci-libs/gdal/files/gdal-2.3.1-poppler-0.73.0.patch [new file with mode: 0644]
sci-libs/gdal/gdal-2.3.1.ebuild

diff --git a/sci-libs/gdal/files/gdal-2.3.1-poppler-0.73.0.patch b/sci-libs/gdal/files/gdal-2.3.1-poppler-0.73.0.patch
new file mode 100644 (file)
index 0000000..8529d99
--- /dev/null
@@ -0,0 +1,35 @@
+From 77ea05388924fcf2a8c9fd4a777c97e4d69f5e17 Mon Sep 17 00:00:00 2001
+From: Andreas Sturmlechner <asturm@gentoo.org>
+Date: Wed, 16 Jan 2019 20:52:59 +0100
+Subject: [PATCH] Fix build with poppler-0.73
+
+---
+ gdal/frmts/pdf/pdfsdk_headers.h | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/frmts/pdf/pdfsdk_headers.h b/frmts/pdf/pdfsdk_headers.h
+index 9150b0f410..574943b41f 100644
+--- a/frmts/pdf/pdfsdk_headers.h
++++ b/frmts/pdf/pdfsdk_headers.h
+@@ -50,7 +50,6 @@
+ #pragma warning( disable : 4244 ) /* conversion from 'const int' to 'Guchar', possible loss of data */
+ #endif
+-#include <goo/gtypes.h>
+ #include <goo/GooList.h>
+ /* begin of poppler xpdf includes */
+@@ -79,6 +78,10 @@
+ /* end of poppler xpdf includes */
++/* poppler-0.73 compatibility */
++#define Guchar unsigned char
++#define Guint unsigned int
++
+ #ifdef _MSC_VER
+ #pragma warning( pop )
+ #endif
+-- 
+2.20.1
+
index 7af0dee085184fcc9eafc9a9db32c5762f2c5c80..9f81394be0262b84dd094e3df2683a747867d100 100644 (file)
@@ -122,6 +122,8 @@ src_prepare() {
 
        # not upstreamable, not fixed in 2.4.0 or master as of 2019-01-12:
        has_version ">=app-text/poppler-0.72.0" && eapply "${FILESDIR}/${PN}-2.3.1-poppler-0.72.0.patch"
+       # not upstreamable, not fixed in 2.4.0 or master as of 2019-01-16:
+       has_version ">=app-text/poppler-0.73.0" && eapply "${FILESDIR}/${PN}-2.3.1-poppler-0.73.0.patch"
 
        eautoreconf
 }