meta/classes/meson.bbclass: Add inherit setuptools3

Message ID 20191203220624.26500-1-anibal.limon@linaro.org
State New
Headers show
Series
  • meta/classes/meson.bbclass: Add inherit setuptools3
Related show

Commit Message

Aníbal Limón Dec. 3, 2019, 10:06 p.m.
Fixes,

...
| 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)
|
| meson.build:36:0: ERROR: <ExternalProgram 'python3' -> ['/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']> is not a valid python or it is missing setuptools
|
| 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
| WARNING: exit code 1 from a shell command.
...

Signed-off-by: Aníbal Limón <anibal.limon@linaro.org>
---
 meta/classes/meson.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Khem Raj Dec. 3, 2019, 11:37 p.m. | #1
On Tue, Dec 3, 2019 at 2:06 PM Aníbal Limón <anibal.limon@linaro.org> wrote:

> Fixes,

>

> ...

> | 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)

> |

> | meson.build:36:0: ERROR: <ExternalProgram 'python3' ->

> ['/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']>

> is not a valid python or it is missing setuptools

> |

> | 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

> | WARNING: exit code 1 from a shell command.

> ...

>


I wonder if it’s better to add this inherit to waffle recipe alone I doubt
that all meson using recipes are building python modules


> Signed-off-by: Aníbal Limón <anibal.limon@linaro.org>

> ---

>  meta/classes/meson.bbclass | 2 +-

>  1 file changed, 1 insertion(+), 1 deletion(-)

>

> diff --git a/meta/classes/meson.bbclass b/meta/classes/meson.bbclass

> index efa6234078..90868963b7 100644

> --- a/meta/classes/meson.bbclass

> +++ b/meta/classes/meson.bbclass

> @@ -1,4 +1,4 @@

> -inherit siteinfo python3native

> +inherit siteinfo python3native setuptools3

>

>  DEPENDS_append = " meson-native ninja-native"

>

> --

> 2.24.0

>

>
<div><br></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Dec 3, 2019 at 2:06 PM Aníbal Limón &lt;<a href="mailto:anibal.limon@linaro.org">anibal.limon@linaro.org</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Fixes,<br>
<br>
...<br>
| 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>
|<br>
| 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>
|<br>
| 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>
| WARNING: exit code 1 from a shell command.<br>
...<br>
</blockquote><div dir="auto"><br></div><div dir="auto">I wonder if it’s better to add this inherit to waffle recipe alone I doubt that all meson using recipes are building python modules </div><div dir="auto"><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Signed-off-by: Aníbal Limón &lt;<a href="mailto:anibal.limon@linaro.org" target="_blank">anibal.limon@linaro.org</a>&gt;<br>

---<br>
 meta/classes/meson.bbclass | 2 +-<br>
 1 file changed, 1 insertion(+), 1 deletion(-)<br>
<br>
diff --git a/meta/classes/meson.bbclass b/meta/classes/meson.bbclass<br>
index efa6234078..90868963b7 100644<br>
--- a/meta/classes/meson.bbclass<br>
+++ b/meta/classes/meson.bbclass<br>
@@ -1,4 +1,4 @@<br>
-inherit siteinfo python3native<br>
+inherit siteinfo python3native setuptools3<br>
<br>
 DEPENDS_append = &quot; meson-native ninja-native&quot;<br>
<br>
-- <br>
2.24.0<br>
<br>
</blockquote></div></div>
-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Aníbal Limón Dec. 4, 2019, 2:35 a.m. | #2
On Tue, 3 Dec 2019 at 17:37, Khem Raj <raj.khem@gmail.com> wrote:

>

>

> On Tue, Dec 3, 2019 at 2:06 PM Aníbal Limón <anibal.limon@linaro.org>

> wrote:

>

>> Fixes,

>>

>> ...

>> | 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)

>> |

>> | meson.build:36:0: ERROR: <ExternalProgram 'python3' ->

>> ['/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']>

>> is not a valid python or it is missing setuptools

>> |

>> | 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

>> | WARNING: exit code 1 from a shell command.

>> ...

>>

>

> I wonder if it’s better to add this inherit to waffle recipe alone I doubt

> that all meson using recipes are building python modules

>


This issue is triggered from waffle [1] but the actual meson code looks for
setuptools [2].

