1 |
commit: dfa6d688436719d87a518dc7405675734e9591d8 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Nov 1 15:54:42 2019 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Nov 1 18:39:21 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dfa6d688 |
7 |
|
8 |
app-office/libreoffice: Fix build with poppler-0.82.0 |
9 |
|
10 |
Package-Manager: Portage-2.3.78, Repoman-2.3.17 |
11 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
12 |
|
13 |
.../files/libreoffice-6.2.8.2-poppler-0.82.patch | 123 +++++++++++++++++++++ |
14 |
app-office/libreoffice/libreoffice-6.2.8.2.ebuild | 1 + |
15 |
app-office/libreoffice/libreoffice-6.3.3.2.ebuild | 6 +- |
16 |
3 files changed, 127 insertions(+), 3 deletions(-) |
17 |
|
18 |
diff --git a/app-office/libreoffice/files/libreoffice-6.2.8.2-poppler-0.82.patch b/app-office/libreoffice/files/libreoffice-6.2.8.2-poppler-0.82.patch |
19 |
new file mode 100644 |
20 |
index 00000000000..b6c30cd92a1 |
21 |
--- /dev/null |
22 |
+++ b/app-office/libreoffice/files/libreoffice-6.2.8.2-poppler-0.82.patch |
23 |
@@ -0,0 +1,123 @@ |
24 |
+From 2eadd46ab81058087af95bdfc1fea28fcdb65998 Mon Sep 17 00:00:00 2001 |
25 |
+From: Rasmus Thomsen <oss@×××××××.dev> |
26 |
+Date: Sat, 26 Oct 2019 14:11:35 +0200 |
27 |
+Subject: Fix build with poppler-0.82 |
28 |
+ |
29 |
+Change-Id: I3b6b3faea7986f3e5a6ae4790580d03bc9c955fc |
30 |
+Reviewed-on: https://gerrit.libreoffice.org/81545 |
31 |
+Tested-by: Jenkins |
32 |
+Reviewed-by: Michael Stahl <michael.stahl@×××.de> |
33 |
+--- |
34 |
+ .../pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx | 25 ++++++++++++++++++++++ |
35 |
+ .../pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx | 16 +++++++++++++- |
36 |
+ 2 files changed, 40 insertions(+), 1 deletion(-) |
37 |
+ |
38 |
+diff --git a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx |
39 |
+index ce32a41..3ae3bdc 100644 |
40 |
+--- a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx |
41 |
++++ b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx |
42 |
+@@ -863,11 +863,20 @@ void PDFOutDev::eoClip(GfxState *state) |
43 |
+ local offset of character (zero for horizontal writing mode). not |
44 |
+ taken into account for output pos updates. Used for vertical writing. |
45 |
+ */ |
46 |
++ |
47 |
++#if POPPLER_CHECK_VERSION(0, 82, 0) |
48 |
++void PDFOutDev::drawChar(GfxState *state, double x, double y, |
49 |
++ double dx, double dy, |
50 |
++ double originX, double originY, |
51 |
++ CharCode, int /*nBytes*/, const Unicode *u, int uLen) |
52 |
++{ |
53 |
++#else |
54 |
+ void PDFOutDev::drawChar(GfxState *state, double x, double y, |
55 |
+ double dx, double dy, |
56 |
+ double originX, double originY, |
57 |
+ CharCode, int /*nBytes*/, Unicode *u, int uLen) |
58 |
+ { |
59 |
++#endif |
60 |
+ assert(state); |
61 |
+ |
62 |
+ if( u == nullptr ) |
63 |
+@@ -979,11 +988,19 @@ void PDFOutDev::drawImageMask(GfxState* pState, Object*, Stream* str, |
64 |
+ writeBinaryBuffer(aBuf); |
65 |
+ } |
66 |
+ |
67 |
++#if POPPLER_CHECK_VERSION(0, 82, 0) |
68 |
++void PDFOutDev::drawImage(GfxState*, Object*, Stream* str, |
69 |
++ int width, int height, GfxImageColorMap* colorMap, |
70 |
++ poppler_bool /*interpolate*/, |
71 |
++ const int* maskColors, poppler_bool /*inlineImg*/ ) |
72 |
++{ |
73 |
++#else |
74 |
+ void PDFOutDev::drawImage(GfxState*, Object*, Stream* str, |
75 |
+ int width, int height, GfxImageColorMap* colorMap, |
76 |
+ poppler_bool /*interpolate*/, |
77 |
+ int* maskColors, poppler_bool /*inlineImg*/ ) |
78 |
+ { |
79 |
++#endif |
80 |
+ if (m_bSkipImages) |
81 |
+ return; |
82 |
+ OutputBuffer aBuf; initBuf(aBuf); |
83 |
+@@ -1004,12 +1021,20 @@ void PDFOutDev::drawImage(GfxState*, Object*, Stream* str, |
84 |
+ { |
85 |
+ GfxRGB aMinRGB; |
86 |
+ colorMap->getColorSpace()->getRGB( |
87 |
++#if POPPLER_CHECK_VERSION(0, 82, 0) |
88 |
++ reinterpret_cast<const GfxColor*>(maskColors), |
89 |
++#else |
90 |
+ reinterpret_cast<GfxColor*>(maskColors), |
91 |
++#endif |
92 |
+ &aMinRGB ); |
93 |
+ |
94 |
+ GfxRGB aMaxRGB; |
95 |
+ colorMap->getColorSpace()->getRGB( |
96 |
++#if POPPLER_CHECK_VERSION(0, 82, 0) |
97 |
++ reinterpret_cast<const GfxColor*>(maskColors)+gfxColorMaxComps, |
98 |
++#else |
99 |
+ reinterpret_cast<GfxColor*>(maskColors)+gfxColorMaxComps, |
100 |
++#endif |
101 |
+ &aMaxRGB ); |
102 |
+ |
103 |
+ aMaskBuf.push_back( colToByte(aMinRGB.r) ); |
104 |
+diff --git a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx |
105 |
+index 1a0c3f0..02f6b59 100644 |
106 |
+--- a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx |
107 |
++++ b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx |
108 |
+@@ -232,10 +232,17 @@ namespace pdfi |
109 |
+ virtual void eoClip(GfxState *state) override; |
110 |
+ |
111 |
+ //----- text drawing |
112 |
++#if POPPLER_CHECK_VERSION(0, 82, 0) |
113 |
++ virtual void drawChar(GfxState *state, double x, double y, |
114 |
++ double dx, double dy, |
115 |
++ double originX, double originY, |
116 |
++ CharCode code, int nBytes, const Unicode *u, int uLen) override; |
117 |
++#else |
118 |
+ virtual void drawChar(GfxState *state, double x, double y, |
119 |
+ double dx, double dy, |
120 |
+ double originX, double originY, |
121 |
+ CharCode code, int nBytes, Unicode *u, int uLen) override; |
122 |
++#endif |
123 |
+ #if POPPLER_CHECK_VERSION(0, 64, 0) |
124 |
+ virtual void drawString(GfxState *state, const GooString *s) override; |
125 |
+ #else |
126 |
+@@ -248,10 +255,17 @@ namespace pdfi |
127 |
+ int width, int height, poppler_bool invert, |
128 |
+ poppler_bool interpolate, |
129 |
+ poppler_bool inlineImg) override; |
130 |
++#if POPPLER_CHECK_VERSION(0, 82, 0) |
131 |
+ virtual void drawImage(GfxState *state, Object *ref, Stream *str, |
132 |
+ int width, int height, GfxImageColorMap *colorMap, |
133 |
+ poppler_bool interpolate, |
134 |
+- int* maskColors, poppler_bool inlineImg) override; |
135 |
++ const int* maskColors, poppler_bool inlineImg) override; |
136 |
++#else |
137 |
++ virtual void drawImage(GfxState *state, Object *ref, Stream *str, |
138 |
++ int width, int height, GfxImageColorMap *colorMap, |
139 |
++ poppler_bool interpolate, |
140 |
++ int* maskColors, poppler_bool inlineImg) override; |
141 |
++#endif |
142 |
+ virtual void drawMaskedImage(GfxState *state, Object *ref, Stream *str, |
143 |
+ int width, int height, |
144 |
+ GfxImageColorMap *colorMap, |
145 |
+-- |
146 |
+cgit v1.1 |
147 |
|
148 |
diff --git a/app-office/libreoffice/libreoffice-6.2.8.2.ebuild b/app-office/libreoffice/libreoffice-6.2.8.2.ebuild |
149 |
index 6831dab51cb..97acd86ab3a 100644 |
150 |
--- a/app-office/libreoffice/libreoffice-6.2.8.2.ebuild |
151 |
+++ b/app-office/libreoffice/libreoffice-6.2.8.2.ebuild |
152 |
@@ -246,6 +246,7 @@ fi |
153 |
PATCHES=( |
154 |
# master branch |
155 |
"${FILESDIR}/${PN}-6.2-ldap-optional.patch" |
156 |
+ "${FILESDIR}/${P}-poppler-0.82.patch" |
157 |
# "${WORKDIR}"/${PATCHSET/.tar.xz/} |
158 |
|
159 |
# not upstreamable stuff |
160 |
|
161 |
diff --git a/app-office/libreoffice/libreoffice-6.3.3.2.ebuild b/app-office/libreoffice/libreoffice-6.3.3.2.ebuild |
162 |
index 0233e28a4fb..c7fc98d14c9 100644 |
163 |
--- a/app-office/libreoffice/libreoffice-6.3.3.2.ebuild |
164 |
+++ b/app-office/libreoffice/libreoffice-6.3.3.2.ebuild |
165 |
@@ -244,15 +244,15 @@ else |
166 |
fi |
167 |
|
168 |
PATCHES=( |
169 |
+ # master branch |
170 |
+ "${FILESDIR}/${P}-mysql-connector-c-8.patch" # bug #692422 |
171 |
+ "${FILESDIR}/${PN}-6.2.8.2-poppler-0.82.patch" |
172 |
# "${WORKDIR}"/${PATCHSET/.tar.xz/} |
173 |
|
174 |
# not upstreamable stuff |
175 |
"${FILESDIR}/${PN}-5.4-system-pyuno.patch" |
176 |
"${FILESDIR}/${PN}-5.3.4.2-kioclient5.patch" |
177 |
"${FILESDIR}/${PN}-6.1-nomancompress.patch" |
178 |
- |
179 |
- # master branch |
180 |
- "${FILESDIR}/${P}-mysql-connector-c-8.patch" # bug #692422 |
181 |
) |
182 |
|
183 |
S="${WORKDIR}/${PN}-${MY_PV}" |