Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v6 1/3] python-numpy: introduce ARCH_SUPPORTS hidden variable
@ 2015-10-07  7:43 Gwenhael Goavec-Merou
  2015-10-07  7:43 ` [Buildroot] [PATCH v6 2/3] opencv3: use BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS instead of replicate python-numpy depends Gwenhael Goavec-Merou
                   ` (4 more replies)
  0 siblings, 5 replies; 12+ messages in thread
From: Gwenhael Goavec-Merou @ 2015-10-07  7:43 UTC (permalink / raw)
  To: buildroot

From: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>

Some packages selects python-numpy. This package has a some CPU specific
code. To simplify and avoid duplicate dependencies this patch introduce an
hidden ARCH_SUPPORTS variable.

Signed-off-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
---
Changes v4 -> v5:
 * Re-add hidden variable.
---
 package/python-numpy/Config.in | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/package/python-numpy/Config.in b/package/python-numpy/Config.in
index f8170f8..f25102a 100644
--- a/package/python-numpy/Config.in
+++ b/package/python-numpy/Config.in
@@ -1,9 +1,13 @@
-config BR2_PACKAGE_PYTHON_NUMPY
-	bool "python-numpy"
+config BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS
+	bool
 	# Numpy has some CPU specific code
 	depends on BR2_aarch64 || BR2_arm || BR2_armeb || BR2_i386 \
 		|| BR2_mips || BR2_mipsel || BR2_powerpc || BR2_powerpc64 \
 		|| BR2_sh || BR2_x86_64
+
+config BR2_PACKAGE_PYTHON_NUMPY
+	bool "python-numpy"
+	depends on BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS
 	help
 	  NumPy is the fundamental package for scientific computing
 	  with Python.
-- 
2.4.9

^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [Buildroot] [PATCH v6 2/3] opencv3: use BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS instead of replicate python-numpy depends
  2015-10-07  7:43 [Buildroot] [PATCH v6 1/3] python-numpy: introduce ARCH_SUPPORTS hidden variable Gwenhael Goavec-Merou
@ 2015-10-07  7:43 ` Gwenhael Goavec-Merou
  2015-10-07  8:36   ` Samuel Martin
  2015-10-09 21:00   ` Thomas Petazzoni
  2015-10-07  7:43 ` [Buildroot] [PATCH v6 3/3] gnuradio: gnuradio-python gnuradio-utils: add missing dependency to python-numpy Gwenhael Goavec-Merou
                   ` (3 subsequent siblings)
  4 siblings, 2 replies; 12+ messages in thread
From: Gwenhael Goavec-Merou @ 2015-10-07  7:43 UTC (permalink / raw)
  To: buildroot

From: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>

Opencv3 select python-numpy. To reduce CPU arch dependencies, an hidden 
variable has been added to python-numpy package. This patch propagate this
modification.

Signed-off-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
---
 package/opencv3/Config.in | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/package/opencv3/Config.in b/package/opencv3/Config.in
index 9492603..2f51580 100644
--- a/package/opencv3/Config.in
+++ b/package/opencv3/Config.in
@@ -165,9 +165,7 @@ config BR2_PACKAGE_OPENCV3_LIB_PHOTO
 config BR2_PACKAGE_OPENCV3_LIB_PYTHON
 	bool "python"
 	depends on BR2_PACKAGE_PYTHON || BR2_PACKAGE_PYTHON3
-	depends on BR2_aarch64 || BR2_arm || BR2_armeb || BR2_i386 \
-		|| BR2_mips || BR2_mipsel || BR2_powerpc || BR2_powerpc64 \
-		|| BR2_sh || BR2_x86_64 # python-numpy
+	depends on BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS
 	select BR2_PACKAGE_PYTHON_NUMPY
 	help
 	  Include opencv_python module into the OpenCV build.
-- 
2.4.9

^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [Buildroot] [PATCH v6 3/3] gnuradio: gnuradio-python gnuradio-utils: add missing dependency to python-numpy
  2015-10-07  7:43 [Buildroot] [PATCH v6 1/3] python-numpy: introduce ARCH_SUPPORTS hidden variable Gwenhael Goavec-Merou
  2015-10-07  7:43 ` [Buildroot] [PATCH v6 2/3] opencv3: use BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS instead of replicate python-numpy depends Gwenhael Goavec-Merou
