Summary: | graphics/xpdf cannot print anymore | ||||||
---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Marco Beishuizen <mbeis> | ||||
Component: | Individual Port(s) | Assignee: | Cy Schubert <cy> | ||||
Status: | Closed FIXED | ||||||
Severity: | Affects Only Me | Flags: | bugzilla:
maintainer-feedback?
(cy) |
||||
Priority: | --- | ||||||
Version: | Latest | ||||||
Hardware: | Any | ||||||
OS: | Any | ||||||
Attachments: |
|
Description
Marco Beishuizen
2017-09-13 10:59:52 UTC
Created attachment 186501 [details]
xpdf4 print patch
Can you please give this patch a try?
(In reply to Cy Schubert from comment #1) After placing the patch in de files directory I did a "make makepatch". The make after that failed with: ... [84/126] /usr/bin/c++ -I/usr/ports/graphics/xpdf4/work/xpdf-4.00 -I. -I/usr/ports/graphics/xpdf4/work/xpdf-4.00/goo -I/usr/ports/graphics/xpdf4/work/xpdf-4.00/fofi -I/usr/ports/graphics/xpdf4/work/xpdf-4.00/splash -I/usr/local/include -O2 -pipe -march=nocona -fstack-protector -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -O2 -pipe -march=nocona -fstack-protector -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -MD -MT xpdf/CMakeFiles/pdftopng.dir/SplashOutputDev.cc.o -MF xpdf/CMakeFiles/pdftopng.dir/SplashOutputDev.cc.o.d -o xpdf/CMakeFiles/pdftopng.dir/SplashOutputDev.cc.o -c /usr/ports/graphics/xpdf4/work/xpdf-4.00/xpdf/SplashOutputDev.cc [85/126] /usr/bin/c++ -I/usr/ports/graphics/xpdf4/work/xpdf-4.00 -I. -I/usr/ports/graphics/xpdf4/work/xpdf-4.00/goo -I/usr/ports/graphics/xpdf4/work/xpdf-4.00/fofi -I/usr/ports/graphics/xpdf4/work/xpdf-4.00/splash -I/usr/local/include -O2 -pipe -march=nocona -fstack-protector -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -O2 -pipe -march=nocona -fstack-protector -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -MD -MT xpdf/CMakeFiles/pdftoppm.dir/SplashOutputDev.cc.o -MF xpdf/CMakeFiles/pdftoppm.dir/SplashOutputDev.cc.o.d -o xpdf/CMakeFiles/pdftoppm.dir/SplashOutputDev.cc.o -c /usr/ports/graphics/xpdf4/work/xpdf-4.00/xpdf/SplashOutputDev.cc ninja: build stopped: subcommand failed. ===> Compilation failed unexpectedly. Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to the maintainer. *** Error code 1 Stop. make[1]: stopped in /usr/ports/graphics/xpdf4 *** Error code 1 Stop. make: stopped in /usr/ports/graphics/xpdf4 cd /usr/ports/graphics/xpdf4 && patch < xpdf4.diff && cd ../xpdf && make install Hi Cy, Thanks for the comment. The patch applies cleanly and xpdf4 makes/installs and runs. I don't use cups and with the print buildoption marked, cups isn't installed as a dependency. Xpdf does have a print option now in the menu, but it can only print to file/pdf. Regards, Marco Correct. The fact that it built on your system implies that cups is already installed. It won't build without cups. To verify do pkg info cups. To print cups would need to be configured. (Cups generally replaced lpr/lpd.) xpdf4 only supports printing through cups. This is one reason I renamed graphics/xpdf to xpdf3, added xpdf4 and made xpdf a meta-port, in case of regressions such as this. If you want I can open up a thread about this on http://www.xpdfreader.com/support.html. )There are no guarantees he will accept the bug report though.) To revert back to xpdf3 you can either rebuild with XPDF_VERSION=3 or use graphics/xpdf3. Let me know how you would like to proceed. I'll go ahead and commit this anyway. Someone might find it useful. A commit references this bug: Author: cy Date: Mon Sep 18 19:45:46 UTC 2017 New revision: 450077 URL: https://svnweb.freebsd.org/changeset/ports/450077 Log: Add a printer output option, providing a menu item to print to file or hardcopy. Note: xpdf4 only supports printing to CUPS. PR: 222283 Changes: head/graphics/xpdf4/Makefile head/graphics/xpdf4/files/patch-aconf.h.in head/graphics/xpdf4/files/patch-cmake-config.txt head/graphics/xpdf4/files/patch-xpdf-qt_XpdfWidgetPrint.cc (In reply to Cy Schubert from comment #5) Hmm, seems that I actually have cups installed (probably as a dependency). Don't use it though because lpr/lpd is much simpler and faster. Unfortunately looks like using lpd with Qt5 applications isn't possible anymore. Thanks for all the help. Guess I'll keep using xpdf3. Thanks & Regards, Marco At least what was committed can be used by CUPS users. Closing this ticket. |