* [Buildroot] [PATCH] package/ola: fix missing numpy
@ 2016-11-24 21:18 Jörg Krause
2016-11-25 21:01 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Jörg Krause @ 2016-11-24 21:18 UTC (permalink / raw)
To: buildroot
OLAs RDM test option needs NumPy.
Note that we need to pass `ac_cv_have_pymod_numpy=yes` as NumPy builds some
shared libraries and ola checks for NumPy using a host Python test program
which fails with 'wrong ELF class'.
Fixes:
http://autobuild.buildroot.net/results/750/750c9bcc753e2c1b7b05d6c43fabf4c405e15f04/
http://autobuild.buildroot.net/results/24a/24ada1e0ec695cb12028048728a9d1e2bcf75a03/
http://autobuild.buildroot.net/results/111/111c5f3eed6a5931de27a1b0b02be6e2114198e6/
.. and more.
Signed-off-by: J?rg Krause <joerg.krause@embedded.rocks>
---
package/ola/Config.in | 2 ++
package/ola/ola.mk | 4 ++++
2 files changed, 6 insertions(+)
diff --git a/package/ola/Config.in b/package/ola/Config.in
index 7b56f5c..2f1d33e 100644
--- a/package/ola/Config.in
+++ b/package/ola/Config.in
@@ -54,6 +54,8 @@ config BR2_PACKAGE_OLA_EXAMPLES
config BR2_PACKAGE_OLA_RDM_TESTS
bool "rdm tests"
depends on BR2_PACKAGE_OLA_PYTHON_BINDINGS
+ depends on BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS
+ select BR2_PACKAGE_PYTHON_NUMPY
help
Build OLA RDM tests.
diff --git a/package/ola/ola.mk b/package/ola/ola.mk
index 75ab25e..24e53e4 100644
--- a/package/ola/ola.mk
+++ b/package/ola/ola.mk
@@ -87,6 +87,10 @@ endif
ifeq ($(BR2_PACKAGE_OLA_RDM_TESTS),y)
OLA_CONF_OPTS += --enable-rdm-tests
+OLA_DEPENDENCIES += python-numpy
+# needed as numpy builds some shared libraries and ola checks for numpy
+# using a host python test program which fails with 'wrong ELF class'.
+OLA_CONF_ENV = ac_cv_have_pymod_numpy=yes
else
OLA_CONF_OPTS += --disable-rdm-tests
endif
--
2.10.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH] package/ola: fix missing numpy
2016-11-24 21:18 [Buildroot] [PATCH] package/ola: fix missing numpy Jörg Krause
@ 2016-11-25 21:01 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2016-11-25 21:01 UTC (permalink / raw)
To: buildroot
Hello,
On Thu, 24 Nov 2016 22:18:18 +0100, J?rg Krause wrote:
> OLAs RDM test option needs NumPy.
>
> Note that we need to pass `ac_cv_have_pymod_numpy=yes` as NumPy builds some
> shared libraries and ola checks for NumPy using a host Python test program
> which fails with 'wrong ELF class'.
>
> Fixes:
> http://autobuild.buildroot.net/results/750/750c9bcc753e2c1b7b05d6c43fabf4c405e15f04/
> http://autobuild.buildroot.net/results/24a/24ada1e0ec695cb12028048728a9d1e2bcf75a03/
> http://autobuild.buildroot.net/results/111/111c5f3eed6a5931de27a1b0b02be6e2114198e6/
> .. and more.
>
> Signed-off-by: J?rg Krause <joerg.krause@embedded.rocks>
> ---
> package/ola/Config.in | 2 ++
> package/ola/ola.mk | 4 ++++
> 2 files changed, 6 insertions(+)
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-11-25 21:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-24 21:18 [Buildroot] [PATCH] package/ola: fix missing numpy Jörg Krause
2016-11-25 21:01 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox