Skip to contentSkip to conversation

python-numpy: re-enable for uClibc

PATCH New Arnout Vandecappelle (Essensium/Mind) 2 participants 2 messages Oct 4, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 python-numpy: re-enable for uClibc

In commit b0f025386f6861fdc21e38e3a33b65669276f2c2 a patch was added to make sure that python-numpy does work in uClibc. This patch was needed for the x86 architecture, because uClibc in fact does support fenv for x86. However, we don't turn on this support in our uClibc config. Because the Config.in depends still allowed uClibc for x86, this lead to a built failure, which lead to the fix in commit b0f02538. But since this fix also fixes it for all other (supported) architectures, we can just remove the !uClibc dependency completely.

This is also propagated to the reverse dependency in opencv3.

---
 package/opencv3/Config.in      | 1 -
 package/python-numpy/Config.in | 3 ---
 2 files changed, 4 deletions(-)
package/opencv3/Config.in +0 -1
index 137a351..4977925 100644
@@ -170,7 +170,6 @@ config BR2_PACKAGE_OPENCV3_LIB_PYTHON
 	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_TOOLCHAIN_USES_UCLIBC || BR2_i386 || BR2_x86_64 # python-numpy
 	select BR2_PACKAGE_PYTHON_NUMPY
 	help
 	  Include opencv_python module into the OpenCV build.
package/python-numpy/Config.in +0 -3
index 1f9938a..f8170f8 100644
@@ -4,9 +4,6 @@ config BR2_PACKAGE_PYTHON_NUMPY
 	depends on BR2_aarch64 || BR2_arm || BR2_armeb || BR2_i386 \
 		|| BR2_mips || BR2_mipsel || BR2_powerpc || BR2_powerpc64 \
 		|| BR2_sh || BR2_x86_64
-	# numpy needs fenv.h. Available for all architectures in
-	# glibc, but only for x86 and x86-64 in uClibc.
-	depends on !BR2_TOOLCHAIN_USES_UCLIBC || BR2_i386 || BR2_x86_64
 	help
 	  NumPy is the fundamental package for scientific computing
 	  with Python.
Signature · 1 line
2.5.3
#1 lore raw

PATCH 1/1 python-numpy: re-enable for uClibc

Dear Arnout Vandecappelle (Essensium/Mind),

Quoted 9 lines · Arnout Vandecappelle (Essensium/Mind)

In commit b0f025386f6861fdc21e38e3a33b65669276f2c2 a patch was added to make sure that python-numpy does work in uClibc. This patch was needed for the x86 architecture, because uClibc in fact does support fenv for x86. However, we don't turn on this support in our uClibc config. Because the Config.in depends still allowed uClibc for x86, this lead to a built failure, which lead to the fix in commit b0f02538. But since this fix also fixes it for all other (supported) architectures, we can just remove the !uClibc dependency completely.

Quoted 8 lines

This is also propagated to the reverse dependency in opencv3.

---
 package/opencv3/Config.in      | 1 -
 package/python-numpy/Config.in | 3 ---
 2 files changed, 4 deletions(-)

Applied, thanks.

Thomas

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