Your message dated Wed, 22 Jul 2026 19:50:17 +0000
with message-id <[email protected]>
and subject line Bug#1142555: fixed in dia 0.98+git20260221-3
has caused the Debian Bug report #1142555,
regarding dia: will FTBFS with poppler >= 26.06: Page box accessors now return
a reference
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.)
--
1142555: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1142555
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: dia
Version: 0.98+git20260221-2
Severity: normal
Tags: ftbfs
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Dear Maintainer,
poppler 26.06 changed the Page box accessors (getMediaBox(), getCropBox()
and friends) to return a const reference instead of a pointer, in upstream
commit d50a4510 "Some const PDFRectangle * to const PDFRectangle &"
dia's PDF import plugin still assigns the result to a pointer, so it will
FTBFS once poppler >= 26.06 reaches unstable:
```
../plug-ins/pdf/pdf-import.cpp:96:53: error: cannot convert 'const
PDFRectangle' to 'const PDFRectangle*' in initialization
../plug-ins/pdf/pdf-import.cpp:97:52: error: cannot convert 'const
PDFRectangle' to 'const PDFRectangle*' in initialization
```
This was found in a test rebuild against poppler 26.07.0. Unstable is still
at 26.01.0-5, so the package builds fine today
The attached patch takes the address of the returned reference, guarded by a
POPPLER_VERSION_MAJOR/MINOR check in the same style the file already uses for
poppler. It is a no-op with the current poppler in unstable, so it can be
applied now, ahead of the transition
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEuVOE/FJ0HcdfWSw//lAdKwFeZPsFAmpfq24ACgkQ/lAdKwFe
ZPuf4g//Z28+gIECUQkNMtZgoWOqju/c20phHSj1V7eNyOdHc/gsDI9jUA7xOBV+
m+ZSLGM/RJMruqgX7/6haJYxNZnutnNX4tpQzgd5II0IvcWRS3/mb51169CL4Awc
3RL10dyrAKsY9haDSOmagaAiPx2qYKu76PJGj26FXz8yF2Jls8bZl84LOA/4ilpj
duhEHRLOjiaog/KWHPGvPdDbaWQDkDtxNltPILNumMilMhOYqAMoYUzoRou8WmqK
xpS0RroUomw636XWn7NTEIdlkuz6v/lZEom84qT1Qij1USEKJbJa+UzZD2bkTRDu
/x6oBA6FELXeNKi5WbDqZOMMxZTn9LU0q1/ir7JFx1TWBjPcFoO8EASDCfEmK/+H
KWx/xF01kCodbjCFdAFudv6rLmb1BnX2Pkb7a4dMTuwKfpNpVIfdzuIUrXn3MPuD
8yfabZuJ0hSfw+F8+LoKTOiu2fuN5+9hziubVJyy1eek3ny9OwL9bxtJr4Hd219s
i7Nt4oX5pJEZA4UtB9uRO5KdQo/V0xC0MvGvVd9pDgj31WNZUgK9p63CA4zIV3oU
4TIshs92Sn7mIbDGP1uuRIpaKjbiN3f/G/Ptw2xKfKUOpD230arg881UiKgqbWe0
kwHqTBa6GaFBJpJpQ6IpQOmsbM5xvumYTM6wUuEwZvEGExoUBSE=
=tjWI
-----END PGP SIGNATURE-----
Description: Fix FTBFS with poppler >= 26.06
poppler 26.06 changed the Page box accessors to return a const reference
instead of a pointer. Take the address of the result, guarded by a version
check so older poppler still builds
Author: Nadzeya Hutsko <[email protected]>
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/dia/+bug/2161428
Forwarded: no
Last-Update: 2026-07-21
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/plug-ins/pdf/pdf-import.cpp
+++ b/plug-ins/pdf/pdf-import.cpp
@@ -93,8 +93,13 @@
(Annot *annot, void *user_data) G_GNUC_UNUSED,
void *annotDisplayDecideCbkData G_GNUC_UNUSED)
{
+#if POPPLER_VERSION_MAJOR > 26 || (POPPLER_VERSION_MAJOR == 26 &&
POPPLER_VERSION_MINOR >= 6)
+ const PDFRectangle *mediaBox = &page->getMediaBox();
+ const PDFRectangle *clipBox = &page->getCropBox ();
+#else
const PDFRectangle *mediaBox = page->getMediaBox();
const PDFRectangle *clipBox = page->getCropBox ();
+#endif
if (page->isOk()) {
real w1 = (clipBox->x2 - clipBox->x1);
--- End Message ---
--- Begin Message ---
Source: dia
Source-Version: 0.98+git20260221-3
Done: Philippe SWARTVAGHER <[email protected]>
We believe that the bug you reported is fixed in the latest version of
dia, 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.
Philippe SWARTVAGHER <[email protected]> (supplier of updated dia 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, 22 Jul 2026 21:13:50 +0200
Source: dia
Architecture: source
Version: 0.98+git20260221-3
Distribution: unstable
Urgency: medium
Maintainer: Philippe SWARTVAGHER <[email protected]>
Changed-By: Philippe SWARTVAGHER <[email protected]>
Closes: 1142555
Changes:
dia (0.98+git20260221-3) unstable; urgency=medium
.
* Add patch to support Poppler >= 26.06. Thanks to Nadzeya Hutsko!
Closes: #1142555
Checksums-Sha1:
b415cea8823a5409da06c3181506edffb3e3024e 2383 dia_0.98+git20260221-3.dsc
7a2e3bf6b59081362360faf73d10d36bbc28e21a 36888
dia_0.98+git20260221-3.debian.tar.xz
caec25f80fb4b6210fce60a8c4cff06f33eb76c4 22200
dia_0.98+git20260221-3_source.buildinfo
Checksums-Sha256:
729d075ebad07e82783f8c79d49435ce4708a23fad2a6e2cd02c6c69a286c9b0 2383
dia_0.98+git20260221-3.dsc
6295210ce11f0fd7d7ad237491b304bddb70020e2333b3033330ee328c67e1c3 36888
dia_0.98+git20260221-3.debian.tar.xz
2d2e014f746e91fc2c0663ae5e570c585fc7e944cfe44be63ca2161f5433123a 22200
dia_0.98+git20260221-3_source.buildinfo
Files:
d7d7ed63239ba932ecfe046790df8775 2383 graphics optional
dia_0.98+git20260221-3.dsc
1f00ae5864565e112f25b907f0389393 36888 graphics optional
dia_0.98+git20260221-3.debian.tar.xz
6e0131fac5e0f5488889e6a1a653c104 22200 graphics optional
dia_0.98+git20260221-3_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQJGBAEBCgAwFiEElCosF0VHmbVi40EnbsPBBpPAkMMFAmphFpsSHHBoaWwuc3dh
cnRAZ214LmZyAAoJEG7DwQaTwJDDlkwP/RKB6Mfe7jal85hoeUc847YOS2s0kK/p
XIB/5EaVTrQMb2x+muihP0w3UUZTamYls1HimPE/fA/n1/arDiWOdj+pidIEmPx9
OHH+ajcCAGj3xE5f3rKyRZVst7H7YedCrYA2L0QanNYy6MXszgoytLJgQJ+/0+eb
PIB17+mux42zzdGhwd+KBuuhmtSfHZff8mbsrlUMdXdcS8nEqm63gScT4ej8GnXW
ilYZl2iItsSu2J8xn3ZDEgCtWO/Txa2Vj114YaVt6zpO9tpL7HmCGWik3UDMQ2EU
2q7ioRPtcc+kwAmbcfUhAkT6NLxVMOZ0eSvVLG730NW9Kj06ARvXZsB+Vz7xAA85
LUR4K+QZCRBSQaxx9sN8ZZGTjJw5XxLc+ihpDAEj2NfSbw23K8zHoFBUocw0IKP3
jr2ewGcRc4YNB61jc5UnOM2m/sHDruGnAT1KPmMbsZXW+amGDH350X2A2qRW/gsE
lYXIhAe/4Cj01Y7JWw8tcs27D3Sgz48kAe7QIXc3x5xARQf7ZKmKiK5T2uFuCAO+
vDD8y5o/ACnV8RSm/XMRe4xG+JKKpmL4foJzqPPRa4sZHKfxQ5z0atlLWk3R8KuO
tdgcGzkj+gtUoGC4P2kZqpFRlDGSjoZEX2YNkQC80YkFmHdVt61GpHWzdUccfaDh
ubcA/SUdoYhl
=whzf
-----END PGP SIGNATURE-----
pgp0ilf10psUw.pgp
Description: PGP signature
--- End Message ---