[OE-core] [PATCH] rootfs_ipk: respect ONLINE_PACKAGE_MANAGEMENT

Richard Purdie richard.purdie at linuxfoundation.org
Tue May 17 16:22:11 UTC 2011


On Tue, 2011-05-17 at 15:50 +0100, Phil Blundell wrote:
> On Tue, 2011-05-17 at 15:24 +0100, Richard Purdie wrote:
> > What's wrong with:
> > 
> > ROOTFS_POSTPROCESS_COMMAND += "remove_packaging_data_files ; "
> > 
> > as used in the minimal image? The nice thing about this is it works over
> > several package backends too...
> 
> Well, conceptually it seems a bit nicer to have the rootfs constructor
> obey the same variable that is used to control package management
> functionality elsewhere (not that oe-core currently has any "elsewhere",
> but oe master does and I would like to backport that functionality to
> oe-core as well). 
> 
> There's also the minor issue that rootfs_ipk's implementation of
> remove_packaging_data_files() does leave an empty directory behind,
> which I don't especially want in the O_P_M=none case, so I'd end up
> having to do some further cleanup of my own.
> 
> I guess I could teach remove_packaging_data_files() to not create the
> empty directory if O_P_M=="none".  Would you be happier with that?

Mostly. The question remains what happens if there are postinstalls that
are expecting to run on the device. I'm guessing that is why the mkdir
is there since at present we don't want to break the postinstalls.

The answer could be we ensure that directory exists if postinstalls
exist...

Cheers,

Richard







More information about the Openembedded-core mailing list