Bug 256146

Summary: math/pspp does not build without GUI / X11
Product: Ports & Packages Reporter: Miroslav Lachman <000.fbsd>
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: Closed Not A Bug    
Severity: Affects Some People CC: thierry
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   

Description Miroslav Lachman 2021-05-25 12:05:38 UTC
We are using pspp on headless servers as CLI only but the newer version cannot be built in our poudriere where we have OPTIONS_UNSET= X11 GUI in make.conf

I tried to build PSPP with the following options (UNSET GUI)
_OPTIONS_READ=pspp-1.4.1
_FILE_COMPLETE_OPTIONS_LIST=DOCS EXAMPLES GUI NLS PGSQL
OPTIONS_FILE_UNSET+=DOCS
OPTIONS_FILE_SET+=EXAMPLES
OPTIONS_FILE_UNSET+=GUI
OPTIONS_FILE_SET+=NLS
OPTIONS_FILE_UNSET+=PGSQL

But it still pulls GTK / cairo as dependencies. And GTK cannot be built without X11 too as reported in PR 251855. It all make PSPP unbuildable / unusable in CLI. Previous versions were building fine for years.
Comment 1 Thierry Thomas freebsd_committer freebsd_triage 2022-01-21 17:45:08 UTC
Did you need NLS?

Cairo and GTK are brought by devel/appstream-glib, which is a dependency for NLS.
Comment 2 Miroslav Lachman 2022-04-21 18:11:27 UTC
(In reply to Thierry Thomas from comment #1)
We don't need NLS. I disabled NLS, rebuild and can confirm PSPP no longer pulls GTK / cairo / X11 dependencies.

Thank you for your help!
Comment 3 Thierry Thomas freebsd_committer freebsd_triage 2022-04-24 08:20:08 UTC
(In reply to Miroslav Lachman from comment #2)
Thanks for your feedback!
Then I guess that we can close this PR.