[Git][libreoffice-team/libreoffice/libreoffice][master] backport patch from master to fix build with poppler 0.62
Rene Engelhard
rene at debian.org
Mon Jan 8 21:51:52 UTC 2018
Rene Engelhard pushed to branch master at Debian LibreOffice Maintainers / libreoffice / libreoffice
Commits:
941b8cc6 by Rene Engelhard at 2018-01-08T22:51:33+01:00
backport patch from master to fix build with poppler 0.62
- - - - -
3 changed files:
- changelog
- + patches/poppler-0.62.diff
- patches/series
Changes:
=====================================
changelog
=====================================
--- a/changelog
+++ b/changelog
@@ -1,3 +1,10 @@
+libreoffice (1:5.4.4-2) UNRELEASED; urgency=medium
+
+ * debian/patches/poppler-0.62.diff: backport from master to fix build with
+ poppler 0.62
+
+ -- Rene Engelhard <rene at debian.org> Mon, 08 Jan 2018 22:44:59 +0100
+
libreoffice (1:5.4.4-1) unstable; urgency=medium
[ Rene Engelhard ]
=====================================
patches/poppler-0.62.diff
=====================================
--- /dev/null
+++ b/patches/poppler-0.62.diff
@@ -0,0 +1,31 @@
+diff --git a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx
+index 5d4a797f7c96..9f6165e64b66 100644
+--- a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx
++++ b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx
+@@ -32,10 +32,12 @@
+ #pragma warning(push, 1)
+ #endif
+
+-// sigh, UTF8.h was removed in poppler-0.21.0 and put back in 0.21.1
++// sigh, UTF8.h was removed in poppler-0.21.0 and put back in 0.21.1, then renamed to UnicodeMapFuncs.h in 0.62.0
+ // FIXME: we can't use #if POPPLER_CHECK_VERSION(0, 21, 0) && !POPPLER_CHECK_VERSION(0, 21, 1)
+ // because the internal poppler does not provide poppler-version.h and the macro always returns 0
+-#if POPPLER_CHECK_VERSION(0, 21, 1)
++#if POPPLER_CHECK_VERSION(0, 62, 0)
++#include <UnicodeMapFuncs.h>
++#elif POPPLER_CHECK_VERSION(0, 21, 1)
+ #include "UTF8.h"
+ #elif POPPLER_CHECK_VERSION(0, 21, 0)
+ #include "UTF.h"
+@@ -918,7 +920,11 @@ void PDFOutDev::drawChar(GfxState *state, double x, double y,
+ );
+
+ // silence spurious warning
++#if POPPLER_CHECK_VERSION(0, 62, 0)
++ (void)&mapUTF16;
++#else
+ (void)&mapUCS2;
++#endif
+
+ char buf[9];
+ for( int i=0; i<uLen; ++i )
=====================================
patches/series
=====================================
--- a/patches/series
+++ b/patches/series
@@ -41,3 +41,4 @@ apparmor-complain.diff
apparmor-usrmerge.diff
apparmor-updates.diff
apparmor-fixes.diff
+poppler-0.62.diff
View it on GitLab: https://salsa.debian.org/libreoffice-team/libreoffice/libreoffice/commit/941b8cc6ce2c0ffc6de807eeb816e5dfe4be2792
---
View it on GitLab: https://salsa.debian.org/libreoffice-team/libreoffice/libreoffice/commit/941b8cc6ce2c0ffc6de807eeb816e5dfe4be2792
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-openoffice-commits/attachments/20180108/eb24fbff/attachment-0001.html>
More information about the Pkg-openoffice-commits
mailing list