Re: RDEPENDS of something provided by ALTERNATIVE

Martin Jansa

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:

and much worse case (because too many places add runtime dependency on bash) to replace bash:


On Wed, Aug 3, 2022 at 7:03 AM Craig McQueen <craig.mcqueen@...> 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



Craig McQueen
Embedded Systems Engineer

+61 3 9780 4378
 Inner Range • 1 Millennium Court • Knoxfield • Victoria • 3180 • Australia 



Join { to automatically receive all group messages.