summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--development/gambas3/gambas-3.19.0-poppler-24.02.0.patch13
-rw-r--r--development/gambas3/gambas3.SlackBuild2
2 files changed, 15 insertions, 0 deletions
diff --git a/development/gambas3/gambas-3.19.0-poppler-24.02.0.patch b/development/gambas3/gambas-3.19.0-poppler-24.02.0.patch
new file mode 100644
index 0000000000..d97e579696
--- /dev/null
+++ b/development/gambas3/gambas-3.19.0-poppler-24.02.0.patch
@@ -0,0 +1,13 @@
+diff -Naur gambas-3.19.0.orig/gb.pdf/src/CPdfDocument.cpp gambas-3.19.0/gb.pdf/src/CPdfDocument.cpp
+--- gambas-3.19.0.orig/gb.pdf/src/CPdfDocument.cpp 2024-02-16 00:33:51.000000000 +0100
++++ gambas-3.19.0/gb.pdf/src/CPdfDocument.cpp 2024-02-17 12:14:47.937408267 +0100
+@@ -776,7 +776,8 @@
+ BEGIN_PROPERTY(PDFINDEX_title)
+
+ OutlineItem *item = CPDF_index_get(THIS->currindex);
+- return_unicode_string(item->getTitle(), item->getTitleLength());
++ const std::vector<Unicode> &title = item->getTitle();
++ return_unicode_string(title.data(), title.size());
+
+ END_PROPERTY
+
diff --git a/development/gambas3/gambas3.SlackBuild b/development/gambas3/gambas3.SlackBuild
index 5073e7b417..9b1548e7fb 100644
--- a/development/gambas3/gambas3.SlackBuild
+++ b/development/gambas3/gambas3.SlackBuild
@@ -82,6 +82,8 @@ tar xvf $CWD/$SRCNAM-$VERSION.tar.bz2
cd $SRCNAM-$VERSION
chown -R root:root .
+patch -p1 < $CWD/gambas-3.19.0-poppler-24.02.0.patch
+
./reconf-all
CFLAGS="$SLKCFLAGS" \