@ 2015-10-07  7:43 ` Gwenhael Goavec-Merou
  2015-10-07  8:38   ` Samuel Martin
                     ` (2 more replies)
  2015-10-07  8:37 ` [Buildroot] [PATCH v6 1/3] python-numpy: introduce ARCH_SUPPORTS hidden variable Samuel Martin
                   ` (2 subsequent siblings)
  4 siblings, 3 replies; 12+ messages in thread
From: Gwenhael Goavec-Merou @ 2015-10-07  7:43 UTC (permalink / raw)
  To: buildroot

From: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>

Some gnuradio python blocks needs python-numpy present.

Without python-numpy, gnuradio-python based apps fails, on runtime, with traceback like:

Traceback (most recent call last):
  File "./top_block.py", line 18, in <module>
    from gnuradio import analog
  File "/usr/lib/python2.7/site-packages/gnuradio/analog/__init__.py", line 35, in <module>
    from am_demod import *
  File "/usr/lib/python2.7/site-packages/gnuradio/analog/am_demod.py", line 22, in <module>
    from gnuradio import gr
  File "/usr/lib/python2.7/site-packages/gnuradio/gr/__init__.py", line 44, in <module>
    from top_block import *
  File "/usr/lib/python2.7/site-packages/gnuradio/gr/top_block.py", line 30, in <module>
    from hier_block2 import hier_block2
  File "/usr/lib/python2.7/site-packages/gnuradio/gr/hier_block2.py", line 26, in <module>
    import pmt
  File "/usr/lib/python2.7/site-packages/pmt/__init__.py", line 58, in <module>
    from pmt_to_python import pmt_to_python as to_python
  File "/usr/lib/python2.7/site-packages/pmt/pmt_to_python.py", line 22, in <module>
    import numpy
ImportError: No module named numpy

Signed-off-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
---
Changes v5 -> v6:
 * add space between # and runtime
Changes v4 -> v5:
 * Re-add BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS
Changes v3 -> v4:
 * add #runtime comment to BR2_PACKAGE_PYTHON_NUMPY select;
 * suppress python-numpy in GNURADIO_DEPENDENCIES variable (not needed for
   buildtime)
Changes v2 -> v3:
 * Since commit 826a2bc18bc0be0b08f2926c9fa1819fe909557c no special attentions
   is needed to select python-numpy. So BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS
   is no more needed
Changes v1 -> v2:
 * Add dependy to BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS;
 * gnuradio-python select numpy;
 * gnuradio-utils select again gnuradio-python;
 * fix commit message
---
 package/gnuradio/Config.in | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/package/gnuradio/Config.in b/package/gnuradio/Config.in
index e264a21..f188d87 100644
--- a/package/gnuradio/Config.in
+++ b/package/gnuradio/Config.in
@@ -45,13 +45,16 @@ config BR2_PACKAGE_GNURADIO_FEC
 
 config BR2_PACKAGE_GNURADIO_PYTHON
 	bool "python support"
+	depends on BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS
 	select BR2_PACKAGE_BOOST_PYTHON
 	select BR2_PACKAGE_PYTHON
+	select BR2_PACKAGE_PYTHON_NUMPY # runtime
 	help
 	  Enable python component
 
 config BR2_PACKAGE_GNURADIO_UTILS
 	bool "gr-utils support"
+	depends on BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS
 	select BR2_PACKAGE_GNURADIO_PYTHON
 	help
 	  Misc python utilities
-- 
2.4.9

^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [Buildroot] [PATCH v6 2/3] opencv3: use BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS instead of replicate python-numpy depends
  2015-10-07  7:43 ` [Buildroot] [PATCH v6 2/3] opencv3: use BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS instead of replicate python-numpy depends Gwenhael Goavec-Merou
@ 2015-10-07  8:36   ` Samuel Martin
  2015-10-09 21:00   ` Thomas Petazzoni
  1 sibling, 0 replies; 12+ messages in thread
From: Samuel Martin @ 2015-10-07  8:36 UTC (permalink / raw)
  To: buildroot

On Wed, Oct 7, 2015 at 9:43 AM, Gwenhael Goavec-Merou
<gwenj@trabucayre.com> wrote:
> From: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
>
> Opencv3 select python-numpy. To reduce CPU arch dependencies, an hidden
> variable has been added to python-numpy package. This patch propagate this
> modification.
>
> Signed-off-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
> Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>

