You can use VIRTUAL-RUNTIME_sed variable instead of 'sed' _everywhere_ and
then change the preferred runtime provider in your DISTRO config.

Similar case for "stat" from busybox in webOS OSE:
https://github.com/webosose/meta-webosose/search?q=VIRTUAL-RUNTIME_stat

and much worse case (because too many places add runtime dependency on
bash) to replace bash:
https://github.com/webosose/meta-webosose/search?q=VIRTUAL-RUNTIME_bash
see
https://bugzilla.yoctoproject.org/show_bug.cgi?id=9217#c5

Regards,

On Wed, Aug 3, 2022 at 7:03 AM Craig McQueen <[email protected]>
wrote:

> I have a recipe which contains a script that uses /bin/sed.
>
> When I build it, I get an error:
>
> ERROR: myrecipe-1.2.3-r0 do_package_qa: QA Issue: /lib/myrecipe/mycommand
> contained in package myrecipe requires /bin/sed, but no providers found in
> RDEPENDS:myrecipe? [file-rdeps]
>
> My final image contains the BusyBox implementation of sed, so it will be
> fine at runtime.
>
> If I add to my recipe RDEPENDS:${PN} += "sed", then when the image is
> built then it uses /bin/sed from the "sed" package, rather than being happy
> to use the BusyBox sed.
>
> So, what is the correct way to specify a RDEPENDS to say that it depends
> on _any_ implementation of /bin/sed from any ALTERNATIVE provider?
>
> --
> Craig McQueen
>
>
>
>
> <https://www.linkedin.com/company/inner-range-global>
> <https://twitter.com/Inner_Range> <https://www.youtube.com/innerrange>
>
>
>
>
> *Craig McQueen*Embedded Systems Engineer
> t
> e
> w :
> :
> : +61 3 9780 4378 <+61%203%209780%204378>
> [email protected]
> innerrange.com <http://www.innerrange.com>
>  Inner Range • 1 Millennium Court • Knoxfield • Victoria • 3180
> • Australia
>
>
>
>
>
> 
>
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#57758): https://lists.yoctoproject.org/g/yocto/message/57758
Mute This Topic: https://lists.yoctoproject.org/mt/92786950/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to