libreoffice/libreoffice-rhel6poppler.patch

68 lines
2.4 KiB
Diff
Raw Normal View History

2014-05-26 10:42:16 +00:00
From 6fa0780b933babbb3c5f16e0bb865eaf141b6412 Mon Sep 17 00:00:00 2001
2014-02-20 11:38:16 +00:00
From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= <caolanm@redhat.com>
Date: Thu, 20 Feb 2014 11:36:38 +0000
Subject: [PATCH] poppler fixes
Change-Id: Iaad3d6ba494a00e7581c5d7a35ec3ec5f57134dc
---
configure.ac | 10 ----------
sdext/Module_sdext.mk | 5 -----
sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx | 4 +++-
3 files changed, 3 insertions(+), 16 deletions(-)
diff --git a/configure.ac b/configure.ac
2014-05-26 10:42:16 +00:00
index 30f7def..eced7e9 100644
2014-02-20 11:38:16 +00:00
--- a/configure.ac
+++ b/configure.ac
2014-05-26 10:42:16 +00:00
@@ -10515,16 +10515,6 @@ if test $_os != Android -a $_os != iOS -a \( -z "$enable_pdfimport" -o "$enable_
2014-01-24 17:08:38 +00:00
AC_MSG_RESULT([external])
2014-05-26 10:42:16 +00:00
SYSTEM_POPPLER=TRUE
2014-01-24 17:08:38 +00:00
PKG_CHECK_MODULES( POPPLER, poppler >= 0.8.0 )
- AC_LANG_PUSH([C++])
- save_CXXFLAGS=$CXXFLAGS
- save_CPPFLAGS=$CPPFLAGS
- CXXFLAGS="$CXXFLAGS $POPPLER_CFLAGS"
- CPPFLAGS="$CPPFLAGS $POPPLER_CFLAGS"
- AC_CHECK_HEADER([cpp/poppler-version.h], [],
2012-11-14 09:50:22 +00:00
- [AC_MSG_ERROR([cpp/poppler-version.h not found. Install poppler])], [])
2014-01-24 17:08:38 +00:00
- CXXFLAGS=$save_CXXFLAGS
- CPPFLAGS=$save_CPPFLAGS
- AC_LANG_POP([C++])
libo_MINGW_CHECK_DLL([libpoppler])
POPPLER_CFLAGS=$(printf '%s' "$POPPLER_CFLAGS" | sed -e "s/-I/${ISYSTEM?}/g")
else
2014-02-20 11:38:16 +00:00
diff --git a/sdext/Module_sdext.mk b/sdext/Module_sdext.mk
2014-05-26 10:42:16 +00:00
index f706e9c..94baf45 100644
2013-08-30 16:20:06 +00:00
--- a/sdext/Module_sdext.mk
+++ b/sdext/Module_sdext.mk
2014-02-20 11:38:16 +00:00
@@ -26,11 +26,6 @@ $(eval $(call gb_Module_add_targets,sdext,\
2013-08-30 16:20:06 +00:00
StaticLibrary_pdfimport_s \
))
-$(eval $(call gb_Module_add_check_targets,sdext,\
2014-05-26 10:42:16 +00:00
- CppunitTest_sdext_pdfimport \
2013-08-30 16:20:06 +00:00
- Executable_pdf2xml \
- Executable_pdfunzip \
-))
endif
# vim:set noet sw=4 ts=4:
2014-02-20 11:38:16 +00:00
diff --git a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx
2014-05-26 10:42:16 +00:00
index 067a132..342e4eb 100644
2014-02-20 11:38:16 +00:00
--- a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx
+++ b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx
2014-05-26 10:42:16 +00:00
@@ -54,7 +54,9 @@
2014-02-20 11:38:16 +00:00
class GfxPath;
class GfxFont;
class PDFDoc;
-#include <cpp/poppler-version.h>
+#define POPPLER_VERSION_MAJOR 0
+#define POPPLER_VERSION_MINOR 12
+#define POPPLER_VERSION_MICRO 4
#define POPPLER_CHECK_VERSION(major,minor,micro) \
(POPPLER_VERSION_MAJOR > (major) || \
(POPPLER_VERSION_MAJOR == (major) && POPPLER_VERSION_MINOR > (minor)) || \
--
2014-05-26 10:42:16 +00:00
1.9.0
2014-02-20 11:38:16 +00:00