Reviewed-by: Samuel Martin <s.martin49@gmail.com>

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Buildroot] [PATCH v6 1/3] python-numpy: introduce ARCH_SUPPORTS hidden variable
  2015-10-07  7:43 [Buildroot] [PATCH v6 1/3] python-numpy: introduce ARCH_SUPPORTS hidden variable Gwenhael Goavec-Merou
  2015-10-07  7:43 ` [Buildroot] [PATCH v6 2/3] opencv3: use BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS instead of replicate python-numpy depends Gwenhael Goavec-Merou
  2015-10-07  7:43 ` [Buildroot] [PATCH v6 3/3] gnuradio: gnuradio-python gnuradio-utils: add missing dependency to python-numpy Gwenhael Goavec-Merou
@ 2015-10-07  8:37 ` Samuel Martin
  2015-10-07 11:59 ` Vicente Olivert Riera
  2015-10-09 20:55 ` Thomas Petazzoni
  4 siblings, 0 replies; 12+ messages in thread
From: Samuel Martin @ 2015-10-07  8:37 UTC (permalink / raw)
  To: buildroot

On Wed, Oct 7, 2015 at 9:43 AM, Gwenhael Goavec-Merou
<gwenj@trabucayre.com> wrote:
> From: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
>
> Some packages selects python-numpy. This package has a some CPU specific
> code. To simplify and avoid duplicate dependencies this patch introduce an
> hidden ARCH_SUPPORTS variable.
>
> Signed-off-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
> Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>

Reviewed-by: Samuel Martin <s.martin49@gmail.com>

-- 
Samuel

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Buildroot] [PATCH v6 3/3] gnuradio: gnuradio-python gnuradio-utils: add missing dependency to python-numpy
  2015-10-07  7:43 ` [Buildroot] [PATCH v6 3/3] gnuradio: gnuradio-python gnuradio-utils: add missing dependency to python-numpy Gwenhael Goavec-Merou
@ 2015-10-07  8:38   ` Samuel Martin
  2015-10-09 21:00   ` Thomas Petazzoni
  2015-10-09 21:31   ` Thomas Petazzoni
  2 siblings, 0 replies; 12+ messages in thread
From: Samuel Martin @ 2015-10-07  8:38 UTC (permalink / raw)
  To: buildroot

On Wed, Oct 7, 2015 at 9:43 AM, Gwenhael Goavec-Merou
<gwenj@trabucayre.com> wrote:
> From: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
>
> Some gnuradio python blocks needs python-numpy present.
>
> Without python-numpy, gnuradio-python based apps fails, on runtime, with traceback like:
>
> Traceback (most recent call last):
>   File "./top_block.py", line 18, in <module>
>     from gnuradio import analog
>   File "/usr/lib/python2.7/site-packages/gnuradio/analog/__init__.py", line 35, in <module>
>     from am_demod import *
>   File "/usr/lib/python2.7/site-packages/gnuradio/analog/am_demod.py", line 22, in <module>
>     from gnuradio import gr
>   File "/usr/lib/python2.7/site-packages/gnuradio/gr/__init__.py", line 44, in <module>
>     from top_block import *
>   File "/usr/lib/python2.7/site-packages/gnuradio/gr/top_block.py", line 30, in <module>
>     from hier_block2 import hier_block2
>   File "/usr/lib/python2.7/site-packages/gnuradio/gr/hier_block2.py", line 26, in <module>
>     import pmt
>   File "/usr/lib/python2.7/site-packages/pmt/__init__.py", line 58, in <module>
>     from pmt_to_python import pmt_to_python as to_python
>   File "/usr/lib/python2.7/site-packages/pmt/pmt_to_python.py", line 22, in <module>
>     import numpy
> ImportError: No module named numpy
>
> Signed-off-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
> Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>

Reviewed-by: Samuel Martin <s.martin49@gmail.com>

-- 
Samuel

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Buildroot] [PATCH v6 1/3] python-numpy: introduce ARCH_SUPPORTS hidden variable
  2015-10-07  7:43 [Buildroot] [PATCH v6 1/3] python-numpy: introduce ARCH_SUPPORTS hidden variable Gwenhael Goavec-Merou
                   ` (2 preceding siblings ...)
  2015-10-07  8:37 ` [Buildroot] [PATCH v6 1/3] python-numpy: introduce ARCH_SUPPORTS hidden variable Samuel Martin
@ 2015-10-07 11:59 ` Vicente Olivert Riera
  2015-10-07 12:25   ` gwenhael.goavec
  2015-10-09 20:55 ` Thomas Petazzoni
  4 siblings, 1 reply; 12+ messages in thread
From: Vicente Olivert Riera @ 2015-10-07 11:59 UTC (permalink / raw)
  To: buildroot

