[oe] [meta-oe][PATCH 2/2] vim: Enable GUI support for x11 DISTRO_FEATURES

Ovidiu Panait ovidiu.panait at windriver.com
Fri Feb 1 08:07:20 UTC 2019


Adding vim to a sato image will produce a non-working Gvim desktop entry
because GUI support is not compiled in:
# vim -g 
E25: GUI cannot be used: Not enabled at compile time 

Signed-off-by: Ovidiu Panait <ovidiu.panait at windriver.com>
---
 meta-oe/recipes-support/vim/vim_8.1.0347.bb | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/meta-oe/recipes-support/vim/vim_8.1.0347.bb b/meta-oe/recipes-support/vim/vim_8.1.0347.bb
index a09582f99..0b99438b9 100644
--- a/meta-oe/recipes-support/vim/vim_8.1.0347.bb
+++ b/meta-oe/recipes-support/vim/vim_8.1.0347.bb
@@ -35,7 +35,10 @@ do_configure () {
 
 #Available PACKAGECONFIG options are gtkgui, acl, x11, tiny
 PACKAGECONFIG ??= ""
-PACKAGECONFIG += "${@bb.utils.filter('DISTRO_FEATURES', 'acl selinux', d)}"
+PACKAGECONFIG += " \
+    ${@bb.utils.filter('DISTRO_FEATURES', 'acl selinux', d)} \
+    ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11 gtkgui', '', d)} \
+"
 
 PACKAGECONFIG[gtkgui] = "--enable-gui=gtk2,--enable-gui=no,gtk+,"
 PACKAGECONFIG[acl] = "--enable-acl,--disable-acl,acl,"
-- 
2.20.1



More information about the Openembedded-devel mailing list