Anibal

[1] https://gitlab.freedesktop.org/mesa/waffle/blob/master/meson.build#L36
[2]
https://github.com/mesonbuild/meson/blob/master/mesonbuild/modules/python.py#L578


>

>

>> Signed-off-by: Aníbal Limón <anibal.limon@linaro.org>

>> ---

>>  meta/classes/meson.bbclass | 2 +-

>>  1 file changed, 1 insertion(+), 1 deletion(-)

>>

>> diff --git a/meta/classes/meson.bbclass b/meta/classes/meson.bbclass

>> index efa6234078..90868963b7 100644

>> --- a/meta/classes/meson.bbclass

>> +++ b/meta/classes/meson.bbclass

>> @@ -1,4 +1,4 @@

>> -inherit siteinfo python3native

>> +inherit siteinfo python3native setuptools3

>>

>>  DEPENDS_append = " meson-native ninja-native"

>>

>> --

>> 2.24.0

>>

>>
<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 3 Dec 2019 at 17:37, Khem Raj &lt;<a href="mailto:raj.khem@gmail.com">raj.khem@gmail.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"><div><br></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Dec 3, 2019 at 2:06 PM Aníbal Limón &lt;<a href="mailto:anibal.limon@linaro.org" target="_blank">anibal.limon@linaro.org</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">Fixes,<br>
<br>
...<br>
| 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>
|<br>
| 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>
|<br>
| 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>
| WARNING: exit code 1 from a shell command.<br>
...<br>
</blockquote><div dir="auto"><br></div><div dir="auto">I wonder if it’s better to add this inherit to waffle recipe alone I doubt that all meson using recipes are building python modules </div></div></div></blockquote><div><br></div><div>This issue is triggered from waffle [1] but the actual meson code looks for setuptools [2].</div><div><br></div><div>Anibal</div><div><br></div><div>[1] <a href="https://gitlab.freedesktop.org/mesa/waffle/blob/master/meson.build#L36">https://gitlab.freedesktop.org/mesa/waffle/blob/master/meson.build#L36</a></div><div>[2] <a href="https://github.com/mesonbuild/meson/blob/master/mesonbuild/modules/python.py#L578">https://github.com/mesonbuild/meson/blob/master/mesonbuild/modules/python.py#L578</a></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div class="gmail_quote"><div dir="auto"><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
Signed-off-by: Aníbal Limón &lt;<a href="mailto:anibal.limon@linaro.org" target="_blank">anibal.limon@linaro.org</a>&gt;<br>

---<br>
 meta/classes/meson.bbclass | 2 +-<br>
 1 file changed, 1 insertion(+), 1 deletion(-)<br>
<br>
diff --git a/meta/classes/meson.bbclass b/meta/classes/meson.bbclass<br>
index efa6234078..90868963b7 100644<br>
--- a/meta/classes/meson.bbclass<br>
+++ b/meta/classes/meson.bbclass<br>
@@ -1,4 +1,4 @@<br>
-inherit siteinfo python3native<br>
+inherit siteinfo python3native setuptools3<br>
<br>
 DEPENDS_append = &quot; meson-native ninja-native&quot;<br>
<br>
-- <br>
2.24.0<br>
<br>
</blockquote></div></div>
</blockquote></div></div>
-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Alexander Kanavin Dec. 4, 2019, 10:20 a.m. | #3
I tend to agree with Khem; this change will pull in target python as build
and runtime dependency to all meson-using recipes, even those that have
nothing to do with python.

I'd suggest you fix the broken recipes individually by adding python3 to
DEPENDS. Yes, the "not a valid python" message is not helpful; suggestions
how to improve this are welcome.

Alex

On Wed, 4 Dec 2019 at 03:35, Anibal Limon <anibal.limon@linaro.org> wrote:

>

>

> On Tue, 3 Dec 2019 at 17:37, Khem Raj <raj.khem@gmail.com> wrote:

>

>>

>>

>> On Tue, Dec 3, 2019 at 2:06 PM Aníbal Limón <anibal.limon@linaro.org>

>> wrote:

>>

>>> Fixes,

>>>

>>> ...

>>> | 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)

>>> |

>>> | meson.build:36:0: ERROR: <ExternalProgram 'python3' ->

>>> ['/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']>

