aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOvidiu Panait <ovidiu.panait@windriver.com>2019-02-01 10:07:20 +0200
committerKhem Raj <raj.khem@gmail.com>2019-02-01 06:57:14 -0800
commit7b48bd2be97408107c0dd3c74b1e28f042268457 (patch)
treedd7322b2b95bd696287f8e0753153b6d06dd8aba
parente49842903b64ada99bd3a428c20e8f31a206f37c (diff)
downloadmeta-openembedded-contrib-7b48bd2be97408107c0dd3c74b1e28f042268457.tar.gz
meta-openembedded-contrib-7b48bd2be97408107c0dd3c74b1e28f042268457.tar.bz2
meta-openembedded-contrib-7b48bd2be97408107c0dd3c74b1e28f042268457.zip
vim: Enable GUI support for x11 DISTRO_FEATURES
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@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-oe/recipes-support/vim/vim_8.1.0347.bb5
1 files changed, 4 insertions, 1 deletions
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 a561ad2721..0705831584 100644
--- a/meta-oe/recipes-support/vim/vim_8.1.0347.bb
+++ b/meta-oe/recipes-support/vim/vim_8.1.0347.bb
@@ -36,7 +36,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,"