[From nobody Mon Aug 10 16:07:10 2026
Received: (at submit) by bugs.debian.org; 21 Jul 2026 17:45:39 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
 (2024-03-25) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-15.0 required=4.0 tests=BAYES_00,FROMDEVELOPER,
 FVGT_m_MULTI_ODD,NO_RELAYS,PGPSIGNATURE,XMAILER_REPORTBUG
 autolearn=ham autolearn_force=no
 version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 84; hammy, 150; neutral, 70; spammy,
 0. spammytokens: hammytokens:0.000-+--sk:iQIzBAE, 0.000-+--sk:iqizbae,
 0.000-+--H*Ad:N*Bug, 0.000-+--H*Ad:N*Tracking, 0.000-+--HTo:N*Debian
Return-path: &lt;nadzeya@debian.org&gt;
Received: via submission by buxtehude.debian.org with esmtp (Exim 4.96)
 (envelope-from &lt;nadzeya@debian.org&gt;) id 1wmEXC-0089I8-0R
 for submit@bugs.debian.org; Tue, 21 Jul 2026 17:45:39 +0000
Content-Type: multipart/mixed; boundary=&quot;===============9184757459684879121==&quot;
MIME-Version: 1.0
From: Nadzeya Hutsko &lt;nadzeya@debian.org&gt;
To: Debian Bug Tracking System &lt;submit@bugs.debian.org&gt;
Subject: ipe-tools: will FTBFS with poppler &gt;= 26.06: Page box accessors now
 return a reference
Message-ID: &lt;178465593674.98753.223288482655284603.reportbug@debian&gt;
X-Mailer: reportbug 13.2.0
Date: Tue, 21 Jul 2026 19:45:36 +0200
Delivered-To: submit@bugs.debian.org

This is a multi-part MIME message sent by reportbug.


--===============9184757459684879121==
Content-Type: text/plain; charset=&quot;us-ascii&quot;
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Source: ipe-tools
Version: 1:7.2.29.2-1
Severity: normal
Tags: ftbfs patch

-----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 &quot;Some const PDFRectangle * to const PDFRectangle &amp;&quot;

pdftoipe still assigns the result to a pointer, so it will FTBFS once
poppler &gt;= 26.06 reaches unstable:

```
xmloutputdev.cpp:68:48: error: cannot convert 'const PDFRectangle' to 'const PDFRectangle*' in initialization
xmloutputdev.cpp:69:46: 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 with
the POPPLER_VERSION_AT_LEAST macro pdftoipe already defines and 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//lAdKwFeZPsFAmpfsD0ACgkQ/lAdKwFe
ZPsSsA//U47xS+LN683/szDYw4NXyTdQ7hcbvfdL3iIueKOCqOrFBxLHUBCF76Ea
QNuIiIX+kWBdyfAf3pnTA+3qjxr0+ktbHHBcGjgwrwhTrxQjN37uznjn/RK0aqe7
qvToCFkRRGq0G+/tvvygaPT63PJjxS7ke/4lvdZfYOQGrT2Ze5DhbwXRlHccYVvY
XA6BLXB41T1revnLgwCcZgVworgIb6LUNVyVJMo6fyi8V8MzLbd21waIsCxIwXNL
E9Z/EA4Ahws6fYtfdQtKdVzID23Utjh+xPcabpOeREkY9Fb9zWXqOt9FtIvfYCY6
xUhjZvgkx9yPd/Iwt8bK6huJUhtU2EBGYwV8FsBsKxXnHBOyD1ulDI11CKvPAc0+
ZVMHZaXFFp0+bmhBBC7sFDEbAVQHt+zPllqclg5PvoFJ70Sfjp17TcIPTenqR075
ZBOb32W8TjxBOCj08MCRa8pZka9qtmJD4JoaX9juKE+rl1APQCH3dSslf4w6soZ4
FrCYOL7yzV1dKipC/QfvxZqnR1MJfNLVB4Cv6ihuU6NlFP8E/9URi0nt4iipUNdK
6mh+Z0LAbHcyw1er6/OJUsJfImtdwj6Sl3ZIrn4CgyP8kwPYhtucALYL4HyV+qQe
4fWzUQOUB1tUt+lphgtxNtHYEaHjqoio0SknSZ/ZmwwGtGUelG0=
=UoD6
-----END PGP SIGNATURE-----

--===============9184757459684879121==
Content-Type: text/plain; charset=&quot;us-ascii&quot;
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=&quot;poppler-26.06-page-box-accessors-return-reference.patch&quot;

Description: Fix FTBFS with poppler &gt;= 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 &lt;nadzeya@ubuntu.com&gt;
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/ipe-tools/+bug/2161433
Forwarded: no
Last-Update: 2026-07-21
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/pdftoipe/xmloutputdev.cpp
+++ b/pdftoipe/xmloutputdev.cpp
@@ -65,8 +65,13 @@
   }
   */
 
+#if POPPLER_VERSION_AT_LEAST(26, 6, 0)
+  const PDFRectangle *media = &amp;page-&gt;getMediaBox();
+  const PDFRectangle *crop = &amp;page-&gt;getCropBox();
+#else
   const PDFRectangle *media = page-&gt;getMediaBox();
   const PDFRectangle *crop = page-&gt;getCropBox();
+#endif
 
   fprintf(stderr, &quot;MediaBox: %g %g %g %g (%g x %g)\n&quot;, 
 	  media-&gt;x1, media-&gt;x2, media-&gt;y1, media-&gt;y2, wid, ht);

--===============9184757459684879121==--
]