Skip to contentSkip to conversation

vim: Clarify where RDEPENDS/RRECOMMENDS apply

PATCH New Richard Purdie 1 participant 1 message Aug 2, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 vim: Clarify where RDEPENDS/RRECOMMENDS apply

The tricky of using BPN in a common inc file is rather hard to understand. Simplfy this by moving it to the base vim recipe and use the standard variable form.

---
 meta/recipes-support/vim/vim.inc    | 4 ----
 meta/recipes-support/vim/vim_8.2.bb | 4 ++++
 2 files changed, 4 insertions(+), 4 deletions(-)
meta/recipes-support/vim/vim.inc +0 -4
index 9e4117466e0..17d1c24a7cc 100644
@@ -140,10 +140,6 @@ FILES:${PN}-common = " \
     ${datadir}/icons \
 "
 
-RDEPENDS:${BPN} = "ncurses-terminfo-base"
-# Recommend that runtime data is installed along with vim
-RRECOMMENDS:${BPN} = "${PN}-syntax ${PN}-help ${PN}-tutor ${PN}-vimrc ${PN}-common"
-
 ALTERNATIVE:${PN} = "vi vim"
 ALTERNATIVE_PRIORITY = "100"
 ALTERNATIVE_TARGET = "${bindir}/${BPN}.${BPN}"
meta/recipes-support/vim/vim_8.2.bb +4 -0
index 3c1b98dca08..f358e61132b 100644
@@ -2,6 +2,10 @@ require vim.inc
 
 PROVIDES = "xxd"
 
+RDEPENDS:${PN} = "ncurses-terminfo-base"
+# Recommend that runtime data is installed along with vim
+RRECOMMENDS:${PN} = "${PN}-syntax ${PN}-help ${PN}-tutor ${PN}-vimrc ${PN}-common"
+
 PACKAGECONFIG:class-native = ""
 BBCLASSEXTEND = "native nativesdk"
 
Signature · 1 line
2.30.2