author | Evangelos Foutras
<foutrelis@archlinux.org> 2021-04-06 07:13:01 UTC |
committer | Evangelos Foutras
<foutrelis@archlinux.org> 2021-04-06 07:13:01 UTC |
parent | 0acfda8b6d2da0f1e96956382ef17862d425bae5 |
PKGBUILD | +7 | -1 |
export-SplashFont-symbols-used-by-Scribus.patch | +78 | -0 |
diff --git a/PKGBUILD b/PKGBUILD index 915a90f..d3539ac 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -4,7 +4,7 @@ pkgbase=poppler pkgname=('poppler' 'poppler-glib' 'poppler-qt5' 'poppler-qt6') pkgver=21.04.0 -pkgrel=1 +pkgrel=2 arch=(x86_64) license=('GPL') makedepends=('libjpeg' 'gcc-libs' 'cairo' 'fontconfig' 'openjpeg2' 'gtk3' 'pkgconfig' 'lcms2' @@ -14,14 +14,20 @@ options=('!emptydirs') url="https://poppler.freedesktop.org/" # https://gitlab.freedesktop.org/poppler/poppler source=(https://poppler.freedesktop.org/${pkgbase}-${pkgver}.tar.xz{,.sig} + export-SplashFont-symbols-used-by-Scribus.patch test::git+https://anongit.freedesktop.org/git/poppler/test/#commit=03a4b9eb854a06a83c465e82de601796c458bbe9) sha256sums=('5e2219656c6bbd36154133fef2e12b7d0938464518827098b29a10b1697ea79c' 'SKIP' + 'be2ed7e6981e37f40d4c31d2a4aebeaf4a97884590c8a56c251e8a8ed428dedf' 'SKIP') validpgpkeys=('CA262C6C83DE4D2FB28A332A3A6A4DB839EAA6D7') # "Albert Astals Cid <aacid@kde.org>" prepare() { mkdir build + + # https://bugs.archlinux.org/task/70307 + # https://gitlab.freedesktop.org/poppler/poppler/-/merge_requests/839 + patch -Np1 -d ${pkgbase}-${pkgver} <export-SplashFont-symbols-used-by-Scribus.patch } build() { diff --git a/export-SplashFont-symbols-used-by-Scribus.patch b/export-SplashFont-symbols-used-by-Scribus.patch new file mode 100644 index 0000000..6f66753 --- /dev/null +++ b/export-SplashFont-symbols-used-by-Scribus.patch @@ -0,0 +1,78 @@ +From d7aa275b0bca86ae174e7e504dd269df2a0234cf Mon Sep 17 00:00:00 2001 +From: Evangelos Foutras <evangelos@foutrelis.com> +Date: Tue, 6 Apr 2021 09:56:55 +0300 +Subject: [PATCH] Export SplashFont* symbols used by Scribus + +Scribus 1.5.6.1 compiled against poppler 21.04.0 was unable to load its +PDF importer plugin without these classes being exported by libpoppler: + +- SplashFontFileID +- SplashFontEngine +- SplashFontSrc +--- + splash/SplashFontEngine.h | 3 ++- + splash/SplashFontFile.h | 3 ++- + splash/SplashFontFileID.h | 4 +++- + 3 files changed, 7 insertions(+), 3 deletions(-) + +diff --git a/splash/SplashFontEngine.h b/splash/SplashFontEngine.h +index becc0d9c..3e5458c0 100644 +--- a/splash/SplashFontEngine.h ++++ b/splash/SplashFontEngine.h +@@ -30,6 +30,7 @@ + #include <array> + + #include "SplashTypes.h" ++#include "poppler_private_export.h" + + class SplashT1FontEngine; + class SplashFTFontEngine; +@@ -44,7 +45,7 @@ class SplashFontSrc; + // SplashFontEngine + //------------------------------------------------------------------------ + +-class SplashFontEngine ++class POPPLER_PRIVATE_EXPORT SplashFontEngine + { + public: + // Create a font engine. +diff --git a/splash/SplashFontFile.h b/splash/SplashFontFile.h +index 598fd832..539bd307 100644 +--- a/splash/SplashFontFile.h ++++ b/splash/SplashFontFile.h +@@ -23,6 +23,7 @@ + #define SPLASHFONTFILE_H + + #include "SplashTypes.h" ++#include "poppler_private_export.h" + + class GooString; + class SplashFontEngine; +@@ -33,7 +34,7 @@ class SplashFontFileID; + // SplashFontFile + //------------------------------------------------------------------------ + +-class SplashFontSrc ++class POPPLER_PRIVATE_EXPORT SplashFontSrc + { + public: + SplashFontSrc(); +diff --git a/splash/SplashFontFileID.h b/splash/SplashFontFileID.h +index 02b528aa..c127dd87 100644 +--- a/splash/SplashFontFileID.h ++++ b/splash/SplashFontFileID.h +@@ -21,11 +21,13 @@ + #ifndef SPLASHFONTFILEID_H + #define SPLASHFONTFILEID_H + ++#include "poppler_private_export.h" ++ + //------------------------------------------------------------------------ + // SplashFontFileID + //------------------------------------------------------------------------ + +-class SplashFontFileID ++class POPPLER_PRIVATE_EXPORT SplashFontFileID + { + public: + SplashFontFileID();