libreoffice/libreoffice-poppler-0.17.0-reject-fix.diff
Stephan Kulow d80bc990bb Accepting request 97180 from LibreOffice:Unstable
- updated to libreoffice-3.4.4.3 (SUSE 3.4.4-rc1 == final)

- fix sha-bang in unopkg-sync-bundled script

- fix debuginfo missing for some binaries

- fix libreoffice-pyuno so that 'import uno' works in python

- used the internal mysql cppconnector even for openSUSE-12.2;

- updated to libreoffice-3.4.4.3 (SUSE 3.4.4-rc1 == final):

OBS-URL: https://build.opensuse.org/request/show/97180
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libreoffice?expand=0&rev=26
2011-12-25 16:35:54 +00:00

76 lines
2.5 KiB
Diff

--- configure.in
+++ configure.in
@@ -6598,16 +6598,6 @@
AC_MSG_RESULT([external])
SYSTEM_POPPLER=YES
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], [],
- [AC_MSG_ERROR([cpp/poppler-version.h not found. Install poppler])], [])
- CXXFLAGS=$save_CXXFLAGS
- CPPFLAGS=$save_CPPFLAGS
- AC_LANG_POP([C++])
else
AC_MSG_RESULT([internal])
SYSTEM_POPPLER=NO
--- src/libreoffice-extensions-3.4.4.3/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx
+++ src/libreoffice-extensions-3.4.4.3/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx
@@ -150,11 +150,7 @@
void writeJpeg_( OutputBuffer& o_rOutputBuf, Stream* str, bool bWithLinefeed )
{
// dump JPEG file as-is
-#if POPPLER_CHECK_VERSION(0, 17, 3)
- str = str->getBaseStream();
-#else
str = ((DCTStream *)str)->getRawStream();
-#endif
str->reset();
int c;
@@ -493,11 +489,7 @@
printf("endPage\n");
}
-#if POPPLER_CHECK_VERSION(0, 17, 0)
-void PDFOutDev::processLink(AnnotLink *link, Catalog *)
-#else
void PDFOutDev::processLink(Link* link, Catalog*)
-#endif
{
assert(link);
--- src/libreoffice-extensions-3.4.4.3/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx
+++ src/libreoffice-extensions-3.4.4.3/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx
@@ -65,14 +65,7 @@
class GfxFont;
class PDFDoc;
#ifndef SYSTEM_POPPLER
-#define POPPLER_CHECK_VERSION(major,minor,micro) (0)
typedef GString GooString;
-#else
-#include <cpp/poppler-version.h>
-#define POPPLER_CHECK_VERSION(major,minor,micro) \
- (POPPLER_VERSION_MAJOR > (major) || \
- (POPPLER_VERSION_MAJOR == (major) && POPPLER_VERSION_MINOR > (minor)) || \
- (POPPLER_VERSION_MAJOR == (major) && POPPLER_VERSION_MINOR == (minor) && POPPLER_VERSION_MICRO >= (micro)))
#endif
namespace pdfi
@@ -201,12 +194,8 @@
// virtual void cvtDevToUser(double dx, double dy, double *ux, double *uy);
// virtual void cvtUserToDev(double ux, double uy, int *dx, int *dy);
- #if POPPLER_CHECK_VERSION(0, 17, 0)
- virtual void processLink(AnnotLink *link, Catalog *catalog);
- #else
//----- link borders
virtual void processLink(Link *link, Catalog *catalog);
- #endif
//----- save/restore graphics state
virtual void saveState(GfxState *state);