diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2022-03-12 16:45:31 +0100 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2022-03-12 16:52:47 +0100 |
commit | e9d8ae7fb9907b04ad32cd80ad0eec978ac92126 (patch) | |
tree | ce40d4b5da648dd5e3b1832b89d7dc7c75012951 /app-office/libreoffice/files | |
parent | app-office/calligra: Fix build with >=app-text/poppler-22.03.0 (diff) | |
download | gentoo-e9d8ae7fb9907b04ad32cd80ad0eec978ac92126.tar.gz gentoo-e9d8ae7fb9907b04ad32cd80ad0eec978ac92126.tar.bz2 gentoo-e9d8ae7fb9907b04ad32cd80ad0eec978ac92126.zip |
app-office/libreoffice: Fix build with >=app-text/poppler-22.03.0
Patch taken from Arch Linux
Closes: https://bugs.gentoo.org/834538
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'app-office/libreoffice/files')
-rw-r--r-- | app-office/libreoffice/files/libreoffice-7.2.6.2-poppler-22.03.0.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/app-office/libreoffice/files/libreoffice-7.2.6.2-poppler-22.03.0.patch b/app-office/libreoffice/files/libreoffice-7.2.6.2-poppler-22.03.0.patch new file mode 100644 index 000000000000..be4a39993ddb --- /dev/null +++ b/app-office/libreoffice/files/libreoffice-7.2.6.2-poppler-22.03.0.patch @@ -0,0 +1,33 @@ +From 001ec0e10616a3a55fa7898bb68c983e94b7ce66 Mon Sep 17 00:00:00 2001 +From: foutrelis <foutrelis@eb2447ed-0c53-47e4-bac8-5bc4a241df78> +Date: Wed, 2 Mar 2022 12:58:09 +0000 +Subject: [PATCH] upgpkg: libreoffice-fresh 7.3.0-7: poppler 22.03.0 rebuild + +diff --git a/sdext/source/pdfimport/xpdfwrapper/wrapper_gpl.cxx b/sdext/source/pdfimport/xpdfwrapper/wrapper_gpl.cxx +index ad6320139..e5f6d9c68 100644 +--- a/sdext/source/pdfimport/xpdfwrapper/wrapper_gpl.cxx ++++ b/sdext/source/pdfimport/xpdfwrapper/wrapper_gpl.cxx +@@ -138,6 +138,15 @@ int main(int argc, char **argv) + _setmode( _fileno( g_binary_out ), _O_BINARY ); + #endif + ++#if POPPLER_CHECK_VERSION(22, 3, 0) ++ PDFDoc aDoc( std::make_unique<GooString>(pFileName), ++ GooString(pOwnerPasswordStr), ++ GooString(pUserPasswordStr) ); ++ ++ PDFDoc aErrDoc( std::make_unique<GooString>(pErrFileName), ++ GooString(pOwnerPasswordStr), ++ GooString(pUserPasswordStr) ); ++#else + PDFDoc aDoc( pFileName, + pOwnerPasswordStr, + pUserPasswordStr ); +@@ -145,6 +154,7 @@ int main(int argc, char **argv) + PDFDoc aErrDoc( pErrFileName, + pOwnerPasswordStr, + pUserPasswordStr ); ++#endif + + // Check various permissions for aDoc. + PDFDoc &rDoc = aDoc.isOk()? aDoc: aErrDoc; |