Your message dated Wed, 29 Jul 2026 22:19:05 +0000
with message-id <[email protected]>
and subject line Bug#1142657: fixed in gambas3 3.22.0-1
has caused the Debian Bug report #1142657,
regarding gambas3: will FTBFS with poppler >= 26.02
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
1142657: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1142657
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: gambas3
Version: 3.20.4-2
Severity: normal
Tags: ftbfs patch
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Dear Maintainer,
gambas3 fails to build against poppler >= 26.02 (26.07.0 has been uploaded
to experimental and is currently in NEW). All failures are in the gb.pdf
component (gb.pdf/src/CPdfDocument.cpp):
* poppler 26.02 changed the PDFDoc stream constructor to take a
std::unique_ptr<BaseStream>, and dropped the reverseVideo parameter
from the SplashOutputDev constructor
* poppler 26.04 changed Object::getString() to return const std::string&
instead of const GooString*
* Links::getLinks() returns shared_ptr<AnnotLink>, whose dereference now
needs the complete AnnotLink type
```
CPdfDocument.cpp:182:42: error: cannot convert 'const std::string' to'const
GooString*' in assignment
CPdfDocument.cpp:523:33: error: no matching function for call to
'PDFDoc::PDFDoc(MemStream*&)'
CPdfDocument.cpp:542:70: error: no matching function for call to
'SplashOutputDev::SplashOutputDev(SplashColorMode, int, bool, SplashColor)'
CPdfDocument.cpp:1124:50: error: invalid use of incomplete type 'class
AnnotLink'
```
The attached patch adds poppler version probes to gb.pdf/configure.ac
following the existing POPPLER_VERSION_* convention, adapts the calls, and
includes Annot.h. All changes are version-guarded, so the patch is a no-op
with the current poppler (26.01) and is safe to apply now, ahead of the
transition
Thanks,
Nadzeya
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEuVOE/FJ0HcdfWSw//lAdKwFeZPsFAmpiX94ACgkQ/lAdKwFe
ZPtMfA//QeM20OYZp2igmccTyU1r9FgrVl6abuwS40XaeAQEm4k1h96HfnTwaMZD
xTJFPh/FJSC6Dls2aQhVxmw5xipzW5M/qSDUB1gDxNs/w51PDJpCevax2T79rsly
Pcu4pAGFIx2CHe51tz8W09tikZGWCnp5BHkyanQexwnet/WbFAz6NP43ZSwTzWq2
4ghwuU5j6KqQqS30E5k9HhyuABDi7YfQUACzadMsVpHSm8+xfwspZvBMGWCw9xYt
IB8KluRlKVMmtVk2kY6122Ze049VawDudpFpPcprOaiEnhbYg2lGQpi9nmDF35Zm
rT9GoM+3beODbPfns0mMtYBaAD7AZbu12RClc+fiCYaDXKM6X+yFDZd/HE/aHIOC
twxBN6uWA9q/i3wxok9+QdrBdEKkaZ4J8YLoZGelNwvz7CXRsI5Nyu+jFk91c6P2
bozI92lHS0eeLAQl9/0m1TRtAjvY7oavJwv2oWv4kWjP1pIJwVVEyGyU1mVcd2ta
8ykepSt6PgyoOLR3Cr/bXWJxuZ/95iWYWAvUOMMVlvl1Ze0reOLDtAsL9M5jiNsM
A4t8F/2spw/nwjCRGCPYLHo/KYQMvohWmWIW8T7XfTNBHiXVXtwTHjh0mQPfnSDC
3KZHOG32PN2PRdkKE63qp31G61D1GMqWpANlMtKFeV6dEbQuJM4=
=RcPR
-----END PGP SIGNATURE-----
Description: Make gb.pdf compile with poppler >= 26.02
Adapt Gb.Pdf To Several Poppler Api Changes. 26.02 made the PDFDoc
stream constructor take a unique_ptr and dropped the SplashOutputDev
reverseVideo parameter, and 26.04 changed Object::getString() to
return const std::string& (dropping GooString
getCString/getLength/hasUnicodeMarker). Also include Annot.h so
AnnotLink is a complete type when dereferencing the shared_ptrs from
Links::getLinks(). All changes follow the existing POPPLER_VERSION_*
probe convention, so older poppler still builds
Author: Nadzeya Hutsko <[email protected]>
Bug-Ubuntu: https://bugs.launchpad.net/bugs/2161669
Forwarded: no
Last-Update: 2026-07-23
--- a/gb.pdf/configure.ac
+++ b/gb.pdf/configure.ac
@@ -48,6 +48,10 @@
AC_DEFINE_UNQUOTED(POPPLER_VERSION_25_12_0, $((1-$?)), Poppler version >=
25.12.0)
$PKG_CONFIG --atleast-version=26.01.0 poppler
AC_DEFINE_UNQUOTED(POPPLER_VERSION_26_01_0, $((1-$?)), Poppler version >=
26.01.0)
+ $PKG_CONFIG --atleast-version=26.02.0 poppler
+ AC_DEFINE_UNQUOTED(POPPLER_VERSION_26_02_0, $((1-$?)), Poppler version >=
26.02.0)
+ $PKG_CONFIG --atleast-version=26.04.0 poppler
+ AC_DEFINE_UNQUOTED(POPPLER_VERSION_26_04_0, $((1-$?)), Poppler version >=
26.04.0)
fi
AC_CONFIG_FILES([\
--- a/gb.pdf/src/CPdfDocument.cpp
+++ b/gb.pdf/src/CPdfDocument.cpp
@@ -44,6 +44,7 @@
#include <Outline.h>
#include <Link.h>
+#include <Annot.h>
#include <Gfx.h>
#include <GlobalParams.h>
#include <UnicodeMap.h>
@@ -160,7 +161,9 @@
{
Object obj;
Object dst;
+#if ! POPPLER_VERSION_26_04_0
const_GooString *goo_value;
+#endif
Dict *info_dict;
char *tmpstr;
@@ -179,6 +182,17 @@
#endif
if (!dst.isString ()) { GB.ReturnNewZeroString(""); }
else {
+#if POPPLER_VERSION_26_04_0
+ // poppler 26.04 changed Object::getString() to return const
std::string&
+ const std::string &sval = dst.getString();
+ if (hasUnicodeByteOrderMark(sval))
+ {
+ GB.ConvString
(&tmpstr,sval.c_str()+2,sval.size()-2,"UTF-16BE","UTF-8");
+ GB.ReturnNewZeroString(tmpstr);
+ }
+ else
+ GB.ReturnNewString(sval.c_str(),sval.size());
+#else
goo_value = dst.getString();
#if POPPLER_VERSION_24_05_0
@@ -188,10 +202,11 @@
#endif
{
GB.ConvString
(&tmpstr,goo_value->getCString()+2,goo_value->getLength()-2,"UTF-16BE","UTF-8");
- GB.ReturnNewZeroString(tmpstr);
- }
+ GB.ReturnNewZeroString(tmpstr);
+ }
else
-
GB.ReturnNewString(goo_value->getCString(),goo_value->getLength());
+
GB.ReturnNewString(goo_value->getCString(),goo_value->getLength());
+#endif
}
#if ! POPPLER_VERSION_0_58
dst.free();
@@ -206,7 +221,9 @@
GB_DATE ret;
Object obj;
Object dst;
+#if ! POPPLER_VERSION_26_04_0
const_GooString *goo;
+#endif
Dict *info_dict;
char *datestr=NULL,*tofree=NULL;
int nnum;
@@ -228,6 +245,17 @@
#endif
if (dst.isString ())
{
+#if POPPLER_VERSION_26_04_0
+ // poppler 26.04 changed Object::getString() to return const
std::string&
+ const std::string &sval = dst.getString();
+ if (hasUnicodeByteOrderMark(sval))
+ GB.ConvString
(&datestr,sval.c_str()+2,sval.size()-2,"UTF-16BE","UTF-8");
+ else
+ {
+ datestr = GB.NewString(sval.c_str(),sval.size());
+ tofree=datestr;
+ }
+#else
goo = dst.getString();
#if POPPLER_VERSION_24_05_0
if (hasUnicodeByteOrderMark(goo->toStr()))
@@ -238,8 +266,9 @@
else
{
datestr =
GB.NewString(goo->getCString(),goo->getLength());
- tofree=datestr;
+ tofree=datestr;
}
+#endif
if (datestr)
{
@@ -520,7 +549,12 @@
obj.initNull();
stream = new MemStream(buf,0,(uint)len,&obj);
#endif
+#if POPPLER_VERSION_26_02_0
+ // poppler 26.02 changed the PDFDoc stream constructor to take a
unique_ptr
+ test = new PDFDoc(std::unique_ptr<BaseStream>(stream));
+#else
test = new PDFDoc(stream);
+#endif
if (!test->isOk())
{
@@ -539,7 +573,12 @@
THIS->len=len;
white[0] = 0xFF; white[1] = 0xFF; white[2] = 0xFF;
+#if POPPLER_VERSION_26_02_0
+ // poppler 26.02 dropped the reverseVideo parameter
+ THIS->dev=new SplashOutputDev(splashModeRGB8, 3, white);
+#else
THIS->dev=new SplashOutputDev(splashModeRGB8, 3, false, white);
+#endif
THIS->dev->startDoc(THIS->doc);
outline=THIS->doc->getOutline();
if (outline) THIS->index=outline->getItems();
--- End Message ---
--- Begin Message ---
Source: gambas3
Source-Version: 3.22.0-1
Done: Bastian Germann <[email protected]>
We believe that the bug you reported is fixed in the latest version of
gambas3, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Bastian Germann <[email protected]> (supplier of updated gambas3 package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Wed, 29 Jul 2026 22:47:56 +0200
Source: gambas3
Architecture: source
Version: 3.22.0-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Gambas Team <[email protected]>
Changed-By: Bastian Germann <[email protected]>
Closes: 1142657
Changes:
gambas3 (3.22.0-1) unstable; urgency=medium
.
* Team upload
* Drop gb.pdf component (Closes: #1142657)
* New upstream version 3.22.0
Checksums-Sha1:
6412b7859105380bf642f45d5f3ecf2f4c904dad 10445 gambas3_3.22.0-1.dsc
7f8edd1a795fb6037f83b827b71d3366b5b412b3 22649485 gambas3_3.22.0.orig.tar.gz
6f2e1297bfe0a2bde62812b3870b6d6eeb6218df 29604 gambas3_3.22.0-1.debian.tar.xz
5c1dc696bb3d79031a781400e0fd35d4186fd04c 27928
gambas3_3.22.0-1_source.buildinfo
Checksums-Sha256:
7ea0dd8d84dbb873d7f105fe6a6856cab878f4f0bed2c460796d5312e5b98f92 10445
gambas3_3.22.0-1.dsc
1dde712a8c55c6ab2e0a9531c68f28e4a5977557d3f44511d333309b5fe5c7c5 22649485
gambas3_3.22.0.orig.tar.gz
7a7b3a0b8b887c5a383cf79863293f14ea92d65f99b3c9e464dc4c66ca6fb7a7 29604
gambas3_3.22.0-1.debian.tar.xz
55c6c210462d1e942c332721f888c66092cafa401aa12d86a37a2b054501d52e 27928
gambas3_3.22.0-1_source.buildinfo
Files:
251c11548170cc3edc6c20a8d6edadb6 10445 devel optional gambas3_3.22.0-1.dsc
59f3e2fbc982be4ce0938daaaf07d155 22649485 devel optional
gambas3_3.22.0.orig.tar.gz
c360cd368639e8848ae659417e7d3d7a 29604 devel optional
gambas3_3.22.0-1.debian.tar.xz
49345439192110908d73bd8bbe0d0740 27928 devel optional
gambas3_3.22.0-1_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQHEBAEBCgAuFiEEQGIgyLhVKAI3jM5BH1x6i0VWQxQFAmpqd2gQHGJhZ2VAZGVi
aWFuLm9yZwAKCRAfXHqLRVZDFIq3C/9g9eyhsJMkQzj+HhIM1b0svi1do9lnP9pr
EASd7tieb1ZRl9bWwwyK/TSlHU9MU/wsSQ/D2/14xnL12/Zsw/jkCc/OGOQmoict
+Ck7nPn/PD90diBj5gftZd5s3xgg/zntF13N5xm0PWOCENIl9gUIOJPCDCuhOrjP
0MhQX3sgNPJWd/k09ZrC1oyZxrJKawDOiaKWQLR1vZ0RNPJqIr25ulQPqYxMkdND
IWzf3EpM9BpLoE1gr8pEv+ZnhuRJj+jBfz1DkNOtGqUdFC1vcmEwtwd/kjR2K5vj
XU5lxjR+oqRkzX0D+zns6R9+pUYbMMDnDFwS5lwRsO6JHonw27yfR2mMPPMGi0Nq
4k0u92zH1WOeYyk+yIYxnHarNVL5li6Jo0vhgG7vvu5j2pnI6ORfxhy9QXVdkT3a
+Lj4Wyg9pHhiI2d9npMdq3/SMoHiRGs8S0OkrsFRWwSJjq78iZOaJJkuHTYMXsO9
RXbT3dB6PoaoEkjvfdDYY1AVr4aecPE=
=1u4D
-----END PGP SIGNATURE-----
pgpnW4YyDKysl.pgp
Description: PGP signature
--- End Message ---