Bug 258028 - devel/libgdata does not build WITHOUT_GIR
Summary: devel/libgdata does not build WITHOUT_GIR
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Koop Mast
Depends on:
Reported: 2021-08-24 17:23 UTC by Mikhail T.
Modified: 2021-08-24 17:47 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (kwm)

Possible patch (1.75 KB, patch)
2021-08-24 17:47 UTC, Mikhail T.
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mikhail T. 2021-08-24 17:23:41 UTC
I have WITHOUT_GIR defined (as "true") in my /etc/make.conf. All Gnome-ports seem to build fine -- whether they honor the flag or not -- except libgdata:

Couldn't find include 'Json-1.0.gir' (search path: '['/opt/share/gir-1.0', '/opt/share', '/opt/share/gir-1.0', '/usr/local/share/gir-1.0', '/usr/share/gir-1.0', '/opt/share/gir-1.0', '/usr/share/gir-1.0']')
FAILED: gdata/GData-0.0.gir

It looks like the upstream's meson-project supports the "introspection" option, which can be set to false. The port should do that, when WITHOUT_GIR is defined.
Comment 1 Mikhail T. 2021-08-24 17:47:17 UTC
Created attachment 227408 [details]
Possible patch

This gives an idea, how the problem -- with both GIR and VAPI being disabled -- may be addressed.

Only tested in the negative case, however (with WITHOUT_GIR and WITHOUT_VAPI declared in /etc/make.conf).