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