>>> is not a valid python or it is missing setuptools

>>> |

>>> | 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

>>> | WARNING: exit code 1 from a shell command.

>>> ...

>>>

>>

>> I wonder if it’s better to add this inherit to waffle recipe alone I

>> doubt that all meson using recipes are building python modules

>>

>

> This issue is triggered from waffle [1] but the actual meson code looks

> for setuptools [2].

>

> Anibal

>

> [1] https://gitlab.freedesktop.org/mesa/waffle/blob/master/meson.build#L36

> [2]

> https://github.com/mesonbuild/meson/blob/master/mesonbuild/modules/python.py#L578

>

>

>>

>>

>>> Signed-off-by: Aníbal Limón <anibal.limon@linaro.org>

>>> ---

>>>  meta/classes/meson.bbclass | 2 +-

>>>  1 file changed, 1 insertion(+), 1 deletion(-)

>>>

>>> diff --git a/meta/classes/meson.bbclass b/meta/classes/meson.bbclass

>>> index efa6234078..90868963b7 100644

>>> --- a/meta/classes/meson.bbclass

>>> +++ b/meta/classes/meson.bbclass

>>> @@ -1,4 +1,4 @@

>>> -inherit siteinfo python3native

>>> +inherit siteinfo python3native setuptools3

>>>

>>>  DEPENDS_append = " meson-native ninja-native"

>>>

>>> --

>>> 2.24.0

>>>

>>>
<div dir="ltr"><div>I tend to agree with Khem; this change will pull in target python as build and runtime dependency to all meson-using recipes, even those that have nothing to do with python.</div><div><br></div><div>I&#39;d suggest you fix the broken recipes individually by adding python3 to DEPENDS. Yes, the &quot;not a valid python&quot; message is not helpful; suggestions how to improve this are welcome.</div><div><br></div><div>Alex<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 4 Dec 2019 at 03:35, Anibal Limon &lt;<a href="mailto:anibal.limon@linaro.org">anibal.limon@linaro.org</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"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 3 Dec 2019 at 17:37, Khem Raj &lt;<a href="mailto:raj.khem@gmail.com" target="_blank">raj.khem@gmail.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"><div><br></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Dec 3, 2019 at 2:06 PM Aníbal Limón &lt;<a href="mailto:anibal.limon@linaro.org" target="_blank">anibal.limon@linaro.org</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">Fixes,<br>
<br>
...<br>
| 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>
|<br>
| 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>
|<br>
| 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>
| WARNING: exit code 1 from a shell command.<br>
...<br>
</blockquote><div dir="auto"><br></div><div dir="auto">I wonder if it’s better to add this inherit to waffle recipe alone I doubt that all meson using recipes are building python modules </div></div></div></blockquote><div><br></div><div>This issue is triggered from waffle [1] but the actual meson code looks for setuptools [2].</div><div><br></div><div>Anibal</div><div><br></div><div>[1] <a href="https://gitlab.freedesktop.org/mesa/waffle/blob/master/meson.build#L36" target="_blank">https://gitlab.freedesktop.org/mesa/waffle/blob/master/meson.build#L36</a></div><div>[2] <a href="https://github.com/mesonbuild/meson/blob/master/mesonbuild/modules/python.py#L578" target="_blank">https://github.com/mesonbuild/meson/blob/master/mesonbuild/modules/python.py#L578</a></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div class="gmail_quote"><div dir="auto"><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
Signed-off-by: Aníbal Limón &lt;<a href="mailto:anibal.limon@linaro.org" target="_blank">anibal.limon@linaro.org</a>&gt;<br>

---<br>
 meta/classes/meson.bbclass | 2 +-<br>
 1 file changed, 1 insertion(+), 1 deletion(-)<br>
<br>
diff --git a/meta/classes/meson.bbclass b/meta/classes/meson.bbclass<br>
index efa6234078..90868963b7 100644<br>
--- a/meta/classes/meson.bbclass<br>
+++ b/meta/classes/meson.bbclass<br>
@@ -1,4 +1,4 @@<br>
-inherit siteinfo python3native<br>
+inherit siteinfo python3native setuptools3<br>
<br>
 DEPENDS_append = &quot; meson-native ninja-native&quot;<br>
