1 |
commit: 1da4ee6b2a34b6802387a67583960a84f946ae53 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jan 16 20:00:55 2019 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jan 16 20:01:16 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1da4ee6b |
7 |
|
8 |
sci-libs/gdal: Fix build with poppler-0.73 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/675450 |
11 |
Package-Manager: Portage-2.3.56, Repoman-2.3.12 |
12 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
13 |
|
14 |
.../gdal/files/gdal-2.3.1-poppler-0.73.0.patch | 35 ++++++++++++++++++++++ |
15 |
sci-libs/gdal/gdal-2.3.1.ebuild | 2 ++ |
16 |
2 files changed, 37 insertions(+) |
17 |
|
18 |
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 |
19 |
new file mode 100644 |
20 |
index 00000000000..8529d99e735 |
21 |
--- /dev/null |
22 |
+++ b/sci-libs/gdal/files/gdal-2.3.1-poppler-0.73.0.patch |
23 |
@@ -0,0 +1,35 @@ |
24 |
+From 77ea05388924fcf2a8c9fd4a777c97e4d69f5e17 Mon Sep 17 00:00:00 2001 |
25 |
+From: Andreas Sturmlechner <asturm@g.o> |
26 |
+Date: Wed, 16 Jan 2019 20:52:59 +0100 |
27 |
+Subject: [PATCH] Fix build with poppler-0.73 |
28 |
+ |
29 |
+--- |
30 |
+ gdal/frmts/pdf/pdfsdk_headers.h | 5 ++++- |
31 |
+ 1 file changed, 4 insertions(+), 1 deletion(-) |
32 |
+ |
33 |
+diff --git a/frmts/pdf/pdfsdk_headers.h b/frmts/pdf/pdfsdk_headers.h |
34 |
+index 9150b0f410..574943b41f 100644 |
35 |
+--- a/frmts/pdf/pdfsdk_headers.h |
36 |
++++ b/frmts/pdf/pdfsdk_headers.h |
37 |
+@@ -50,7 +50,6 @@ |
38 |
+ #pragma warning( disable : 4244 ) /* conversion from 'const int' to 'Guchar', possible loss of data */ |
39 |
+ #endif |
40 |
+ |
41 |
+-#include <goo/gtypes.h> |
42 |
+ #include <goo/GooList.h> |
43 |
+ |
44 |
+ /* begin of poppler xpdf includes */ |
45 |
+@@ -79,6 +78,10 @@ |
46 |
+ |
47 |
+ /* end of poppler xpdf includes */ |
48 |
+ |
49 |
++/* poppler-0.73 compatibility */ |
50 |
++#define Guchar unsigned char |
51 |
++#define Guint unsigned int |
52 |
++ |
53 |
+ #ifdef _MSC_VER |
54 |
+ #pragma warning( pop ) |
55 |
+ #endif |
56 |
+-- |
57 |
+2.20.1 |
58 |
+ |
59 |
|
60 |
diff --git a/sci-libs/gdal/gdal-2.3.1.ebuild b/sci-libs/gdal/gdal-2.3.1.ebuild |
61 |
index 7af0dee0851..9f81394be02 100644 |
62 |
--- a/sci-libs/gdal/gdal-2.3.1.ebuild |
63 |
+++ b/sci-libs/gdal/gdal-2.3.1.ebuild |
64 |
@@ -122,6 +122,8 @@ src_prepare() { |
65 |
|
66 |
# not upstreamable, not fixed in 2.4.0 or master as of 2019-01-12: |
67 |
has_version ">=app-text/poppler-0.72.0" && eapply "${FILESDIR}/${PN}-2.3.1-poppler-0.72.0.patch" |
68 |
+ # not upstreamable, not fixed in 2.4.0 or master as of 2019-01-16: |
69 |
+ has_version ">=app-text/poppler-0.73.0" && eapply "${FILESDIR}/${PN}-2.3.1-poppler-0.73.0.patch" |
70 |
|
71 |
eautoreconf |
72 |
} |