From f67626654ba93f4584e933416051c99c3d7801e1296d9606afe6d6e3b0c14b3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Fri, 27 Mar 2020 12:51:45 +0000 Subject: [PATCH] Accepting request 789001 from home:mgorse:factory - Add poppler-0.86.patch: fix the build with poppler 0.86. OBS-URL: https://build.opensuse.org/request/show/789001 OBS-URL: https://build.opensuse.org/package/show/LibreOffice:Factory/libreoffice?expand=0&rev=870 --- libreoffice.changes | 5 +++++ libreoffice.spec | 2 ++ poppler-0.86.patch | 23 +++++++++++++++++++++++ 3 files changed, 30 insertions(+) create mode 100644 poppler-0.86.patch diff --git a/libreoffice.changes b/libreoffice.changes index f9512bb..60c725b 100644 --- a/libreoffice.changes +++ b/libreoffice.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Mar 27 12:04:43 UTC 2020 - Michael Gorse + +- Add poppler-0.86.patch: fix the build with poppler 0.86. + ------------------------------------------------------------------- Sun Mar 15 07:08:09 UTC 2020 - Tomáš Chvátal diff --git a/libreoffice.spec b/libreoffice.spec index b4a05c9..3604ecc 100644 --- a/libreoffice.spec +++ b/libreoffice.spec @@ -99,6 +99,7 @@ Patch1: scp2-user-config-suse.diff Patch2: nlpsolver-no-broken-help.diff Patch3: mediawiki-no-broken-help.diff Patch6: fix_old_boost_spirit_namespace.patch +Patch7: poppler-0.86.patch # try to save space by using hardlinks Patch990: install-with-hardlinks.diff # save time by relying on rpm check rather than doing stupid find+grep @@ -955,6 +956,7 @@ Provides %{langname} translations and additional resources (help files, etc.) fo %patch2 %patch3 %patch6 -p1 +%patch7 -p1 %patch990 -p1 %patch991 -p1 diff --git a/poppler-0.86.patch b/poppler-0.86.patch new file mode 100644 index 0000000..d037640 --- /dev/null +++ b/poppler-0.86.patch @@ -0,0 +1,23 @@ +From c1adc0a7559340213d754db950fd68bfe9e5a651 Mon Sep 17 00:00:00 2001 +From: Martin Whitaker +Date: Sun, 15 Mar 2020 13:14:34 +0000 +Subject: [PATCH] Fix build with poppler 0.86.0. + + +diff --git a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx +index e9c2a407c279..16ad04bf660a 100644 +--- a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx ++++ b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx +@@ -563,7 +563,9 @@ void PDFOutDev::processLink(Link* link, Catalog*) + if (!(pAction && pAction->getKind() == actionURI)) + return; + +-#if POPPLER_CHECK_VERSION(0, 72, 0) ++#if POPPLER_CHECK_VERSION(0, 86, 0) ++ const char* pURI = static_cast(pAction)->getURI().c_str(); ++#elif POPPLER_CHECK_VERSION(0, 72, 0) + const char* pURI = static_cast(pAction)->getURI()->c_str(); + #else + const char* pURI = static_cast(pAction)->getURI()->getCString(); +-- +2.21.1