<div><br><div class="gmail_quote"><div dir="auto">On Wed, Sep 27, 2017 at 2:52 PM Tom Rini <<a href="mailto:trini@konsulko.com">trini@konsulko.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Wed, Sep 27, 2017 at 02:01:43PM -0700, Khem Raj wrote:<br>
> On Wed, Sep 27, 2017 at 10:00 AM, Tom Rini <<a href="mailto:trini@konsulko.com" target="_blank">trini@konsulko.com</a>> wrote:<br>
> > With RSS we need to ensure that when making a bmap image that the<br>
> > python3 that we created is found via /usr/bin/env rather than the host<br>
> > python3. Otherwise we're relying on the build host to have bmaptool<br>
> > support installed.</blockquote><div dir="auto"><br></div><div dir="auto">Who is staging python3 native here may be that's where it could be added </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
> ><br>
> > Signed-off-by: Tom Rini <<a href="mailto:trini@konsulko.com" target="_blank">trini@konsulko.com</a>><br>
> > ---<br>
> > I played around with a few ways to try and fix this problem, and this<br>
> > was the best I could come up with. Once this is in we need this in pyro<br>
> > as well as it's broken there too.<br>
> > ---<br>
> > meta/classes/image_types.bbclass | 3 +++<br>
> > 1 file changed, 3 insertions(+)<br>
> ><br>
> > diff --git a/meta/classes/image_types.bbclass b/meta/classes/image_types.bbclass<br>
> > index 61dca626311e..3ff960e3a889 100644<br>
> > --- a/meta/classes/image_types.bbclass<br>
> > +++ b/meta/classes/image_types.bbclass<br>
> > @@ -311,3 +311,6 @@ DEPLOYABLE_IMAGE_TYPES ?= "hddimg iso"<br>
> > # The IMAGE_TYPES_MASKED variable will be used to mask out from the IMAGE_FSTYPES,<br>
> > # images that will not be built at do_rootfs time: vmdk, vdi, qcow2, hdddirect, hddimg, iso, etc.<br>
> > IMAGE_TYPES_MASKED ?= ""<br>
> > +<br>
> > +# bmap requires python3 to be in the PATH<br>
> > +EXTRANATIVEPATH += "${@'python3-native' if d.getVar('IMAGE_FSTYPES').find('bmap') else ''}"<br>
> > --<br>
><br>
> I think somewhere inherit python3native should fix it.<br>
<br>
Yes, image_types.bbclass could also inherit python3native but that<br>
seemed heavy-handed. There's not some other place that should be doing<br>
it as the problem is saying we want to call bmaptool, and that's handled<br>
here.<br>
<br>
--<br>
Tom<br>
</blockquote></div></div>