<div dir="ltr">Dear Baruch<br><div class="gmail_extra"><br><div class="gmail_quote">2018-06-27 7:35 GMT+02:00 Fabrice Fontaine <span dir="ltr"><<a href="mailto:fontaine.fabrice@gmail.com" target="_blank">fontaine.fabrice@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Dear Baruch,<br><div class="gmail_extra"><br><div class="gmail_quote"><span class="">2018-06-27 5:36 GMT+02:00 Baruch Siach <span dir="ltr"><<a href="mailto:baruch@tkos.co.il" target="_blank">baruch@tkos.co.il</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Fabrice,<br>
<span><br>
On Tue, Jun 26, 2018 at 11:43:26PM +0200, Fabrice Fontaine wrote:<br>
> gnuradio needs host-python2 however there is no way to enforce this so<br>
> add a dependency on !BR2_PACKAGE_PYTHON3.<br>
> Indeed, if BR2_PACKAGE_PYTHON3 is selected, then buildroot will only<br>
> build host-python3.<br>
<br>
</span>Why not just add host-python to _DEPENDENCIES?<br></blockquote></span><div>Indeed, I will update my patch. Thanks for your help. <br></div></div></div></div></blockquote><div>After testing this option, this does not work. host-python2 is indeed built but host-python3 is also built.<br></div><div>As a result, host-python-mako and host-python-six are built only for host-python3 and not for host-python2. I don't know if this the expected behavior,perhaps buildroot should always build the python2 and python3 host packages?<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><div class="h5"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
baruch<br>
<div><div class="m_-4106705776051743385h5"><br>
> This issue was not raised in the previous version of gnuradio as<br>
> host-python-cheetah was the only dependency and host-python-cheetah<br>
> enforces python2 through HOST_PYTHON_CHEETAH_NEEDS_HOST<wbr>_PYTHON however<br>
> we now have host-python-six and host-python-mako dependencies and it<br>
> does not seem right to enforces python2 on those packages<br>
> <br>
> Fixes:<br>
>  - <a href="http://autobuild.buildroot.net/results/a502fef3e2a40f38ca63332440b0b6bd2ed11d5a" rel="noreferrer" target="_blank">http://autobuild.buildroot.net<wbr>/results/a502fef3e2a40f38ca633<wbr>32440b0b6bd2ed11d5a</a><br>
> <br>
> Signed-off-by: Fabrice Fontaine <<a href="mailto:fontaine.fabrice@gmail.com" target="_blank">fontaine.fabrice@gmail.com</a>><br>
> ---<br>
>  package/gnuradio/Config.in | 2 ++<br>
>  1 file changed, 2 insertions(+)<br>
> <br>
> diff --git a/package/gnuradio/Config.in b/package/gnuradio/Config.in<br>
> index f748b902a7..25131fb105 100644<br>
> --- a/package/gnuradio/Config.in<br>
> +++ b/package/gnuradio/Config.in<br>
> @@ -1,5 +1,6 @@<br>
>  comment "gnuradio needs a toolchain w/ C++, NPTL, wchar, dynamic library"<br>
>       depends on BR2_USE_MMU<br>
> +     depends on !BR2_PACKAGE_PYTHON3<br>
>       depends on !BR2_INSTALL_LIBSTDCPP || !BR2_USE_WCHAR || \<br>
>               !BR2_TOOLCHAIN_HAS_THREADS_NP<wbr>TL || BR2_STATIC_LIBS<br>
>  <br>
> @@ -10,6 +11,7 @@ config BR2_PACKAGE_GNURADIO<br>
>       depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL<br>
>       depends on BR2_USE_MMU # use fork()<br>
>       depends on BR2_USE_WCHAR # boost<br>
> +     depends on !BR2_PACKAGE_PYTHON3<br>
>       select BR2_PACKAGE_BOOST<br>
>       select BR2_PACKAGE_BOOST_DATE_TIME<br>
>       select BR2_PACKAGE_BOOST_FILESYSTEM<br>
<br>
-- <br>
</div></div>     <a href="http://baruch.siach.name/blog/" rel="noreferrer" target="_blank">http://baruch.siach.name/<wbr>blog/</a>                  ~. .~   Tk Open Systems<br>
=}----------------------------<wbr>--------------------ooO--U--Oo<wbr>o------------{=<br>
   - <a href="mailto:baruch@tkos.co.il" target="_blank">baruch@tkos.co.il</a> - tel: +972.2.679.5364, <a href="http://www.tkos.co.il" rel="noreferrer" target="_blank">http://www.tkos.co.il</a> -<br>
</blockquote></div></div></div>Best Regards,<br><br></div><div class="gmail_extra">Fabrice<br></div></div>
</blockquote></div>Best Regards,<br><br></div><div class="gmail_extra">Fabrice<br></div></div>