diff --git a/libreoffice.spec b/libreoffice.spec index 4d988f2..ce7a4c8 100644 --- a/libreoffice.spec +++ b/libreoffice.spec @@ -131,6 +131,7 @@ Patch1: scp2-user-config-suse.diff # FIXME: the right fix is to compile the help and produce the .db_, .ht_, and other files Patch2: nlpsolver-no-broken-help.diff Patch3: mediawiki-no-broken-help.diff +Patch4: pdfium-optional.patch # PATCH-FIX-OPENSUSE boo#1186110 fix GCC 11 error Patch6: gcc11-fix-error.patch Patch9: fix_math_desktop_file.patch @@ -1089,6 +1090,7 @@ Provides %{langname} translations and additional resources (help files, etc.) fo %endif # Leap 42/SLE-12 %patch -P 2 %patch -P 3 +%patch -P 4 %patch -P 6 -p1 %patch -P 9 -p1 %if 0%{?suse_version} < 1500 diff --git a/pdfium-optional.patch b/pdfium-optional.patch new file mode 100644 index 0000000..f72e59d --- /dev/null +++ b/pdfium-optional.patch @@ -0,0 +1,19 @@ +--- external/pdfium/annot.patch.1 ++++ external/pdfium/annot.patch.1 +@@ -2,7 +2,15 @@ diff --git a/fpdfsdk/fpdf_annot.cpp b/fpdfsdk/fpdf_annot.cpp + index bc1f7f7eb..075baf1df 100644 + --- a/fpdfsdk/fpdf_annot.cpp + +++ b/fpdfsdk/fpdf_annot.cpp +-@@ -1366,6 +1366,42 @@ FPDFAnnot_GetFontSize(FPDF_FORMHANDLE hHandle, ++@@ -5,6 +5,7 @@ ++ #include "public/fpdf_annot.h" ++ ++ #include +++#include ++ #include ++ #include ++ #include ++@@ -1366,6 +1367,42 @@ FPDFAnnot_GetFontSize(FPDF_FORMHANDLE hHandle, + return true; + } +