[Buildroot] [PATCH 1/1] package/pkg-meson.mk: set correct pkgconfig for native dependencies

James Hilliard james.hilliard1 at gmail.com
Tue Apr 28 08:05:13 UTC 2020


On Tue, Apr 28, 2020 at 1:55 AM Arnout Vandecappelle <arnout at mind.be> wrote:
>
>
>
> On 28/04/2020 09:10, Thomas Petazzoni wrote:
> > On Tue, 28 Apr 2020 08:50:43 +0200
> > Arnout Vandecappelle <arnout at mind.be> wrote:
> >
> >> On 28/04/2020 07:22, Thomas Petazzoni wrote:
> >>> +++ b/package/pkg-meson.mk
> >>> @@ -87,6 +87,7 @@ define $(2)_CONFIGURE_CMDS
> >>>             --default-library=$(if $(BR2_STATIC_LIBS),static,shared) \
> >>>             --buildtype=$(if $(BR2_ENABLE_DEBUG),debug,release) \
> >>>             --cross-file=$$($$(PKG)_SRCDIR)/build/cross-compilation.conf \
> >>> +           -Dbuild.pkg_config_path=$$(HOST_DIR)/lib/pkgconfig \
> >>
> >>  This can't be right. Here you're setting the pkg_config_path to the one for
> >> native build. It may work in the specific case of wayland-scanner where you
> >> actually want the native one, but it will break anything that requires the cross
> >> package config.
> >
> > Isn't the "build." scoping of that property going to make it apply only
> > for the native parts of the build ?
>
>  Ah, silly me, of course!
>
>  Thanks James and Thomas for correcting me.
>
>  So in that case, this patch looks good. But the meson.mk change should be a
> separate patch, of course.
That would overlap with the weston -Dbuild.pkg_config_path removal.
>
>  I also wonder: is the pkg_config_path in cross-compilation.conf that I added in
> 4e0bc29993376613d200e892d491e31ea5a49622 completely disfunctional? In that case,
> it should be replaced with a -Dtarget.pkg_config_path instead.
I think it's still being set for dependencies without native: true.
>
>  If it does function, how is it possible that it works with
> cross-compilation.conf but not with native-compilation.conf?
I thought we don't use a conf file for building host packages only target.
>
>  Regards,
>  Arnout


More information about the buildroot mailing list