<br>
-- <br>
2.24.0<br>
<br>
</blockquote></div></div>
</blockquote></div></div>
</blockquote></div>
-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Aníbal Limón Dec. 4, 2019, 6:35 p.m. | #4
On Wed, 4 Dec 2019 at 04:20, Alexander Kanavin <alex.kanavin@gmail.com>
wrote:

> I tend to agree with Khem; this change will pull in target python as build

> and runtime dependency to all meson-using recipes, even those that have

> nothing to do with python.

>


Ok, it depends on python3-setuptools-native I will add this inherit on
waffle recipe.

Regards,
Anibal


>

> I'd suggest you fix the broken recipes individually by adding python3 to

> DEPENDS. Yes, the "not a valid python" message is not helpful; suggestions

> how to improve this are welcome.

>

> Alex

>

> On Wed, 4 Dec 2019 at 03:35, Anibal Limon <anibal.limon@linaro.org> wrote:

>

>>

>>

>> On Tue, 3 Dec 2019 at 17:37, Khem Raj <raj.khem@gmail.com> wrote:

>>

>>>

>>>

>>> On Tue, Dec 3, 2019 at 2:06 PM Aníbal Limón <anibal.limon@linaro.org>

>>> wrote:

>>>

>>>> Fixes,

>>>>

>>>> ...

>>>> | 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)

>>>> |

>>>> | meson.build:36:0: ERROR: <ExternalProgram 'python3' ->

>>>> ['/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']>

>>>> is not a valid python or it is missing setuptools

>>>> |

>>>> | 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

>>>> | WARNING: exit code 1 from a shell command.

>>>> ...

>>>>

>>>

>>> I wonder if it’s better to add this inherit to waffle recipe alone I

>>> doubt that all meson using recipes are building python modules

>>>

>>

>> This issue is triggered from waffle [1] but the actual meson code looks

>> for setuptools [2].

>>

>> Anibal

>>

>> [1]

>> https://gitlab.freedesktop.org/mesa/waffle/blob/master/meson.build#L36

>> [2]

>> https://github.com/mesonbuild/meson/blob/master/mesonbuild/modules/python.py#L578

>>

>>

>>>

>>>

>>>> Signed-off-by: Aníbal Limón <anibal.limon@linaro.org>

>>>> ---

>>>>  meta/classes/meson.bbclass | 2 +-

>>>>  1 file changed, 1 insertion(+), 1 deletion(-)

>>>>

>>>> diff --git a/meta/classes/meson.bbclass b/meta/classes/meson.bbclass

>>>> index efa6234078..90868963b7 100644

>>>> --- a/meta/classes/meson.bbclass

>>>> +++ b/meta/classes/meson.bbclass

>>>> @@ -1,4 +1,4 @@

>>>> -inherit siteinfo python3native

>>>> +inherit siteinfo python3native setuptools3

>>>>

>>>>  DEPENDS_append = " meson-native ninja-native"

>>>>

>>>> --

>>>> 2.24.0

>>>>

>>>>
<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 4 Dec 2019 at 04:20, Alexander Kanavin &lt;<a href="mailto:alex.kanavin@gmail.com">alex.kanavin@gmail.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"><div dir="ltr"><div>I tend to agree with Khem; this change will pull in target python as build and runtime dependency to all meson-using recipes, even those that have nothing to do with python.</div></div></blockquote><div><br></div><div>Ok, it depends on python3-setuptools-native I will add this inherit on waffle recipe.</div><div><br></div><div>Regards,</div><div>Anibal</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><br></div><div>I&#39;d suggest you fix the broken recipes individually by adding python3 to DEPENDS. Yes, the &quot;not a valid python&quot; message is not helpful; suggestions how to improve this are welcome.</div><div><br></div><div>Alex<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 4 Dec 2019 at 03:35, Anibal Limon &lt;<a href="mailto:anibal.limon@linaro.org" target="_blank">anibal.limon@linaro.org</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"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 3 Dec 2019 at 17:37, Khem Raj &lt;<a href="mailto:raj.khem@gmail.com" target="_blank">raj.khem@gmail.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"><div><br></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Dec 3, 2019 at 2:06 PM Aníbal Limón &lt;<a href="mailto:anibal.limon@linaro.org" target="_blank">anibal.limon@linaro.org</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">Fixes,<br>
<br>
...<br>
| 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>
|<br>
| 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>
|<br>
| 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>
| WARNING: exit code 1 from a shell command.<br>
...<br>
</blockquote><div dir="auto"><br></div><div dir="auto">I wonder if it’s better to add this inherit to waffle recipe alone I doubt that all meson using recipes are building python modules </div></div></div></blockquote><div><br></div><div>This issue is triggered from waffle [1] but the actual meson code looks for setuptools [2].</div><div><br></div><div>Anibal</div><div><br></div><div>[1] <a href="https://gitlab.freedesktop.org/mesa/waffle/blob/master/meson.build#L36" target="_blank">https://gitlab.freedesktop.org/mesa/waffle/blob/master/meson.build#L36</a></div><div>[2] <a href="https://github.com/mesonbuild/meson/blob/master/mesonbuild/modules/python.py#L578" target="_blank">https://github.com/mesonbuild/meson/blob/master/mesonbuild/modules/python.py#L578</a></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div class="gmail_quote"><div dir="auto"><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
Signed-off-by: Aníbal Limón &lt;<a href="mailto:anibal.limon@linaro.org" target="_blank">anibal.limon@linaro.org</a>&gt;<br>

