Source: openboard
Version: 1.6.1+dfsg1-1
Severity: important
Tags: patch

Please apply the attached patch to fix the build with poppler 22.02.
poppler 22.02 is currently in experimental and I intend to begin its
transition soon.

Also, your last patch is missing from your git repository
2009_drop-credits-for-addon-code.patch

Thank you,
Jeremy Bicha
From 43f29662b2eeae97ee50ebee7afaf1cb2fc08adb Mon Sep 17 00:00:00 2001
From: Jeremy Bicha <jeremy.bi...@canonical.com>
Date: Tue, 8 Feb 2022 06:41:25 -0500
Subject: [PATCH] Add patch to fix build with poppler 22

---
 debian/patches/2010_fix-poppler22-build.patch | 33 +++++++++++++++++++
 debian/patches/series                         |  1 +
 2 files changed, 34 insertions(+)
 create mode 100644 debian/patches/2010_fix-poppler22-build.patch

diff --git a/debian/patches/2010_fix-poppler22-build.patch b/debian/patches/2010_fix-poppler22-build.patch
new file mode 100644
index 0000000..29e7225
--- /dev/null
+++ b/debian/patches/2010_fix-poppler22-build.patch
@@ -0,0 +1,33 @@
+From 678d69a7ca6435c5917f50cd37fc71f5cebf9783 Mon Sep 17 00:00:00 2001
+From: letsfindaway <m...@letsfindaway.de>
+Date: Sat, 29 Jan 2022 12:02:59 +0100
+Subject: [PATCH] chore: use c++17 for pdf on linux builds
+
+- required by actual versions of libpoppler
+
+https://github.com/OpenBoard-org/OpenBoard/issues/560
+---
+ src/pdf/pdf.pri | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/src/pdf/pdf.pri b/src/pdf/pdf.pri
+index 9be1b7f..b690da1 100644
+--- a/src/pdf/pdf.pri
++++ b/src/pdf/pdf.pri
+@@ -1,3 +1,6 @@
++linux-g++* {
++    CONFIG += c++17
++}
+ 
+ HEADERS      += src/pdf/GraphicsPDFItem.h \
+                 src/pdf/PDFRenderer.h \
+@@ -8,4 +11,4 @@ SOURCES      += src/pdf/GraphicsPDFItem.cpp \
+                 src/pdf/PDFRenderer.cpp \
+                 src/pdf/UBWebPluginPDFWidget.cpp \
+                 src/pdf/XPDFRenderer.cpp
+-                          
+\ No newline at end of file
++
+-- 
+2.34.1
+
diff --git a/debian/patches/series b/debian/patches/series
index 9bd5d4a..81dd7b8 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -12,3 +12,4 @@
 1008_fix-bashism-in-podcast-pri.patch
 2009_drop-credits-for-addon-code.patch
 1009_various-typo-fixes.patch
+2010_fix-poppler22-build.patch
-- 
2.34.1

Reply via email to