Skip to contentSkip to conversation

vim: fix xxd-native RPROVIDES

PATCH In review Clayton Casciato 2 participants 2 messages Sep 29, 2025 – Oct 1, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 vim: fix xxd-native RPROVIDES

BBCLASSEXTEND doesn't handle overrides with suffixed ${PN} for native class, e.g.:

RPROVIDES:${PN}-xxd = "xxd"

becomes:

RPROVIDES:vim-native-xxd = "xxd-native"

instead of:

RPROVIDES:vim-xxd-native = "xxd-native"

This results in "Nothing RPROVIDES xxd-native" error when something RDEPENDS on xxd-native because there's no such package as vim-native-xxd.

Use ${BPN} and explicitly handle RPROVIDES.

Since native class does not produce packages, other variables using :${PN}-xxd override don't matter. And nativesdk class is not affected, as it uses a prefix, not suffix.

---
Sponsor: 21SoftWare LLC

Patch from:
https://lists.openembedded.org/g/openembedded-core/topic/109930389

Walnascar:
e2fd81e221c2 ("native: Improve ${PN}-XXX package name handling")

 meta/recipes-support/vim/vim_9.1.bb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
meta/recipes-support/vim/vim_9.1.bb +3 -1
index fee9f055e9..8968b8cb07 100644
@@ -11,7 +11,9 @@ BBCLASSEXTEND = "native nativesdk"
 
 PACKAGES =+ "${PN}-xxd"
 FILES:${PN}-xxd = "${bindir}/xxd"
-RPROVIDES:${PN}-xxd = "xxd"
+RPROVIDES:${BPN}-xxd = "xxd"
+RPROVIDES:${BPN}-xxd-native = "xxd-native"
+RPROVIDES:nativesdk-${BPN}-xxd = "nativesdk-xxd"
 
 ALTERNATIVE:${PN}-xxd = "xxd"
 ALTERNATIVE_TARGET[xxd] = "${bindir}/xxd"
#1 lore raw
Quoted 24 lines · Clayton Casciato

BBCLASSEXTEND doesn't handle overrides with suffixed ${PN} for native class, e.g.:

RPROVIDES:${PN}-xxd = "xxd"

becomes:

RPROVIDES:vim-native-xxd = "xxd-native"

instead of:

RPROVIDES:vim-xxd-native = "xxd-native"

This results in "Nothing RPROVIDES xxd-native" error when something RDEPENDS on xxd-native because there's no such package as vim-native-xxd.

Use ${BPN} and explicitly handle RPROVIDES.

Since native class does not produce packages, other variables using :${PN}-xxd override don't matter. And nativesdk class is not affected, as it uses a prefix, not suffix.

Quoted 7 lines

---
Sponsor: 21SoftWare LLC

Patch from:
https://lists.openembedded.org/g/openembedded-core/topic/109930389

Richard rejected this patch for master in the above thread, so I can't take it for a stable release.

Steve

Quoted 22 lines

Walnascar:
e2fd81e221c2 ("native: Improve ${PN}-XXX package name handling")

 meta/recipes-support/vim/vim_9.1.bb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
meta/recipes-support/vim/vim_9.1.bb +3 -1
index fee9f055e9..8968b8cb07 100644
@@ -11,7 +11,9 @@ BBCLASSEXTEND = "native nativesdk"
 
 PACKAGES =+ "${PN}-xxd"
 FILES:${PN}-xxd = "${bindir}/xxd"
-RPROVIDES:${PN}-xxd = "xxd"
+RPROVIDES:${BPN}-xxd = "xxd"
+RPROVIDES:${BPN}-xxd-native = "xxd-native"
+RPROVIDES:nativesdk-${BPN}-xxd = "nativesdk-xxd"
 
 ALTERNATIVE:${PN}-xxd = "xxd"
 ALTERNATIVE_TARGET[xxd] = "${bindir}/xxd"