<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 18 Dec 2019 at 14:31, Ross Burton &lt;<a href="mailto:ross.burton@intel.com">ross.burton@intel.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 03/12/2019 22:06, Aníbal Limón wrote:<br>
&gt; Fixes,<br>
&gt; <br>
&gt; ...<br>
&gt; | Program python3 found: YES (/home/anibal.limon/linaro/oe-rpb-master/build-410c/tmp-rpb-glibc/work/aarch64-linaro-linux/waffle/1.6.0-r0/recipe-sysroot-native/usr/bin/python3-native/python3)<br>
&gt; |<br>
&gt; | meson.build:36:0: ERROR: &lt;ExternalProgram &#39;python3&#39; -&gt; [&#39;/home/anibal.limon/linaro/oe-rpb-master/build-410c/tmp-rpb-glibc/work/aarch64-linaro-linux/waffle/1.6.0-r0/recipe-sysroot-native/usr/bin/python3-native/python3&#39;]&gt; is not a valid python or it is missing setuptools<br>
&gt; |<br>
&gt; | A full log can be found at /home/anibal.limon/linaro/oe-rpb-master/build-410c/tmp-rpb-glibc/work/aarch64-linaro-linux/waffle/1.6.0-r0/build/meson-logs/meson-log.txt<br>
&gt; | WARNING: exit code 1 from a shell command.<br>
<br>
Going back to this...<br>
<br>
Without this patch I get a different result:<br>
<br>
Program python3 found: YES <br>
(/data/poky-tmp/master/work/corei7-64-poky-linux/waffle/1.6.0-r0/recipe-sysroot-native/usr/bin/python3-native/python3)<br>
Run-time dependency threads found: YES<br>
[ continues fine ]<br>
<br>
So what is the meson-log.txt saying?<br></blockquote><div><br></div><div>Hi,</div><div><br></div><div>I&#39;m debugging this issue again and found the root cause that is missing _sysconfigdata module, in python3-native.bbclass is set (_PYTHON_SYSCONFIGDATA_NAME) and fails if no python3 isn&#39;t available so it relais on python3 target being added.</div><div><br></div><div>Reviewing python3 recipe _sysconfig_data thera are two possible fixes,</div><div><br></div><div>- Copy _sysconfig_data from /usr/lib/python-sysconfig to /usr/lib/pythonVER (I will go for this one)</div><div><br></div><div>...</div><div>+<br>+do_install_append_class-native() {<br>+       cp ${D}${libdir}/python-sysconfigdata/_sysconfigdata.py ${D}/${libdir}/python${PYTHON_MAJMIN}<br>+}<br>+<br></div><div>...</div><div><br></div><div>- Find right _sysconfig_data in python3native.bbclass because the library name is based on os-machine.<br></div><div> </div><div>Regards,</div><div>Anibal</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Ross<br>
</blockquote></div></div>