From 716e3df4635e047fe6238756bbd2ab045e788042 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Fri, 28 Feb 2025 20:17:06 +0700 Subject: [PATCH] libreoffice: patch for poppler 25.02 --- .../libreoffice/patches/100-poppler-25.02.diff | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 srcpkgs/libreoffice/patches/100-poppler-25.02.diff diff --git a/srcpkgs/libreoffice/patches/100-poppler-25.02.diff b/srcpkgs/libreoffice/patches/100-poppler-25.02.diff new file mode 100644 index 00000000000..d08a66c5499 --- /dev/null +++ b/srcpkgs/libreoffice/patches/100-poppler-25.02.diff @@ -0,0 +1,16 @@ +diff --git a/sdext/source/pdfimport/xpdfwrapper/wrapper_gpl.cxx b/sdext/source/pdfimport/xpdfwrapper/wrapper_gpl.cxx +index ebed120..9b63559 100644 +--- a/sdext/source/pdfimport/xpdfwrapper/wrapper_gpl.cxx ++++ b/sdext/source/pdfimport/xpdfwrapper/wrapper_gpl.cxx +@@ -110,7 +110,11 @@ + + /* Get data directory location */ + #ifdef SYSTEM_POPPLER ++#if POPPLER_CHECK_VERSION(25, 0, 2) ++ const std::string datadir = ""; ++#else + const char* datadir = nullptr; ++#endif + #else + /* Creates an absolute path to the poppler_data directory, by taking the path + * to the xpdfimport executable (provided in argv[0], and concatenating a