On Wed, 2024-12-04 at 18:09 -0500, Denys Dmytriyenko via lists.openembedded.org 
wrote:
> From: Denys Dmytriyenko <[email protected]>
> 
> 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.
> 
> Signed-off-by: Denys Dmytriyenko <[email protected]>
> ---
>  meta/recipes-support/vim/vim_9.1.bb | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/meta/recipes-support/vim/vim_9.1.bb 
> b/meta/recipes-support/vim/vim_9.1.bb
> index fee9f055e9..8968b8cb07 100644
> --- a/meta/recipes-support/vim/vim_9.1.bb
> +++ b/meta/recipes-support/vim/vim_9.1.bb
> @@ -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"

This implies we'd have to go and change every reference of
RPROVIDES:${PN}-XXX to the new pattern which I'm really not keen to
mandate. I think we'll have to dig into the native class extension code
and try and find a better solution :/

Cheers,

Richard
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#208471): 
https://lists.openembedded.org/g/openembedded-core/message/208471
Mute This Topic: https://lists.openembedded.org/mt/109930389/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to