Dear Gwenhael Goavec-Merou,

please mark your previous series as superseded:

http://patchwork.ozlabs.org/patch/526678/
http://patchwork.ozlabs.org/patch/526680/
http://patchwork.ozlabs.org/patch/526679/

Thanks,

Vincent.

On 10/07/2015 08:43 AM, Gwenhael Goavec-Merou wrote:
> From: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
> 
> Some packages selects python-numpy. This package has a some CPU specific
> code. To simplify and avoid duplicate dependencies this patch introduce an
> hidden ARCH_SUPPORTS variable.
> 
> Signed-off-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
> Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
> ---
> Changes v4 -> v5:
>  * Re-add hidden variable.
> ---
>  package/python-numpy/Config.in | 8 ++++++--
>  1 file changed, 6 insertions(+), 2 deletions(-)
> 
> diff --git a/package/python-numpy/Config.in b/package/python-numpy/Config.in
> index f8170f8..f25102a 100644
> --- a/package/python-numpy/Config.in
> +++ b/package/python-numpy/Config.in
> @@ -1,9 +1,13 @@
> -config BR2_PACKAGE_PYTHON_NUMPY
> -	bool "python-numpy"
> +config BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS
> +	bool
>  	# Numpy has some CPU specific code
>  	depends on BR2_aarch64 || BR2_arm || BR2_armeb || BR2_i386 \
>  		|| BR2_mips || BR2_mipsel || BR2_powerpc || BR2_powerpc64 \
>  		|| BR2_sh || BR2_x86_64
> +
> +config BR2_PACKAGE_PYTHON_NUMPY
> +	bool "python-numpy"
> +	depends on BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS
>  	help
>  	  NumPy is the fundamental package for scientific computing
>  	  with Python.
> 

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Buildroot] [PATCH v6 1/3] python-numpy: introduce ARCH_SUPPORTS hidden variable
  2015-10-07 11:59 ` Vicente Olivert Riera
@ 2015-10-07 12:25   ` gwenhael.goavec
  0 siblings, 0 replies; 12+ messages in thread
From: gwenhael.goavec @ 2015-10-07 12:25 UTC (permalink / raw)
  To: buildroot

Dear Vicente Olivert Riera

Done.

Thanks,
Gwen

On Wed, 7 Oct 2015 12:59:33 +0100
 <Vincent.Riera@imgtec.com> wrote:

> Dear Gwenhael Goavec-Merou,
> 
> please mark your previous series as superseded:
> 
> http://patchwork.ozlabs.org/patch/526678/
> http://patchwork.ozlabs.org/patch/526680/
> http://patchwork.ozlabs.org/patch/526679/
> 
> Thanks,
> 
> Vincent.
> 
> On 10/07/2015 08:43 AM, Gwenhael Goavec-Merou wrote:
> > From: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
> > 
> > Some packages selects python-numpy. This package has a some CPU
> > specific code. To simplify and avoid duplicate dependencies this
> > patch introduce an hidden ARCH_SUPPORTS variable.
> > 
> > Signed-off-by: Gwenhael Goavec-Merou
> > <gwenhael.goavec-merou@trabucayre.com> Reviewed-by: Arnout
> > Vandecappelle (Essensium/Mind) <arnout@mind.be> ---
> > Changes v4 -> v5:
> >  * Re-add hidden variable.
> > ---
> >  package/python-numpy/Config.in | 8 ++++++--
> >  1 file changed, 6 insertions(+), 2 deletions(-)
> > 
> > diff --git a/package/python-numpy/Config.in
> > b/package/python-numpy/Config.in index f8170f8..f25102a 100644
> > --- a/package/python-numpy/Config.in
> > +++ b/package/python-numpy/Config.in
> > @@ -1,9 +1,13 @@
> > -config BR2_PACKAGE_PYTHON_NUMPY
> > -	bool "python-numpy"
> > +config BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS
> > +	bool
> >  	# Numpy has some CPU specific code
> >  	depends on BR2_aarch64 || BR2_arm || BR2_armeb || BR2_i386
> > \ || BR2_mips || BR2_mipsel || BR2_powerpc || BR2_powerpc64 \
> >  		|| BR2_sh || BR2_x86_64
> > +
> > +config BR2_PACKAGE_PYTHON_NUMPY
> > +	bool "python-numpy"
> > +	depends on BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS
> >  	help
> >  	  NumPy is the fundamental package for scientific computing
> >  	  with Python.
> > 

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Buildroot] [PATCH v6 1/3] python-numpy: introduce ARCH_SUPPORTS hidden variable
  2015-10-07  7:43 [Buildroot] [PATCH v6 1/3] python-numpy: introduce ARCH_SUPPORTS hidden variable Gwenhael Goavec-Merou
                   ` (3 preceding siblings ...)
  2015-10-07 11:59 ` Vicente Olivert Riera
@ 2015-10-09 20:55 ` Thomas Petazzoni
  4 siblings, 0 replies; 12+ messages in thread
From: Thomas Petazzoni @ 2015-10-09 20:55 UTC (permalink / raw)
  To: buildroot

Gwenhael,

On Wed,  7 Oct 2015 09:43:17 +0200, Gwenhael Goavec-Merou wrote:

> diff --git a/package/python-numpy/Config.in b/package/python-numpy/Config.in
> index f8170f8..f25102a 100644
> --- a/package/python-numpy/Config.in
> +++ b/package/python-numpy/Config.in
> @@ -1,9 +1,13 @@
> -config BR2_PACKAGE_PYTHON_NUMPY
> -	bool "python-numpy"
> +config BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS
> +	bool
>  	# Numpy has some CPU specific code
>  	depends on BR2_aarch64 || BR2_arm || BR2_armeb || BR2_i386 \
>  		|| BR2_mips || BR2_mipsel || BR2_powerpc || BR2_powerpc64 \
>  		|| BR2_sh || BR2_x86_64

With this code, the BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS option is
always false: there is nothing that makes it equal to 'y', so I don't
see how you could test these patches.

So I've fixed that by replacing:

	depends on BR2_aarch64 ...

by:

	default y if BR2_aarch64 ...

And applied.

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Buildroot] [PATCH v6 2/3] opencv3: use BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS instead of replicate python-numpy depends
  2015-10-07  7:43 ` [Buildroot] [PATCH v6 2/3] opencv3: use BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS instead of replicate python-numpy depends Gwenhael Goavec-Merou
  2015-10-07  8:36   ` Samuel Martin
@ 2015-10-09 21:00   ` Thomas Petazzoni
  1 sibling, 0 replies; 12+ messages in thread
From: Thomas Petazzoni @ 2015-10-09 21:00 UTC (permalink / raw)
  To: buildroot

Dear Gwenhael Goavec-Merou,

On Wed,  7 Oct 2015 09:43:18 +0200, Gwenhael Goavec-Merou wrote:
> From: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
> 
> Opencv3 select python-numpy. To reduce CPU arch dependencies, an hidden 
> variable has been added to python-numpy package. This patch propagate this
> modification.
> 
> Signed-off-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
> Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
> ---
>  package/opencv3/Config.in | 4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)

Applied, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Buildroot] [PATCH v6 3/3] gnuradio: gnuradio-python gnuradio-utils: add missing dependency to python-numpy
  2015-10-07  7:43 ` [Buildroot] [PATCH v6 3/3] gnuradio: gnuradio-python gnuradio-utils: add missing dependency to python-numpy Gwenhael Goavec-Merou
  2015-10-07  8:38   ` Samuel Martin
@ 2015-10-09 21:00   ` Thomas Petazzoni
  2015-10-09 21:31   ` Thomas Petazzoni
  2 siblings, 0 replies; 12+ messages in thread
From: Thomas Petazzoni @ 2015-10-09 21:00 UTC (permalink / raw)
  To: buildroot

Dear Gwenhael Goavec-Merou,

