Skip to contentSkip to conversation

vim: Fix "--enable-gtk2-test" unrecognized option error

PATCH New Ovidiu Panait 1 participant 2 messages Feb 1, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 vim: Fix "--enable-gtk2-test" unrecognized option error

Fix the following build error when vim PACKAGECONFIG[gtkgui] is enabled:
...
ERROR: vim-8.1.0347-r0 do_configure: QA Issue: vim: configure was passed unrecognised options: --enable-gtk2-test [unknown-configure-option]
ERROR: vim-8.1.0347-r0 do_configure: Fatal QA errors found, failing task.
ERROR: vim-8.1.0347-r0 do_configure: Function failed: do_qa_configure
...

---
 meta-oe/recipes-support/vim/vim_8.1.0347.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-support/vim/vim_8.1.0347.bb +1 -1
index 46d229e03..a09582f99 100644
@@ -37,7 +37,7 @@ do_configure () {
 PACKAGECONFIG ??= ""
 PACKAGECONFIG += "${@bb.utils.filter('DISTRO_FEATURES', 'acl selinux', d)}"
 
-PACKAGECONFIG[gtkgui] = "--enable-gtk2-test --enable-gui=gtk2,--enable-gui=no,gtk+,"
+PACKAGECONFIG[gtkgui] = "--enable-gui=gtk2,--enable-gui=no,gtk+,"
 PACKAGECONFIG[acl] = "--enable-acl,--disable-acl,acl,"
 PACKAGECONFIG[x11] = "--with-x,--without-x,xt,"
 PACKAGECONFIG[tiny] = "--with-features=tiny,--with-features=big,,"
Signature · 1 line
2.20.1
#1 lore raw

PATCH 2/2 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 
---
 meta-oe/recipes-support/vim/vim_8.1.0347.bb | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
meta-oe/recipes-support/vim/vim_8.1.0347.bb +4 -1
index a09582f99..0b99438b9 100644
@@ -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,"
Signature · 1 line
2.20.1