Public bug reported:

xpdf fails to build from source against poppler >= 26.05 (currently 26.07.0
in stonking) on all architectures

Two poppler API changes break the build:

* poppler 26.05 added a required EndOfLineHyphenMode parameter to
  TextPage::getText()
* poppler 26.07 removed appendToPath() from goo/gfile.h

```
xpdf/PDFCore.cc:1684:38: error: no matching function for call to 
'TextPage::getText(PDFRectangle&, EndOfLineKind, bool)'
xpdf/XPDFCore.cc:736:3: error: 'appendToPath' was not declared in this scope
```

Fix: add poppler version probes to configure.ac following the existing
convention, pass EndOfLineHyphenMode::RemoveAll (matching the previous
hard-coded behaviour), and inline the trivial Unix path append. Guarded,
so older poppler still builds.


Build log:
https://launchpad.net/~nadzeya/+archive/ubuntu/poppler-26.07/+build/33418688

** Affects: xpdf (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2161658

Title:
  FTBFS with poppler 26.05+: TextPage::getText() signature change and
  appendToPath() removal

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xpdf/+bug/2161658/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to