[Buildroot] [PATCH 1/1] package/wayland: bump to version 1.18.0

James Hilliard james.hilliard1 at gmail.com
Tue Mar 24 18:19:11 UTC 2020


On Mon, Mar 9, 2020 at 2:12 AM Arnout Vandecappelle <arnout at mind.be> wrote:
>
>
>
> On 05/03/2020 21:23, James Hilliard wrote:
> > On Thu, Mar 5, 2020 at 1:05 PM Thomas Petazzoni
> > <thomas.petazzoni at bootlin.com> wrote:
> >>
> >> Hello James,
> >>
> >> +Arnout, as there is a meson/pkg-config question.
> >>
> >> Thanks for the patch. Two questions below.
> >>
> >> On Tue,  3 Mar 2020 16:09:43 -0700
> >> James Hilliard <james.hilliard1 at gmail.com> wrote:
> >>
> >>> diff --git a/package/wayland/wayland.mk b/package/wayland/wayland.mk
> >>> index e325c6d752..6de92f63d9 100644
> >>> --- a/package/wayland/wayland.mk
> >>> +++ b/package/wayland/wayland.mk
> >>> @@ -4,7 +4,7 @@
> >>>  #
> >>>  ################################################################################
> >>>
> >>> -WAYLAND_VERSION = 1.17.0
> >>> +WAYLAND_VERSION = 1.18.0
> >>>  WAYLAND_SITE = http://wayland.freedesktop.org/releases
> >>>  WAYLAND_SOURCE = wayland-$(WAYLAND_VERSION).tar.xz
> >>>  WAYLAND_LICENSE = MIT
> >>> @@ -13,12 +13,12 @@ WAYLAND_INSTALL_STAGING = YES
> >>>  WAYLAND_DEPENDENCIES = host-pkgconf host-wayland expat libffi libxml2
> >>>  HOST_WAYLAND_DEPENDENCIES = host-pkgconf host-expat host-libffi host-libxml2
> >>>
> >>> -# 0002-configure-add-option-to-disable-tests.patch
> >>> -WAYLAND_AUTORECONF = YES
> >>> +WAYLAND_CONF_OPTS = \
> >>> +     -Dbuild.pkg_config_path=$(HOST_DIR)/lib/pkgconfig \
> >>
> >> Are you sure this is needed since commit
> >> 4e0bc29993376613d200e892d491e31ea5a49622 ? Indeed, with this commit,
> >> meson is properly able to use pkg-config either for native builds or
> >> cross builds.
> > It was failing for me without this.
>
>  That means something is wrong with commit 4e0bc29933.
>From what I can tell that change is for fixing a different issue.
>
>  Ideally we should find out what exactly is going on here and make sure things
> are done properly in our meson integration. Unfortunately, I don't have time to
> look at this myself for at least the coming 2 months. So I'm OK with merging
> this patch as is for the time being.
By the way we do the same thing for weston, see:
https://github.com/buildroot/buildroot/blob/e0c5e294b939167ceda718a9729d6ddb64c3a4b3/package/weston/weston.mk#L17
>
> >>
> >>> +     -Dtests=false \
> >>> +     -Ddocumentation=false
> >>>
> >>> -# wayland-scanner is only needed for building, not on the target
> >>> -WAYLAND_CONF_OPTS = --with-host-scanner --disable-tests
> >>
> >> So how is the scanner thing working these days? With the meson build
> >> logic, it doesn't build the scanner when cross-compiling, and knows
> >> that it should use a pre-installed scanner ?
> > Yes, it knows there is a pre-installed scanner due to this:
> > -Dbuild.pkg_config_path=$(HOST_DIR)/lib/pkgconfig
> > See:
> > https://github.com/wayland-project/wayland/blob/1.18.0/src/meson.build#L57-L59
>
>  AFAIU, meson doesn't have a way to build a program twice (once for target and
> once for build), so the wayland mesonbuild uses a pre-installed one when
> cross-compiling.
>
>  A better solution for upstream wayland would probably be to repeat the
> definition of wayland_scanner as wayland_scanner_for_build (with install: false
> and native: true).
>
>  Regards,
>  Arnout
>
>
> >>
> >> Thanks!
> >>
> >> Thomas
> >> --
> >> Thomas Petazzoni, CTO, Bootlin
> >> Embedded Linux and Kernel engineering
> >> https://bootlin.com


More information about the buildroot mailing list