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