[OE-core] [PATCH] weston: Fix builds that don't include XWayland support

Tom Hochstein tom.hochstein at nxp.com
Thu Jun 9 19:39:21 UTC 2016


If DISTRO_FEATURES contained wayland but not x11, the build
would fail due to nothing providing xserver-xorg-xwayland.

Signed-off-by: Tom Hochstein <tom.hochstein at nxp.com>
---
 meta/recipes-graphics/wayland/weston_1.10.0.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-graphics/wayland/weston_1.10.0.bb b/meta/recipes-graphics/wayland/weston_1.10.0.bb
index 37a4839..5bbbeb8 100644
--- a/meta/recipes-graphics/wayland/weston_1.10.0.bb
+++ b/meta/recipes-graphics/wayland/weston_1.10.0.bb
@@ -100,7 +100,7 @@ do_install_append() {
 	fi
 }
 
-PACKAGE_BEFORE_PN += "${PN}-xwayland"
+PACKAGE_BEFORE_PN += "${@bb.utils.contains('DISTRO_FEATURES', 'x11 wayland', '${PN}-xwayland', '', d)}"
 PACKAGES += "${PN}-examples"
 
 FILES_${PN} = "${bindir}/weston ${bindir}/weston-terminal ${bindir}/weston-info ${bindir}/weston-launch ${bindir}/wcap-decode ${libexecdir} ${libdir}/${BPN}/*.so ${datadir}"
-- 
1.9.1




More information about the Openembedded-core mailing list