Skip to contentSkip to conversation

vim: simplify PACKAGECONFIG's default value

PATCH Superseded João Marcos Costa 1 participant 1 message May 14

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 vim: simplify PACKAGECONFIG's default value

GTK+3 UI was disabled [1] by default, and the resulting call to bb.utils.contains() could be replaced by a bb.utils.filter() as in a similar change [2].

Better than that, just move 'x11' to the bb.utils.filter() above.

[1] a07763f03d4f ("vim: disable GTK+3 UI by default")
[2] f38320c9646a ("meta: simplify conditional operations with bb.utils.filter")

---
 meta/recipes-support/vim/vim.inc | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
meta/recipes-support/vim/vim.inc +1 -2
index d6fdf45706..6e0058b13e 100644
@@ -52,8 +52,7 @@ do_configure () {
 }
 
 PACKAGECONFIG ??= "\
-    ${@bb.utils.filter('DISTRO_FEATURES', 'acl selinux', d)} \
-    ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} \
+    ${@bb.utils.filter('DISTRO_FEATURES', 'acl selinux x11', d)} \
     nls \
 "
 
Signature · 1 line
2.47.0