---<br>
 meta/classes/meson.bbclass | 2 +-<br>
 1 file changed, 1 insertion(+), 1 deletion(-)<br>
<br>
diff --git a/meta/classes/meson.bbclass b/meta/classes/meson.bbclass<br>
index efa6234078..90868963b7 100644<br>
--- a/meta/classes/meson.bbclass<br>
+++ b/meta/classes/meson.bbclass<br>
@@ -1,4 +1,4 @@<br>
-inherit siteinfo python3native<br>
+inherit siteinfo python3native setuptools3<br>
<br>
 DEPENDS_append = &quot; meson-native ninja-native&quot;<br>
<br>
-- <br>
2.24.0<br>
<br>
</blockquote></div></div>
</blockquote></div></div>
</blockquote></div>
</blockquote></div></div>
-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Alexander Kanavin Dec. 4, 2019, 6:42 p.m. | #5
On Wed, 4 Dec 2019 at 19:35, Anibal Limon <anibal.limon@linaro.org> wrote:

>

>

> On Wed, 4 Dec 2019 at 04:20, Alexander Kanavin <alex.kanavin@gmail.com>

> wrote:

>

>> I tend to agree with Khem; this change will pull in target python as

>> build and runtime dependency to all meson-using recipes, even those that

>> have nothing to do with python.

>>

>

> Ok, it depends on python3-setuptools-native I will add this inherit on

> waffle recipe.

>


Do test this change; I believe you actually need a dependency on target
python3.

Alex


> Regards,

> Anibal

>

>

>>

>> I'd suggest you fix the broken recipes individually by adding python3 to

>> DEPENDS. Yes, the "not a valid python" message is not helpful; suggestions

>> how to improve this are welcome.

>>

>> Alex

>>

>> On Wed, 4 Dec 2019 at 03:35, Anibal Limon <anibal.limon@linaro.org>

>> wrote:

>>

>>>

>>>

>>> On Tue, 3 Dec 2019 at 17:37, Khem Raj <raj.khem@gmail.com> wrote:

>>>

>>>>

>>>>

>>>> On Tue, Dec 3, 2019 at 2:06 PM Aníbal Limón <anibal.limon@linaro.org>

>>>> wrote:

>>>>

>>>>> Fixes,

>>>>>

>>>>> ...

>>>>> | 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)

>>>>> |

>>>>> | meson.build:36:0: ERROR: <ExternalProgram 'python3' ->

>>>>> ['/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']>

>>>>> is not a valid python or it is missing setuptools

>>>>> |

>>>>> | 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

>>>>> | WARNING: exit code 1 from a shell command.

>>>>> ...

>>>>>

>>>>

>>>> I wonder if it’s better to add this inherit to waffle recipe alone I

>>>> doubt that all meson using recipes are building python modules

>>>>

>>>

>>> This issue is triggered from waffle [1] but the actual meson code looks

>>> for setuptools [2].

>>>

>>> Anibal

>>>

>>> [1]

>>> https://gitlab.freedesktop.org/mesa/waffle/blob/master/meson.build#L36

