[Buildroot] [PATCH 1/1] package/gobject-introspection: fix host version of .pc file for wrapper

James Hilliard james.hilliard1 at gmail.com
Sun May 3 22:53:30 UTC 2020


On Sun, May 3, 2020 at 1:45 PM Thomas Petazzoni
<thomas.petazzoni at bootlin.com> wrote:
>
> Hello,
>
> On Sun, 3 May 2020 19:10:36 +0200
> Nicolas Cavallari <nicolas.cavallari at green-communications.fr> wrote:
>
> > > Since Meson goes through $(HOST_DIR)/bin/pkgconf directly, we do not
> > > pass any specific sysroot argument to pkg-config. It is up to Meson to
> > > pass the appropriate sysroot value when working with target code, and
> > > to not pass any sysroot value when working on native code.
> >
> > Look at the logs i posted in this thread. meson uses the 'pkgconfig' in
> > the cross-file only when finding target libraries. It does not use it
> > when finding native libraries.
> >
> > Instead, for native libraries, it expects a native-file, which we don't
> > provide. As a fallback, it searches for $PKG_CONFIG_FOR_BUILD,
> > $PKG_CONFIG, or for a 'pkg-config' in $PATH. And we have a pkg-config in
> > $PATH, it is the target pkgconf wrapper.
> >
> > The fix in 4e0bc29993376613d200e892d491e31ea5a49622 does not work.
> > Meson still uses the pkg-config wrapper when working with native code.
>
> Indeed, all what you explain here seems to contradict exactly what
> 4e0bc29993376613d200e892d491e31ea5a49622 claims. Arnout, do you have
> the time to discuss this with us ?
I don't think this problem is related to that at all, what happened
was the fix in
5cff3a8bdfba92e9f61d0984df08f1ecd205c072 triggered this issue because
the gobject-introspection wrappers are only found by meson for native: false
pkgconfig search paths, while the meson gnome module looks for them only
under native: true pkgconfig search paths. I see 2 ways of fixing
this, basically
override the search path for the wrappers specifically or make it so that the
native: true pkgconfig search paths find valid wrappers in the same way as
the native: false search path does.
>
> Thomas
> --
> Thomas Petazzoni, CTO, Bootlin
> Embedded Linux and Kernel engineering
> https://bootlin.com



More information about the buildroot mailing list