[OE-core] [PATCH 04/10] lib/oe/package_manager: turn postinst_intercept warnings into failures for nativesdk

Alexander Kanavin alex.kanavin at gmail.com
Fri Jan 25 17:21:33 UTC 2019


On Fri, 25 Jan 2019 at 17:33, Joshua Watt <jpewhacker at gmail.com> wrote:

> I probably should have been a little more specific: I was thinking that
> POSTINST_INTERCEPT_${PN} = "0" would prevent the creation of the
> scripts at packaging time, not try and suppress them at rootfs creation
> time. The idea would be to add that to relevant recipes with a
> appropriate override in a .bbappend in meta-mingw. I'm not familiar
> enough with multilib; is there a an appropriate override that could be
> use there?
>
> I think this would also have the advantage that mingw32 specific logic
> in package_manager.py could be removed; we'll just suppress the
> postinst intercept scripts in meta-mingw and any that aren't will
> generate the typical failure warning.

The problem with multilib case is that the same target package is used
for populating the target sysroot in the nativesdk, and for populating
the target image rootfs. In the former case, postinst_intercept should
be suppressed, in the latter, it should not. But we won't know that
until populating the sdk, or creating the image. I still think that
changing the warnings to notes should not be harmful; the scripts all
create caches of some kind, which are generally unneeded at build
time. Or we would run into issues with plain yocto builds already, as
we don't create those caches either.

Alex

Alex


More information about the Openembedded-core mailing list