[lfs-patches] r3734 - trunk/libreoffice

ken at higgs.linuxfromscratch.org ken at higgs.linuxfromscratch.org
Wed Apr 25 18:29:26 PDT 2018


Author: ken
Date: Wed Apr 25 18:29:26 2018
New Revision: 3734

Log:
Patch libreoffice-6.0.1.1 for poppler-0.64.0.

Added:
   trunk/libreoffice/libreoffice-6.0.1.1-poppler64-1.patch

Added: trunk/libreoffice/libreoffice-6.0.1.1-poppler64-1.patch
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ trunk/libreoffice/libreoffice-6.0.1.1-poppler64-1.patch	Wed Apr 25 18:29:26 2018	(r3734)
@@ -0,0 +1,72 @@
+not yet Submitted By: Ken Moffat <ken at linuxfromscratch dot org>
+Date: 2018-04-25
+Initial Package Version: Uncertain, applies to 6.0.1.1 with fuzz and offsets.
+Upstream Status: Unknown
+Origin: Debian, found at Arch testing who are using it with 6.0.3.2.
+Description: Fix build with poppler-0.64.0
+
+From 42cebff14f7d486c20f04863681cc5ef4602f4eb Mon Sep 17 00:00:00 2001
+From: Rene Engelhard <rene at debian.org>
+Date: Tue, 24 Apr 2018 15:56:23 +0200
+Subject: [PATCH] fix build with poppler 0.64
+
+GooString became const...
+
+Change-Id: Icc95be2e8603a4e22c6a9ac2008986bacd0bfba5
+---
+ sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx | 10 ++++++++++
+ sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx |  4 ++++
+ 2 files changed, 14 insertions(+)
+
+diff --git a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx
+index 48a735ba54a5..06e4faead383 100644
+--- a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx
++++ b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx
+@@ -432,6 +432,9 @@ int PDFOutDev::parseFont( long long nNewId, GfxFont* gfxFont, GfxState* state )
+     FontAttributes aNewFont;
+     int nSize = 0;
+ 
++#if POPPLER_CHECK_VERSION(0, 64, 0)
++    const
++#endif
+     GooString* pFamily = gfxFont->getName();
+     if( pFamily )
+     {
+@@ -728,6 +731,9 @@ void PDFOutDev::updateFont(GfxState *state)
+         FontAttributes aFont;
+         int nEmbedSize=0;
+ 
++#if POPPLER_CHECK_VERSION(0, 64, 0)
++        const
++#endif
+         Ref* pID = gfxFont->getID();
+         // TODO(Q3): Portability problem
+         long long fontID = static_cast<long long>(pID->gen) << 32 | static_cast<long long>(pID->num);
+@@ -918,7 +924,11 @@ void PDFOutDev::drawChar(GfxState *state, double x, double y,
+     printf( "\n" );
+ }
+ 
++#if POPPLER_CHECK_VERSION(0, 64, 0)
++void PDFOutDev::drawString(GfxState*, const GooString* /*s*/)
++#else
+ void PDFOutDev::drawString(GfxState*, GooString* /*s*/)
++#endif
+ {
+     // TODO(F3): NYI
+ }
+diff --git a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx
+index c3367aa6ddf2..7e65f085d288 100644
+--- a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx
++++ b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx
+@@ -224,7 +224,11 @@ namespace pdfi
+                               double dx, double dy,
+                               double originX, double originY,
+                               CharCode code, int nBytes, Unicode *u, int uLen) override;
++#if POPPLER_CHECK_VERSION(0, 64, 0)
++        virtual void drawString(GfxState *state, const GooString *s) override;
++#else
+         virtual void drawString(GfxState *state, GooString *s) override;
++#endif
+         virtual void endTextObject(GfxState *state) override;
+ 
+         //----- image drawing


More information about the patches mailing list