>>> [2]

>>> https://github.com/mesonbuild/meson/blob/master/mesonbuild/modules/python.py#L578

>>>

>>>

>>>>

>>>>

>>>>> Signed-off-by: Aníbal Limón <anibal.limon@linaro.org>

>>>>> ---

>>>>>  meta/classes/meson.bbclass | 2 +-

>>>>>  1 file changed, 1 insertion(+), 1 deletion(-)

>>>>>

>>>>> diff --git a/meta/classes/meson.bbclass b/meta/classes/meson.bbclass

>>>>> index efa6234078..90868963b7 100644

>>>>> --- a/meta/classes/meson.bbclass

>>>>> +++ b/meta/classes/meson.bbclass

>>>>> @@ -1,4 +1,4 @@

>>>>> -inherit siteinfo python3native

>>>>> +inherit siteinfo python3native setuptools3

>>>>>

>>>>>  DEPENDS_append = " meson-native ninja-native"

>>>>>

>>>>> --

>>>>> 2.24.0

>>>>>

>>>>>
<div dir="ltr"><div dir="ltr">On Wed, 4 Dec 2019 at 19:35, Anibal Limon &lt;<a href="mailto:anibal.limon@linaro.org">anibal.limon@linaro.org</a>&gt; wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 4 Dec 2019 at 04:20, Alexander Kanavin &lt;<a href="mailto:alex.kanavin@gmail.com" target="_blank">alex.kanavin@gmail.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"><div dir="ltr"><div>I tend to agree with Khem; this change will pull in target python as build and runtime dependency to all meson-using recipes, even those that have nothing to do with python.</div></div></blockquote><div><br></div><div>Ok, it depends on python3-setuptools-native I will add this inherit on waffle recipe.</div></div></div></blockquote><div><br></div><div>Do test this change; I believe you actually need a dependency on target python3.</div><div><br></div><div>Alex<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div>Regards,</div><div>Anibal</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><br></div><div>I&#39;d suggest you fix the broken recipes individually by adding python3 to DEPENDS. Yes, the &quot;not a valid python&quot; message is not helpful; suggestions how to improve this are welcome.</div><div><br></div><div>Alex<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 4 Dec 2019 at 03:35, Anibal Limon &lt;<a href="mailto:anibal.limon@linaro.org" target="_blank">anibal.limon@linaro.org</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"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 3 Dec 2019 at 17:37, Khem Raj &lt;<a href="mailto:raj.khem@gmail.com" target="_blank">raj.khem@gmail.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"><div><br></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Dec 3, 2019 at 2:06 PM Aníbal Limón &lt;<a href="mailto:anibal.limon@linaro.org" target="_blank">anibal.limon@linaro.org</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">Fixes,<br>
<br>
...<br>
| 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>
|<br>
| 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>
|<br>
| 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>
| WARNING: exit code 1 from a shell command.<br>
...<br>
</blockquote><div dir="auto"><br></div><div dir="auto">I wonder if it’s better to add this inherit to waffle recipe alone I doubt that all meson using recipes are building python modules </div></div></div></blockquote><div><br></div><div>This issue is triggered from waffle [1] but the actual meson code looks for setuptools [2].</div><div><br></div><div>Anibal</div><div><br></div><div>[1] <a href="https://gitlab.freedesktop.org/mesa/waffle/blob/master/meson.build#L36" target="_blank">https://gitlab.freedesktop.org/mesa/waffle/blob/master/meson.build#L36</a></div><div>[2] <a href="https://github.com/mesonbuild/meson/blob/master/mesonbuild/modules/python.py#L578" target="_blank">https://github.com/mesonbuild/meson/blob/master/mesonbuild/modules/python.py#L578</a></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div class="gmail_quote"><div dir="auto"><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
Signed-off-by: Aníbal Limón &lt;<a href="mailto:anibal.limon@linaro.org" target="_blank">anibal.limon@linaro.org</a>&gt;<br>

---<br>
 meta/classes/meson.bbclass | 2 +-<br>
 1 file changed, 1 insertion(+), 1 deletion(-)<br>
