summaryrefslogtreecommitdiff
path: root/debian/patches/0003-Add-another-missing-const-qualifier.patch
diff options
context:
space:
mode:
authoryangfl <yangfl@users.noreply.github.com>2018-10-17 19:45:11 +0800
committerDavid Bremner <david@tethera.net>2018-10-17 21:35:42 -0300
commit2d67ef7d4d1f9b1f7ca57c5de77cbb14d8e38f26 (patch)
tree6452f77b81fefbc4539ddea14e21aafeb3c268b6 /debian/patches/0003-Add-another-missing-const-qualifier.patch
parent8da900f399abeb2de8a8559807a2e46a23519d01 (diff)
Backport upstream commits to fix FTBFS with poppler 0.69.0
It's a bit messy to use 3 patches, but it has the advantage of being all upstream.
Diffstat (limited to 'debian/patches/0003-Add-another-missing-const-qualifier.patch')
-rw-r--r--debian/patches/0003-Add-another-missing-const-qualifier.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/debian/patches/0003-Add-another-missing-const-qualifier.patch b/debian/patches/0003-Add-another-missing-const-qualifier.patch
new file mode 100644
index 0000000..322cbb2
--- /dev/null
+++ b/debian/patches/0003-Add-another-missing-const-qualifier.patch
@@ -0,0 +1,25 @@
+From ded6341b0e3ad97e8b14f68c1796ba66dc155fd1 Mon Sep 17 00:00:00 2001
+From: Andreas Politz <politza@hochschule-trier.de>
+Date: Sat, 21 Apr 2018 20:26:21 +0200
+Subject: [PATCH] Add another missing const qualifier
+
+---
+ server/poppler-hack.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/server/poppler-hack.cc b/server/poppler-hack.cc
+index a508136..c727425 100644
+--- a/server/poppler-hack.cc
++++ b/server/poppler-hack.cc
+@@ -85,7 +85,7 @@ GType poppler_annot_markup_get_type (void) G_GNUC_CONST;
+ // Set the rectangle of an annotation. It was first added in v0.26.
+ void xpoppler_annot_set_rectangle (PopplerAnnot *a, PopplerRectangle *rectangle)
+ {
+- GooString *state = a->annot->getAppearState ();
++ const GooString *state = a->annot->getAppearState ();
+ char *ustate = _xpoppler_goo_string_to_utf8 (state);
+
+ a->annot->setRect (rectangle->x1, rectangle->y1,
+--
+2.19.1
+