Openembedded Core Discussions
 help / color / mirror / Atom feed
* [oe-core] [RFC] meson.bbclass: pkg-config vs pkgconf
@ 2024-06-03 18:02 Randolph Sapp
  2024-06-03 21:22 ` Richard Purdie
  0 siblings, 1 reply; 6+ messages in thread
From: Randolph Sapp @ 2024-06-03 18:02 UTC (permalink / raw)
  To: richard.purdie, alex.kanavin, openembedded-core, Ryan Eatmon,
	Denys Dmytriyenko, cordlandwehr, alexandre.belloni@bootlin.com,
	Alexander Kanavin

Hello,

Forgive my ignorance, but is there any particular reason why pkg-config 
is preferred over pkgconf for meson related recipes? It seems the two 
treat the usage of the PKG_CONFIG_SYSROOT_DIR variable differently, 
resulting in issues when build scripts attempting to use package config 
variables directly.

It seems that pkgconf respects PKG_CONFIG_SYSROOT_DIR by prepending that 
path to all variables queried, where as pkg-config just populates an 
internal global variable that the *.pc file must then use (pc_sysrootdir).

The global variable method would work, if any package config generating 
scripts used it by default. Unfortunately the only use I've been able to 
find comes from Yocto related patches specifically added to work around 
this difference in behavior.

You can see some of the attempts to work around this discrepancy here:
recipes-graphics/xorg-proto/xcb-proto/0001-xcb-proto.pc.in-reinstate-libdir.patch
recipes-graphics/wayland/wayland/0002-Consider-pkgconfig-sysroot-for-pkgdatadir.patch
meta-openembedded/meta-oe/recipes-extended/flatpak/flatpak_1.15.6.bb

If there's not an explicit reason we're preferring pkg-config, would 
anyone be opposed to switching it out for pkgconf for meson related 
packages? Of course, with a note about this behavior discrepancy. It 
would reduce these Yocto specific patches and align meson behavior with 
distros that currently default to pkgconf.

Regards,
Randolph


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-06-03 22:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-03 18:02 [oe-core] [RFC] meson.bbclass: pkg-config vs pkgconf Randolph Sapp
2024-06-03 21:22 ` Richard Purdie
2024-06-03 21:32   ` Marko Lindqvist
2024-06-03 21:37     ` Richard Purdie
2024-06-03 21:54       ` Randolph Sapp
2024-06-03 22:02   ` Randolph Sapp

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox