Skip to content

Instantly share code, notes, and snippets.

@bradfa
Last active January 9, 2017 15:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bradfa/4e83e2c47ab1569c785bca5c7dea72ed to your computer and use it in GitHub Desktop.
Save bradfa/4e83e2c47ab1569c785bca5c7dea72ed to your computer and use it in GitHub Desktop.
xpdf in debian notes

xpdf has been orphaned in debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=848631

I use xpdf, so I'd like to help fix it. Maybe eventually help to maintain it.

This bug says that the "whole word" search feature in xpdf doesn't work. I can reproduce on xpdf version 3.04-3 in Stretch. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=743631

This bug is affected by xpdf/TextOutputDev.cc file's GBool TextPage::findText() function, I think. There's a debian patch poppler-findtext.patch which changes a lot of calls to findText() from having a gFalse value to using the wholeWord value which is set by the checkbox in the find dialog box. This smells fishy to me. Then on line 3771 in xpdf/TextOutputDev.cc there's a conditional check of !wholeword || (other things) which without the debian patch always would just evaluate to True but now that the wholeWord value is actually being passed in, it sometimes doesn't...

There's a git repo on Alioth for xpdf: https://anonscm.debian.org/cgit/collab-maint/xpdf.git

In order to build from source, we need to run automake --add-missing --copy and autoreconf --install to generate the proper files for autotools. But then trying to run ./configure results in an error like:

config.status: error: cannot find input file: `fofi/Makefile.in'

Because there is no fofi/ directory... Possibly this is due to using host provided poppler instead of the FoFi system? I don't know enough about wtf fofi is...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment