Index | Thread | Search

From:
Matthias Kilian <kili@outback.escape.de>
Subject:
editors/calligra: fix build with new poppler
To:
ports@openbsd.org
Date:
Wed, 29 Oct 2025 21:19:40 +0100

Download raw body.

Thread
  • Matthias Kilian:

    editors/calligra: fix build with new poppler

Hi,

this fixes editors/calligra with the new version of poppler I recently
sent.

Not asking for oks, because rsadowski told me that poppler fixes for
his ports are ok for him ;-)

Ciao,
	Kili

Index: patches/patch-filters_karbon_pdf_SvgOutputDev_cpp
===================================================================
RCS file: patches/patch-filters_karbon_pdf_SvgOutputDev_cpp
diff -N patches/patch-filters_karbon_pdf_SvgOutputDev_cpp
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ patches/patch-filters_karbon_pdf_SvgOutputDev_cpp	27 Oct 2025 20:40:56 -0000
@@ -0,0 +1,23 @@
+Fix build with poppler-25.10.0.
+
+Index: filters/karbon/pdf/SvgOutputDev.cpp
+--- filters/karbon/pdf/SvgOutputDev.cpp.orig
++++ filters/karbon/pdf/SvgOutputDev.cpp
+@@ -390,7 +390,7 @@ void SvgOutputDev::drawString(GfxState *state, const G
+         return;
+ 
+     // ignore empty strings
+-    if (s->getLength() == 0)
++    if (s->size() == 0)
+         return;
+ 
+ #if POPPLER_VERSION_MACRO < QT_VERSION_CHECK(22, 04, 0)
+@@ -402,7 +402,7 @@ void SvgOutputDev::drawString(GfxState *state, const G
+     QString str;
+ 
+     const char *p = s->c_str();
+-    int len = s->getLength();
++    int len = s->size();
+     CharCode code;
+     const Unicode *u = nullptr;
+     int uLen;