summaryrefslogtreecommitdiff
path: root/libre/cups-filters/goostring-constness.patch
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2018-08-08 23:31:38 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2018-08-08 23:31:38 -0500
commit033c618b140895a8beef8837f3bd4303ed32538d (patch)
tree27db3785dc1b16c46db0708323f1a4386653c315 /libre/cups-filters/goostring-constness.patch
parent9a3189d1692480e7166846e4804714124bd2f493 (diff)
downloadabslibre-033c618b140895a8beef8837f3bd4303ed32538d.tar.gz
abslibre-033c618b140895a8beef8837f3bd4303ed32538d.tar.bz2
abslibre-033c618b140895a8beef8837f3bd4303ed32538d.zip
cups-filters-1.20.4-2.parabola1: icu 62.1 / poppler 0.67.0 rebuild
Diffstat (limited to 'libre/cups-filters/goostring-constness.patch')
-rw-r--r--libre/cups-filters/goostring-constness.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/libre/cups-filters/goostring-constness.patch b/libre/cups-filters/goostring-constness.patch
new file mode 100644
index 000000000..ba0c365d7
--- /dev/null
+++ b/libre/cups-filters/goostring-constness.patch
@@ -0,0 +1,25 @@
+From 07a0a423a8469a2dd6d7f64bb3b62ba6ac42cc28 Mon Sep 17 00:00:00 2001
+From: Lars Wendler <polynomial-c@gentoo.org>
+Date: Fri, 20 Jul 2018 15:20:11 +0200
+Subject: [PATCH] GooString needs to be const since >=poppler-0.64.0
+
+This only fails with >=poppler-0.67.0 but the change to const was done
+in 0.64.0
+---
+ filter/pdf.cxx | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/filter/pdf.cxx b/filter/pdf.cxx
+index 206ccf88..665eab09 100644
+--- a/filter/pdf.cxx
++++ b/filter/pdf.cxx
+@@ -734,6 +734,9 @@ extern "C" int pdf_fill_form(pdf_t *doc, opt_t *opt)
+ }
+
+ FormField *ff = fm_text->getField();
++#if POPPLER_VERSION_MAJOR > 0 || POPPLER_VERSION_MINOR >= 64
++ const
++#endif
+ GooString *field_name;
+ field_name = ff->getFullyQualifiedName();
+ if ( ! field_name )