On Wed,  7 Oct 2015 09:43:19 +0200, Gwenhael Goavec-Merou wrote:
> From: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
> 
> Some gnuradio python blocks needs python-numpy present.
> 
> Without python-numpy, gnuradio-python based apps fails, on runtime, with traceback like:
> 
> Traceback (most recent call last):
>   File "./top_block.py", line 18, in <module>
>     from gnuradio import analog
>   File "/usr/lib/python2.7/site-packages/gnuradio/analog/__init__.py", line 35, in <module>
>     from am_demod import *
>   File "/usr/lib/python2.7/site-packages/gnuradio/analog/am_demod.py", line 22, in <module>
>     from gnuradio import gr
>   File "/usr/lib/python2.7/site-packages/gnuradio/gr/__init__.py", line 44, in <module>
>     from top_block import *
>   File "/usr/lib/python2.7/site-packages/gnuradio/gr/top_block.py", line 30, in <module>
>     from hier_block2 import hier_block2
>   File "/usr/lib/python2.7/site-packages/gnuradio/gr/hier_block2.py", line 26, in <module>
>     import pmt
>   File "/usr/lib/python2.7/site-packages/pmt/__init__.py", line 58, in <module>
>     from pmt_to_python import pmt_to_python as to_python
>   File "/usr/lib/python2.7/site-packages/pmt/pmt_to_python.py", line 22, in <module>
>     import numpy
> ImportError: No module named numpy
> 
> Signed-off-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
> Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
> ---
> Changes v5 -> v6:
>  * add space between # and runtime
> Changes v4 -> v5:
>  * Re-add BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS
> Changes v3 -> v4:
>  * add #runtime comment to BR2_PACKAGE_PYTHON_NUMPY select;
>  * suppress python-numpy in GNURADIO_DEPENDENCIES variable (not needed for
>    buildtime)
> Changes v2 -> v3:
>  * Since commit 826a2bc18bc0be0b08f2926c9fa1819fe909557c no special attentions
>    is needed to select python-numpy. So BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS
>    is no more needed
> Changes v1 -> v2:
>  * Add dependy to BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS;
>  * gnuradio-python select numpy;
>  * gnuradio-utils select again gnuradio-python;
>  * fix commit message
> ---
>  package/gnuradio/Config.in | 3 +++
>  1 file changed, 3 insertions(+)

Applied, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Buildroot] [PATCH v6 3/3] gnuradio: gnuradio-python gnuradio-utils: add missing dependency to python-numpy
  2015-10-07  7:43 ` [Buildroot] [PATCH v6 3/3] gnuradio: gnuradio-python gnuradio-utils: add missing dependency to python-numpy Gwenhael Goavec-Merou
  2015-10-07  8:38   ` Samuel Martin
  2015-10-09 21:00   ` Thomas Petazzoni
@ 2015-10-09 21:31   ` Thomas Petazzoni
  2 siblings, 0 replies; 12+ messages in thread
From: Thomas Petazzoni @ 2015-10-09 21:31 UTC (permalink / raw)
  To: buildroot

Hello,

On Wed,  7 Oct 2015 09:43:19 +0200, Gwenhael Goavec-Merou wrote:
> From: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
> 
> Some gnuradio python blocks needs python-numpy present.
> 
> Without python-numpy, gnuradio-python based apps fails, on runtime, with traceback like:

Gwenhael, Samuel, did you really test this patch? It causes some
clearly visible warnings when running "make menuconfig" :

package/python/Config.in:5:error: recursive dependency detected!
package/python/Config.in:5:	symbol BR2_PACKAGE_PYTHON is selected by BR2_PACKAGE_GNURADIO_PYTHON
package/gnuradio/Config.in:46:	symbol BR2_PACKAGE_GNURADIO_PYTHON is selected by BR2_PACKAGE_GNURADIO_UTILS
package/gnuradio/Config.in:55:	symbol BR2_PACKAGE_GNURADIO_UTILS depends on BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS
package/python-numpy/Config.in:1:	symbol BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS depends on BR2_PACKAGE_PYTHON

I had to fix that up through a separate following commit
http://git.buildroot.net/buildroot/commit/?id=ef531c6ded27b62462c74b964fad8f5c337da3a2,
but I would have preferred the patch to not contain such an obvious
issue.

Thanks,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2015-10-09 21:31 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-07  7:43 [Buildroot] [PATCH v6 1/3] python-numpy: introduce ARCH_SUPPORTS hidden variable Gwenhael Goavec-Merou
2015-10-07  7:43 ` [Buildroot] [PATCH v6 2/3] opencv3: use BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS instead of replicate python-numpy depends Gwenhael Goavec-Merou
2015-10-07  8:36   ` Samuel Martin
2015-10-09 21:00   ` Thomas Petazzoni
2015-10-07  7:43 ` [Buildroot] [PATCH v6 3/3] gnuradio: gnuradio-python gnuradio-utils: add missing dependency to python-numpy Gwenhael Goavec-Merou
2015-10-07  8:38   ` Samuel Martin
2015-10-09 21:00   ` Thomas Petazzoni
2015-10-09 21:31   ` Thomas Petazzoni
2015-10-07  8:37 ` [Buildroot] [PATCH v6 1/3] python-numpy: introduce ARCH_SUPPORTS hidden variable Samuel Martin
2015-10-07 11:59 ` Vicente Olivert Riera
2015-10-07 12:25   ` gwenhael.goavec
2015-10-09 20:55 ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox