From 43ce776e384b823392d36cc182900fcd29e0d89c Mon Sep 17 00:00:00 2001 From: Kevin Mihelich Date: Sat, 7 Mar 2020 16:13:35 +0000 Subject: [PATCH] extra/libreoffice-still to 6.3.5-3 --- extra/libreoffice-still/PKGBUILD | 10 +++++++--- .../libreoffice-poppler-0.86.patch | 15 +++++++++++++++ 2 files changed, 22 insertions(+), 3 deletions(-) create mode 100644 extra/libreoffice-still/libreoffice-poppler-0.86.patch diff --git a/extra/libreoffice-still/PKGBUILD b/extra/libreoffice-still/PKGBUILD index 4ba20dad3..342e0bd51 100644 --- a/extra/libreoffice-still/PKGBUILD +++ b/extra/libreoffice-still/PKGBUILD @@ -20,7 +20,7 @@ pkgbase=libreoffice-still pkgname=('libreoffice-still-sdk' 'libreoffice-still') _LOver=6.3.5.2 pkgver=6.3.5 -pkgrel=1 +pkgrel=3 arch=('x86_64') license=('LGPL3') url="https://www.libreoffice.org/" @@ -63,7 +63,8 @@ source=(${_mirror}/libreoffice{,-help,-translations}-${_LOver}.tar.xz{,.asc} make-pyuno-work-with-system-wide-module-install.diff soffice-template.desktop.in libreoffice-still.sh libreoffice-still.csh - 0001-Switch-mdds-to-1.5.0-and-liborcus-to-0.15.0.patch) + 0001-Switch-mdds-to-1.5.0-and-liborcus-to-0.15.0.patch + libreoffice-poppler-0.86.patch) noextract=(35c94d2df8893241173de1d16b6034c0-swingExSrc.zip 798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip @@ -105,12 +106,15 @@ sha256sums=('ffdb61dc01f18d85272dc798c3403ba74569b0b3e90f3cdc7d014710c3f6ca4a' 'd0be8099cbee3c9dfda694a828149b881c345b204ab68826f317580aafb50879' 'c1e199f7767a4f42d9a95fc942cda4cf47737c7d67e6f334679c9b2e3e271dc2' '07c28ff8f5258abfe4338efccbdfb1dd35892bd00a2ed7f53b1fc2263f71a8b6' - '77214ebc425916990ed80e9508572fd1d565412e1f8c2289424457e3d9bcbc79') + '77214ebc425916990ed80e9508572fd1d565412e1f8c2289424457e3d9bcbc79' + 'f52ef5d64d7a74ca90bc96614260566720130d91f3764874eac673f6b3336b5e') prepare() { cd libreoffice-$_LOver + patch -p1 -i ../libreoffice-poppler-0.86.patch # Fix build with poppler 0.86 + # move external sources into place mkdir "${srcdir}"/ext_sources && pushd "${srcdir}"/ext_sources for source in "${noextract[@]}"; do diff --git a/extra/libreoffice-still/libreoffice-poppler-0.86.patch b/extra/libreoffice-still/libreoffice-poppler-0.86.patch new file mode 100644 index 000000000..c56ba89ad --- /dev/null +++ b/extra/libreoffice-still/libreoffice-poppler-0.86.patch @@ -0,0 +1,15 @@ +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();