<br>
diff --git a/meta/classes/meson.bbclass b/meta/classes/meson.bbclass<br>
index efa6234078..90868963b7 100644<br>
--- a/meta/classes/meson.bbclass<br>
+++ b/meta/classes/meson.bbclass<br>
@@ -1,4 +1,4 @@<br>
-inherit siteinfo python3native<br>
+inherit siteinfo python3native setuptools3<br>
<br>
 DEPENDS_append = &quot; meson-native ninja-native&quot;<br>
<br>
-- <br>
2.24.0<br>
<br>
</blockquote></div></div>
</blockquote></div></div>
</blockquote></div>
</blockquote></div></div>
</blockquote></div></div>
-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Ross Burton Dec. 4, 2019, 9:16 p.m. | #6
On 04/12/2019 18:42, Alexander Kanavin wrote:
> On Wed, 4 Dec 2019 at 19:35, Anibal Limon <anibal.limon@linaro.org 

> <mailto:anibal.limon@linaro.org>> wrote:

> 

> 

> 

>     On Wed, 4 Dec 2019 at 04:20, Alexander Kanavin

>     <alex.kanavin@gmail.com <mailto:alex.kanavin@gmail.com>> wrote:

> 

>         I tend to agree with Khem; this change will pull in target

>         python as build and runtime dependency to all meson-using

>         recipes, even those that have nothing to do with python.

> 

> 

>     Ok, it depends on python3-setuptools-native I will add this inherit

>     on waffle recipe.

> 

> 

> Do test this change; I believe you actually need a dependency on target 

> python3.


I'd say that if the true dependency is just python3-setuptools-native, 
we can just add that to meson.bbclass as it's not really invasive.  If 
it was a target dependency that is different of course.

Ross

-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Khem Raj Dec. 4, 2019, 9:50 p.m. | #7
On Wed, Dec 4, 2019 at 1:16 PM Ross Burton <ross.burton@intel.com> wrote:

> On 04/12/2019 18:42, Alexander Kanavin wrote:

> > On Wed, 4 Dec 2019 at 19:35, Anibal Limon <anibal.limon@linaro.org

> > <mailto:anibal.limon@linaro.org>> wrote:

> >

> >

> >

> >     On Wed, 4 Dec 2019 at 04:20, Alexander Kanavin

> >     <alex.kanavin@gmail.com <mailto:alex.kanavin@gmail.com>> wrote:

> >

> >         I tend to agree with Khem; this change will pull in target

> >         python as build and runtime dependency to all meson-using

> >         recipes, even those that have nothing to do with python.

> >

> >

> >     Ok, it depends on python3-setuptools-native I will add this inherit

> >     on waffle recipe.

> >

> >

> > Do test this change; I believe you actually need a dependency on target

> > python3.

>

> I'd say that if the true dependency is just python3-setuptools-native,

> we can just add that to meson.bbclass as it's not really invasive.  If

> it was a target dependency that is different of course.



I think so too late if meson is demanding for setup tools then it should be
in meson bbclass I was thinking that it’s a outlier but seems not

>

>

> Ross

>

>
<div><br></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Dec 4, 2019 at 1:16 PM 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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 04/12/2019 18:42, Alexander Kanavin wrote:<br>
&gt; On Wed, 4 Dec 2019 at 19:35, Anibal Limon &lt;<a href="mailto:anibal.limon@linaro.org" target="_blank">anibal.limon@linaro.org</a> <br>
&gt; &lt;mailto:<a href="mailto:anibal.limon@linaro.org" target="_blank">anibal.limon@linaro.org</a>&gt;&gt; wrote:<br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt;     On Wed, 4 Dec 2019 at 04:20, Alexander Kanavin<br>
&gt;     &lt;<a href="mailto:alex.kanavin@gmail.com" target="_blank">alex.kanavin@gmail.com</a> &lt;mailto:<a href="mailto:alex.kanavin@gmail.com" target="_blank">alex.kanavin@gmail.com</a>&gt;&gt; wrote:<br>
&gt; <br>
&gt;         I tend to agree with Khem; this change will pull in target<br>
&gt;         python as build and runtime dependency to all meson-using<br>
&gt;         recipes, even those that have nothing to do with python.<br>
&gt; <br>
&gt; <br>
&gt;     Ok, it depends on python3-setuptools-native I will add this inherit<br>
&gt;     on waffle recipe.<br>
&gt; <br>
&gt; <br>
&gt; Do test this change; I believe you actually need a dependency on target <br>
&gt; python3.<br>
<br>
I&#39;d say that if the true dependency is just python3-setuptools-native, <br>
we can just add that to meson.bbclass as it&#39;s not really invasive.  If <br>
it was a target dependency that is different of course.</blockquote><div dir="auto"><br></div><div dir="auto">I think so too late if meson is demanding for setup tools then it should be in meson bbclass I was thinking that it’s a outlier but seems not </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
Ross<br>
<br>
</blockquote></div></div>
-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Ross Burton Dec. 10, 2019, 1:44 p.m. | #8
On 03/12/2019 22:06, Aníbal Limón wrote:
> +inherit siteinfo python3native setuptools3
>   
>   DEPENDS_append = " meson-native ninja-native"

