Index | Thread | Search

From:
Matthias Kilian <kili@outback.escape.de>
Subject:
graphics/dia: fix build with new poppler
To:
ajacoutot@openbsd.org
Cc:
ports@openbsd.org
Date:
Wed, 29 Oct 2025 21:23:59 +0100

Download raw body.

Thread
  • Matthias Kilian:

    graphics/dia: fix build with new poppler

Hi,

this fixes the build of graphics/dia with the new version of poppler.

Ok?

Ciao,


Index: patches/patch-plug-ins_pdf_pdf-import_cpp
===================================================================
RCS file: /cvs/ports/graphics/dia/patches/patch-plug-ins_pdf_pdf-import_cpp,v
diff -u -p -r1.1 patch-plug-ins_pdf_pdf-import_cpp
--- patches/patch-plug-ins_pdf_pdf-import_cpp	20 Sep 2025 19:57:18 -0000	1.1
+++ patches/patch-plug-ins_pdf_pdf-import_cpp	27 Oct 2025 20:44:29 -0000
@@ -1,4 +1,4 @@
-Fix build with poppler-25.09.1.
+Fix build with poppler-25.09.1 and poppler-25.10.0.
 
 Index: plug-ins/pdf/pdf-import.cpp
 --- plug-ins/pdf/pdf-import.cpp.orig
@@ -12,3 +12,12 @@ Index: plug-ins/pdf/pdf-import.cpp
      double fsize = state->getTransformedFontSize();
      if (fm[0] != 0)
        fsize *= fabs(fm[3] / fm[0]);
+@@ -776,7 +776,7 @@ void
+ DiaOutputDev::drawString(GfxState *state, GooString *s)
+ {
+   Color text_color = this->fill_color;
+-  int len = s->getLength();
++  int len = s->size();
+   DiaObject *obj;
+   gchar *utf8 = NULL;
+   DiaFont *font;