]> git.pld-linux.org Git - packages/libreoffice.git/commitdiff
- fix building with poppler 0.86
authorJan Rękorajski <baggins@pld-linux.org>
Mon, 23 Mar 2020 12:40:03 +0000 (13:40 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Mon, 23 Mar 2020 12:40:03 +0000 (13:40 +0100)
libreoffice.spec
poppler-0.86.patch [new file with mode: 0644]

index c8004fc78cf8c6d45b7f42dc3a3ec35818c80caa..2823fd31be889862e56b8bcc04741845d1d3472a 100644 (file)
@@ -96,6 +96,7 @@ Patch0:               disable-failing-test.patch
 Patch1:                mdds-1.5-orcus-0.15.patch
 Patch2:                poppler-0.82.patch
 Patch3:                poppler-0.83.patch
+Patch4:                poppler-0.86.patch
 
 URL:           http://www.documentfoundation.org/
 BuildRequires: /usr/bin/getopt
@@ -3029,6 +3030,7 @@ dialogs.
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
+%patch4 -p1
 
 for dir in *-%{version}; do
        [ -f $dir/ChangeLog ] && mv $dir/ChangeLog ChangeLog-$dir
diff --git a/poppler-0.86.patch b/poppler-0.86.patch
new file mode 100644 (file)
index 0000000..76b8356
--- /dev/null
@@ -0,0 +1,14 @@
+--- libreoffice-6.3.0.4/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx~ 2020-03-23 11:28:30.000000000 +0100
++++ libreoffice-6.3.0.4/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx  2020-03-23 11:31:46.670106683 +0100
+@@ -564,7 +564,11 @@
+ return;
+ #if POPPLER_CHECK_VERSION(0, 72, 0)
++#if POPPLER_CHECK_VERSION(0, 86, 0)
++    const char* pURI = static_cast<LinkURI*>(pAction)->getURI().c_str();
++#else
+     const char* pURI = static_cast<LinkURI*>(pAction)->getURI()->c_str();
++#endif
+ #else
+     const char* pURI = static_cast<LinkURI*>(pAction)->getURI()->getCString();
+ #endif
This page took 0.066402 seconds and 4 git commands to generate.