[yocto] How to remove packages from Image coming because of RDEPENDS
bruce.ashfield at gmail.com
Tue Apr 23 04:57:11 PDT 2019
On Tue, Apr 23, 2019 at 6:09 AM Priyanshu Sharma <
ms.priyanshu.sharma at gmail.com> wrote:
> How can we remove inclusion of any package which comes because some other
> package RDPENDS on it?
> For example, rpcbind recipe RDEPENDS on shadow and libpam packages,
> because of which if IMAGE_INSTALL+="rpcbind" is mentioned in recipe ( even
> though shadow and libpam are not added like this explicilty) , shadow and
> libpam packages get packaged in Image rootfs.
> This even includes any bin/sbin provided by shadow/libpam, even when they
> are not needed in rootfs.
> Is there an optimum way to control inclusion of RDEPENDS packages?
You need to somehow change the RDEPENDS via one of the mechanisms like
by splitting the packaging into smaller, more specific sub-packages, etc.
If a package has a RDEPENDS on something else, you can't simply ignore it
or filter it out .. whoever
wrote the recipe is indicating that it is required at runtime. So if you
are saying that it isn't required at
runtime, you should be sending patches to the recipes (and using the
mechanisms like I mention
above) to explain why it really isn't a runtime dependency.
> One way is to use ROOTFS_POST_PROCESS and remove specific files after
> do_rootfs task is done.
> But is there a way to remove entire package, instead of removing each file
> Warm Regards,
> Priyanshu Sharma
> yocto mailing list
> yocto at yoctoproject.org
- Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end
- "Use the force Harry" - Gandalf, Star Trek II
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the yocto