diff options
author | Joe Slater <joe.slater@windriver.com> | 2022-03-23 11:18:53 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-03-24 17:45:29 +0000 |
commit | 1f1fcb41b4ad7c588fa4851b1eb32e2a6541b6de (patch) | |
tree | 9fe89ad2097f766f7e03bf907f81bf2d1ab1e5fe /meta | |
parent | d01b1919dc2e2dfba0cc4037d7cc5bed026d7455 (diff) | |
download | poky-1f1fcb41b4ad7c588fa4851b1eb32e2a6541b6de.tar.gz |
weston: use same distro features for weston and westion-init
We want to avoid situations (like world builds) where
weston-init will build, but weston won't. This could
cause "nothing RPROVIDES..." dependency errors. We set
required distro features in a common include file.
(From OE-Core rev: 1c7802f025eb3d9ee3310e083a5d8bef7178de9c)
Signed-off-by: Joe Slater <joe.slater@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-graphics/wayland/required-distro-features.inc | 8 | ||||
-rw-r--r-- | meta/recipes-graphics/wayland/weston-init.bb | 6 | ||||
-rw-r--r-- | meta/recipes-graphics/wayland/weston_10.0.0.bb | 7 |
3 files changed, 15 insertions, 6 deletions
diff --git a/meta/recipes-graphics/wayland/required-distro-features.inc b/meta/recipes-graphics/wayland/required-distro-features.inc new file mode 100644 index 0000000000..bb4a0e8ebd --- /dev/null +++ b/meta/recipes-graphics/wayland/required-distro-features.inc | |||
@@ -0,0 +1,8 @@ | |||
1 | # distro features required by weston recipes | ||
2 | |||
3 | inherit features_check | ||
4 | |||
5 | # requires pam enabled if started via systemd | ||
6 | # | ||
7 | REQUIRED_DISTRO_FEATURES = "wayland opengl ${@oe.utils.conditional('VIRTUAL-RUNTIME_init_manager', 'systemd', 'pam', '', d)}" | ||
8 | |||
diff --git a/meta/recipes-graphics/wayland/weston-init.bb b/meta/recipes-graphics/wayland/weston-init.bb index 89fa1ac738..497d860203 100644 --- a/meta/recipes-graphics/wayland/weston-init.bb +++ b/meta/recipes-graphics/wayland/weston-init.bb | |||
@@ -63,13 +63,13 @@ do_install() { | |||
63 | 63 | ||
64 | INHIBIT_UPDATERCD_BBCLASS = "${@oe.utils.conditional('VIRTUAL-RUNTIME_init_manager', 'systemd', '1', '', d)}" | 64 | INHIBIT_UPDATERCD_BBCLASS = "${@oe.utils.conditional('VIRTUAL-RUNTIME_init_manager', 'systemd', '1', '', d)}" |
65 | 65 | ||
66 | inherit update-rc.d features_check systemd useradd | 66 | inherit update-rc.d systemd useradd |
67 | 67 | ||
68 | USERADD_PACKAGES = "${PN}" | 68 | USERADD_PACKAGES = "${PN}" |
69 | 69 | ||
70 | # rdepends on weston which depends on virtual/egl | 70 | # rdepends on weston which depends on virtual/egl |
71 | # requires pam enabled if started via systemd | 71 | # |
72 | REQUIRED_DISTRO_FEATURES = "opengl ${@oe.utils.conditional('VIRTUAL-RUNTIME_init_manager', 'systemd', 'pam', '', d)}" | 72 | require ${THISDIR}/required-distro-features.inc |
73 | 73 | ||
74 | RDEPENDS:${PN} = "weston kbd" | 74 | RDEPENDS:${PN} = "weston kbd" |
75 | 75 | ||
diff --git a/meta/recipes-graphics/wayland/weston_10.0.0.bb b/meta/recipes-graphics/wayland/weston_10.0.0.bb index bebe95f69d..8424b4d548 100644 --- a/meta/recipes-graphics/wayland/weston_10.0.0.bb +++ b/meta/recipes-graphics/wayland/weston_10.0.0.bb | |||
@@ -19,10 +19,11 @@ SRC_URI[sha256sum] = "5c23964112b90238bed39e5dd1e41cd71a79398813cdc3bbb15a9fdc94 | |||
19 | 19 | ||
20 | UPSTREAM_CHECK_URI = "https://wayland.freedesktop.org/releases.html" | 20 | UPSTREAM_CHECK_URI = "https://wayland.freedesktop.org/releases.html" |
21 | 21 | ||
22 | inherit meson pkgconfig useradd features_check | 22 | inherit meson pkgconfig useradd |
23 | |||
23 | # depends on virtual/egl | 24 | # depends on virtual/egl |
24 | # weston-init requires pam enabled if started via systemd | 25 | # |
25 | REQUIRED_DISTRO_FEATURES = "wayland opengl ${@oe.utils.conditional('VIRTUAL-RUNTIME_init_manager', 'systemd', 'pam', '', d)}" | 26 | require ${THISDIR}/required-distro-features.inc |
26 | 27 | ||
27 | DEPENDS = "libxkbcommon gdk-pixbuf pixman cairo glib-2.0" | 28 | DEPENDS = "libxkbcommon gdk-pixbuf pixman cairo glib-2.0" |
28 | DEPENDS += "wayland wayland-protocols libinput virtual/egl pango wayland-native" | 29 | DEPENDS += "wayland wayland-protocols libinput virtual/egl pango wayland-native" |