Considering setuptools3 inherits distutil3 which adds a load of tasks, 
shouldn't this just be a DEPENDS += python3-setuptools3-native?

Ross
Khem Raj Dec. 10, 2019, 7:17 p.m. | #9
On Tue, Dec 10, 2019 at 5:44 AM Ross Burton <ross.burton@intel.com> wrote:
>
> On 03/12/2019 22:06, Aníbal Limón wrote:
> > +inherit siteinfo python3native setuptools3
> >
> >   DEPENDS_append = " meson-native ninja-native"
>
> Considering setuptools3 inherits distutil3 which adds a load of tasks,
> shouldn't this just be a DEPENDS += python3-setuptools3-native?
>

right, we dont need the tasks so class is unnecessary

> Ross
Ross Burton Dec. 18, 2019, 8:31 p.m. | #10
On 03/12/2019 22:06, Aníbal Limón wrote:
> Fixes,
> 
> ...
> | 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)
> |
> | meson.build:36:0: ERROR: <ExternalProgram 'python3' -> ['/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']> is not a valid python or it is missing setuptools
> |
> | 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
> | WARNING: exit code 1 from a shell command.

Going back to this...

Without this patch I get a different result:

Program python3 found: YES 
(/data/poky-tmp/master/work/corei7-64-poky-linux/waffle/1.6.0-r0/recipe-sysroot-native/usr/bin/python3-native/python3)
Run-time dependency threads found: YES
[ continues fine ]

So what is the meson-log.txt saying?

Ross
Aníbal Limón Jan. 8, 2020, 11:41 p.m. | #11
On Wed, 18 Dec 2019 at 14:31, Ross Burton <ross.burton@intel.com> wrote:

> On 03/12/2019 22:06, Aníbal Limón wrote:

> > Fixes,

> >

> > ...

> > | 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)

> > |

> > | meson.build:36:0: ERROR: <ExternalProgram 'python3' ->

> ['/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']>

> is not a valid python or it is missing setuptools

> > |

> > | 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

> > | WARNING: exit code 1 from a shell command.

>

> Going back to this...

>

> Without this patch I get a different result:

>

> Program python3 found: YES

>

> (/data/poky-tmp/master/work/corei7-64-poky-linux/waffle/1.6.0-r0/recipe-sysroot-native/usr/bin/python3-native/python3)

> Run-time dependency threads found: YES

> [ continues fine ]

>

> So what is the meson-log.txt saying?

>


Hi,

I'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't available so it
relais on python3 target being added.

Reviewing python3 recipe _sysconfig_data thera are two possible fixes,

- Copy _sysconfig_data from /usr/lib/python-sysconfig to /usr/lib/pythonVER
(I will go for this one)

...
+
+do_install_append_class-native() {
+       cp ${D}${libdir}/python-sysconfigdata/_sysconfigdata.py
${D}/${libdir}/python${PYTHON_MAJMIN}
+}
+
...

- Find right _sysconfig_data in python3native.bbclass because the library
name is based on os-machine.

Regards,
Anibal

>

> Ross

>
<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>
-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Patch

diff --git a/meta/classes/meson.bbclass b/meta/classes/meson.bbclass
index efa6234078..90868963b7 100644
--- a/meta/classes/meson.bbclass
+++ b/meta/classes/meson.bbclass
@@ -1,4 +1,4 @@ 
-inherit siteinfo python3native
+inherit siteinfo python3native setuptools3
 
 DEPENDS_append = " meson-native ninja-native"