From: Rasmus Villemoes <rasmus.villem...@prevas.dk> It can be useful to have find and/or xargs by themselves without pulling in locate and its associated binaries updatedb and frcode. In my case, I just need xargs in an initramfs, which is a 42K binary; the other binaries add over 300K of dead weight.
So split the recipe into -xargs, -find and -locate packages making it possible to RDEPEND on just, say, findutils-xargs. For backwards compatibility, make ${PN} pull in all the new packages. Signed-off-by: Rasmus Villemoes <rasmus.villem...@prevas.dk> --- meta/recipes-extended/findutils/findutils.inc | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/meta/recipes-extended/findutils/findutils.inc b/meta/recipes-extended/findutils/findutils.inc index ddcc05750b..9c8296a9d6 100644 --- a/meta/recipes-extended/findutils/findutils.inc +++ b/meta/recipes-extended/findutils/findutils.inc @@ -12,7 +12,16 @@ SRC_URI = "${GNU_MIRROR}/${BPN}/${BP}.tar.xz \ inherit autotools gettext texinfo update-alternatives ptest -ALTERNATIVE:${PN} = "find xargs" +PACKAGES =+ "${PN}-find ${PN}-xargs ${PN}-locate" + +FILES:${PN}-find = "${bindir}/find" +FILES:${PN}-xargs = "${bindir}/xargs" +FILES:${PN}-locate = "${bindir}/locate ${bindir}/updatedb ${libexecdir}/frcode ${localstatedir}" + +ALTERNATIVE:${PN}-find = "find" +ALTERNATIVE:${PN}-xargs = "xargs" ALTERNATIVE_PRIORITY = "100" +RDEPENDS:${PN} += "${PN}-find ${PN}-xargs ${PN}-locate" + BBCLASSEXTEND = "native nativesdk" -- 2.45.1.1.gfd858efe53
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#200803): https://lists.openembedded.org/g/openembedded-core/message/200803 Mute This Topic: https://lists.openembedded.org/mt/106717870/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-