From: Alexander Kanavin <alex.kanavin@gmail.com>
To: openembedded-core@lists.openembedded.org
Subject: [PATCH 09/10] wayland: convert to meson build
Date: Sun, 16 Feb 2020 16:50:13 +0100 [thread overview]
Message-ID: <20200216155015.21738-9-alex.kanavin@gmail.com> (raw)
In-Reply-To: <20200216155015.21738-1-alex.kanavin@gmail.com>
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
---
...-the-native-wayland-scanner-directly.patch | 27 +++++++++++++++++++
.../wayland/wayland_1.18.0.bb | 9 ++++---
2 files changed, 32 insertions(+), 4 deletions(-)
create mode 100644 meta/recipes-graphics/wayland/wayland/0002-meson.build-find-the-native-wayland-scanner-directly.patch
diff --git a/meta/recipes-graphics/wayland/wayland/0002-meson.build-find-the-native-wayland-scanner-directly.patch b/meta/recipes-graphics/wayland/wayland/0002-meson.build-find-the-native-wayland-scanner-directly.patch
new file mode 100644
index 0000000000..f98037a850
--- /dev/null
+++ b/meta/recipes-graphics/wayland/wayland/0002-meson.build-find-the-native-wayland-scanner-directly.patch
@@ -0,0 +1,27 @@
+From 2582d2653ba80917d7bc47088e1a5f49530fddaa Mon Sep 17 00:00:00 2001
+From: Alexander Kanavin <alex.kanavin@gmail.com>
+Date: Sun, 16 Feb 2020 16:29:53 +0100
+Subject: [PATCH] meson.build: find the native wayland-scanner directly in PATH
+
+Otherwise, meson attempts to use the target pkg-config and fails.
+
+Upstream-Status: Pending
+Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
+---
+ src/meson.build | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+diff --git a/src/meson.build b/src/meson.build
+index 3e8c9bf..294aee0 100644
+--- a/src/meson.build
++++ b/src/meson.build
+@@ -55,8 +55,7 @@ pkgconfig.generate(
+ )
+
+ if meson.is_cross_build()
+- scanner_dep = dependency('wayland-scanner', native: true, version: '>=1.14.0')
+- wayland_scanner_for_build = find_program(scanner_dep.get_pkgconfig_variable('wayland_scanner'))
++ wayland_scanner_for_build = find_program('wayland-scanner')
+ else
+ wayland_scanner_for_build = wayland_scanner
+ endif
diff --git a/meta/recipes-graphics/wayland/wayland_1.18.0.bb b/meta/recipes-graphics/wayland/wayland_1.18.0.bb
index 7a3f075552..21a848ff5a 100644
--- a/meta/recipes-graphics/wayland/wayland_1.18.0.bb
+++ b/meta/recipes-graphics/wayland/wayland_1.18.0.bb
@@ -14,19 +14,20 @@ DEPENDS = "expat libffi wayland-native"
SRC_URI = "https://wayland.freedesktop.org/releases/${BPN}-${PV}.tar.xz \
file://fixpathinpcfiles.patch \
+ file://0002-meson.build-find-the-native-wayland-scanner-directly.patch \
"
SRC_URI[md5sum] = "23317697b6e3ff2e1ac8c5ba3ed57b65"
SRC_URI[sha256sum] = "4675a79f091020817a98fd0484e7208c8762242266967f55a67776936c2e294d"
UPSTREAM_CHECK_URI = "https://wayland.freedesktop.org/releases.html"
-inherit autotools pkgconfig
+inherit meson pkgconfig
PACKAGECONFIG ??= "dtd-validation"
-PACKAGECONFIG[dtd-validation] = "--enable-dtd-validation,--disable-dtd-validation,libxml2,,"
+PACKAGECONFIG[dtd-validation] = "-Ddtd_validation=true,-Ddtd_validation=false,libxml2,,"
-EXTRA_OECONF = "--disable-documentation --with-host-scanner"
-EXTRA_OECONF_class-native = "--disable-documentation --disable-libraries"
+EXTRA_OEMESON = "-Ddocumentation=false"
+EXTRA_OECONF_class-native = "-Ddocumentation=false -Dlibraries=false"
# Wayland installs a M4 macro for other projects to use, which uses the target
# pkg-config to find files. Replace pkg-config with pkg-config-native.
--
2.25.0
next prev parent reply other threads:[~2020-02-16 15:51 UTC|newest]
Thread overview: 46+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-16 15:50 [PATCH 01/10] core-image-sato-sdk-ptest: do not pull in ptest-pkgs Alexander Kanavin
2020-02-16 15:50 ` [PATCH 02/10] procps: upstream has switched to gitlab Alexander Kanavin
2020-02-16 16:53 ` Khem Raj
2020-02-16 16:56 ` Alexander Kanavin
2020-02-16 20:06 ` Khem Raj
2020-02-16 20:45 ` Alexander Kanavin
2020-02-17 2:35 ` Khem Raj
2020-02-17 8:12 ` Alexander Kanavin
2020-02-17 18:39 ` Khem Raj
2020-02-16 15:50 ` [PATCH 03/10] qemux86: do not add vga=0 to kernel parameters Alexander Kanavin
2020-02-16 15:50 ` [PATCH 04/10] qemux86: drop resolution setting via uvesafb Alexander Kanavin
2020-02-16 16:01 ` Martin Jansa
2020-02-16 16:10 ` Alexander Kanavin
2020-02-16 16:15 ` Alexander Kanavin
2020-02-16 15:50 ` [PATCH 05/10] weston-init: use the drm backend rather than fbdev one Alexander Kanavin
2020-02-16 17:00 ` Khem Raj
2020-02-16 17:07 ` Alexander Kanavin
2020-02-16 20:09 ` Khem Raj
2020-02-16 21:03 ` Alexander Kanavin
2020-02-17 2:30 ` Khem Raj
2020-02-17 8:22 ` Alexander Kanavin
2020-02-17 13:16 ` Alexander Kanavin
2020-02-17 18:44 ` Khem Raj
2020-02-17 19:29 ` Alexander Kanavin
2020-02-18 1:56 ` Khem Raj
2020-02-19 9:45 ` Alexander Kanavin
2020-02-19 17:20 ` Khem Raj
2020-02-19 18:06 ` Alexander Kanavin
2020-02-19 18:37 ` Khem Raj
2020-02-16 15:50 ` [PATCH 06/10] webkitgtk: x11 and wayland are not mutually exclusive Alexander Kanavin
2020-02-16 15:50 ` [PATCH 07/10] weston: add a basic runtime test Alexander Kanavin
2020-02-16 15:50 ` [PATCH 08/10] webkitgtk: unbreak wayland build Alexander Kanavin
2020-02-16 16:09 ` Martin Jansa
2020-02-16 16:14 ` Alexander Kanavin
2020-02-16 18:06 ` Richard Purdie
2020-02-16 20:14 ` Khem Raj
2020-02-16 20:51 ` Alexander Kanavin
2020-02-23 14:33 ` Joshua Watt
2020-02-27 15:49 ` [wpe-webkit] " Carlos Alberto Lopez Perez
2020-02-27 16:04 ` Joshua Watt
2020-02-16 15:50 ` Alexander Kanavin [this message]
2020-02-17 14:35 ` [PATCH 09/10] wayland: convert to meson build Richard Purdie
2020-02-17 14:50 ` Alexander Kanavin
2020-02-17 14:52 ` Richard Purdie
2020-02-17 14:53 ` Alexander Kanavin
2020-02-16 15:50 ` [PATCH 10/10] ptest-packagelists: mention ifupdown ptest in a comment Alexander Kanavin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200216155015.21738-9-alex.kanavin@gmail.com \
--to=alex.kanavin@gmail.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox