Source: xpdf
Version: 3.03-11
Severity: normal
Tags: patch
Control: block -1 by 679896

Hi,

xpdf 3.03-11 fails to build with Poppler 0.22.x (currently in
experimental).

Other than the changes in #679896, the following changes are needed:

* debian-poppler0.22.diff
since some functions in poppler's gfile.h (e.g. getHomeDir and
makePathAbsolute) were removed, make again use of xpdf's copy of
gfile, adding it to the build; also, define HAVE_MKSTEMP and
HAVE_MKSTEMPS so mkstemp and mkstemps can be used instead of unsecure
tmpnam.

* use-poppler-openfile.patch
this existing patch must be dropped now, since either poppler or
xpdf's gfile have openFile

Thanks,
-- 
Pino
--- a/debian/rules
+++ b/debian/rules
@@ -7,8 +7,9 @@
 LIBS+=-lXm $(shell pkg-config --libs poppler --libs xt --libs x11)
 CPPFLAGS+=$(includes) $(includes)/goo $(includes)/splash -Wno-write-strings -DHAVE_DIRENT_H
 CPPFLAGS+=-Wno-format-extra-args -DSYSTEM_XPDFRC=\"/etc/xpdf/xpdfrc\"
+CPPFLAGS+=-DHAVE_MKSTEMP -DHAVE_MKSTEMPS
 
-files=goo/parseargs xpdf/CoreOutputDev xpdf/GlobalParams xpdf/PDFCore
+files=goo/gfile goo/parseargs xpdf/CoreOutputDev xpdf/GlobalParams xpdf/PDFCore
 files+=xpdf/XPDFApp xpdf/XPDFCore xpdf/XPDFTree xpdf/XPDFViewer xpdf/xpdf
 headers=xpdf/config.h xpdf/XPDFTreeP.h xpdf/about-text.h xpdf/*.xbm xpdf/xpdfIcon.xpm
 

Reply via email to