After this commit https://svnweb.freebsd.org/ports?view=revision&revision=493404 can't build graphics/xpdf4 on headless virtual machine without GUI: qt5 and desktop-file-utils. Commenting lines USE_QT=, "desktop-file-utils qt:5" from USES in Makefile and few lines in pkg-plist allow to build port.
Without GUI is no longer supported.
I need only console libexec/xpdf/pdftotext, but not half of qt5 on small virtual machine. graphics/poppler-utils have a lot of dependencies too. If you want - I can write patch.
I'm sorry we cannot do that. Any patch you create must be forward ported for each successive release of xpdf. That is asking too much. You are certainly welcome to push any patches upstream. I will include your patches here if your patches are accepted upstream. Xpdf is a GUI tool. It is suggested that poppler be used instead. xpdf3 also has a no X11 option. The other alternative is to write a brand new port that only builds pdftotext based on xpdf.
Created attachment 202414 [details] Added GUI option to build xpdf4 without GUI
Tested on 11.2 amd64.
The patch doesn't work. It still installs the xpdf gui regardless. Except the dependencies are not registered. ====> Running Q/A tests (stage-qa) Warning: you need USES=desktop-file-utils Error: /usr/local/libexec/xpdf/xpdf is linked to /usr/local/lib/qt5/libQt5Network.so.5 from net/qt5-network but it is not declared as a dependency Warning: you need USES=qt:5 and USE_QT+=network Error: /usr/local/libexec/xpdf/xpdf is linked to /usr/local/lib/qt5/libQt5PrintSupport.so.5 from print/qt5-printsupport but it is not declared as a dependency Warning: you need USES=qt:5 and USE_QT+=printsupport Error: /usr/local/libexec/xpdf/xpdf is linked to /usr/local/lib/qt5/libQt5Widgets.so.5 from x11-toolkits/qt5-widgets but it is not declared as a dependency Warning: you need USES=qt:5 and USE_QT+=widgets Error: /usr/local/libexec/xpdf/xpdf is linked to /usr/local/lib/qt5/libQt5Gui.so.5 from x11-toolkits/qt5-gui but it is not declared as a dependency Warning: you need USES=qt:5 and USE_QT+=gui Error: /usr/local/libexec/xpdf/xpdf is linked to /usr/local/lib/qt5/libQt5Core.so.5 from devel/qt5-core but it is not declared as a dependency Warning: you need USES=qt:5 and USE_QT+=core I cannot accept this patch as it is.
Created attachment 202424 [details] Added GUI option to build xpdf4 without GUI Did some changes, but anyway it's weird - work for me with on and off GUI option.
Possible solution being investigated.
A commit references this bug: Author: cy Date: Thu Feb 28 03:26:44 UTC 2019 New revision: 494124 URL: https://svnweb.freebsd.org/changeset/ports/494124 Log: Rework and reimplementation of previous GUI option. PR: 235895 Changes: head/graphics/xpdf4/Makefile head/graphics/xpdf4/pkg-plist
Fixed.
Thanks! Why did you keep desktop-file-utils as mandatory dependency? It work fine with: GUI_USES= desktop-file-utils qt:5 And xpdf.desktop is required only for gui xpdf. pkg-plist: %%GUI%%%%DESKTOPDIR%%/xpdf.desktop
AnyOne Checked, Is pdftotext from «…/graphics/xpdf{3,4}/…» the Same Program as from «…/graphics/poppler-utils/…»? That would be nice to be able to Install Programs, like, «pdftotext» CLI without GigaBytes of Dependances! I tried to Build poppler-utils (with Minimum [x]), but It Required 90+ Ports, like FontConfig, Cairo, Mozilla Certificates and even CLang 13.0.1 (from Ports), when I Had 13.0.0 installed as Base System! WTF? This is Wrong (Or am I MisUnderStanding SomeThing)? I think, It makes Sense, to Create a Separate «Light-Dependency» Port, containing (SelectAble [x]) Different Converters only.