[oe] [meta-oe/meta-oe][PATCH 2/2] python-numpy: fix incorrect path of config files

Zhenhua Luo zhenhua.luo at freescale.com
Wed Nov 20 10:44:22 UTC 2013


Fix following two build issues
1. WARNING: Failed to fetch URL file://config.h, attempting MIRRORS if available
   ERROR: Fetcher failure: Unable to find file file://config.h anywhere. The paths that were searched were:
   ... [snip] ...
   ERROR: Function failed: Fetcher failure for URL: 'file://config.h'. Unable to fetch URL from any source.
2. cp: cannot stat `.../python-numpy/1.7.0-r0/*config.h': No such file or directory

Signed-off-by: Zhenhua Luo <zhenhua.luo at freescale.com>
---
 .../recipes-devtools/python/python-numpy_1.7.0.bb  | 34 +++++++++++-----------
 1 file changed, 17 insertions(+), 17 deletions(-)

diff --git a/meta-oe/recipes-devtools/python/python-numpy_1.7.0.bb b/meta-oe/recipes-devtools/python/python-numpy_1.7.0.bb
index 99662da..a61827c 100644
--- a/meta-oe/recipes-devtools/python/python-numpy_1.7.0.bb
+++ b/meta-oe/recipes-devtools/python/python-numpy_1.7.0.bb
@@ -10,37 +10,37 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/numpy/numpy-${PV}.tar.gz \
 CONFIGFILESURI ?= ""
 
 CONFIGFILESURI_aarch64 = " \
-    file://config.h \
-    file://_numpyconfig.h \
+    file://aarch64/config.h \
+    file://aarch64/_numpyconfig.h \
 "
 CONFIGFILESURI_arm = " \
-    file://config.h \
-    file://numpyconfig.h \
+    file://arm/config.h \
+    file://arm/numpyconfig.h \
 "
 CONFIGFILESURI_armeb = " \
-    file://config.h \
-    file://numpyconfig.h \
+    file://armeb/config.h \
+    file://armeb/numpyconfig.h \
 "
 CONFIGFILESURI_mipsel = " \
-    file://config.h \
-    file://numpyconfig.h \
+    file://mipsel/config.h \
+    file://mipsel/numpyconfig.h \
 "
 CONFIGFILESURI_i586 = " \
-    file://config.h \
-    file://numpyconfig.h \
+    file://i586/config.h \
+    file://i586/numpyconfig.h \
 "
 CONFIGFILESURI_x86-64 = " \
-    file://config.h \
-    file://_numpyconfig.h \
+    file://x86-64/config.h \
+    file://x86-64/_numpyconfig.h \
 "
 
 CONFIGFILESURI_powerpc = " \
-    file://config.h \
-    file://numpyconfig.h \
+    file://ppc/config.h \
+    file://ppc/numpyconfig.h \
 "
 CONFIGFILESURI_powerpc64 = " \
-    file://config.h \
-    file://_numpyconfig.h \
+    file://ppc64/config.h \
+    file://ppc64/_numpyconfig.h \
 "
 
 S = "${WORKDIR}/numpy-${PV}"
@@ -53,7 +53,7 @@ do_compile_prepend() {
     BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \
     ${STAGING_BINDIR_NATIVE}/python-native/python setup.py build ${DISTUTILS_BUILD_ARGS} || \
     true
-    cp ${WORKDIR}/*config.h ${S}/build/$(ls ${S}/build | grep src)/numpy/core/include/numpy/
+    cp ${WORKDIR}/*/*config.h ${S}/build/$(ls ${S}/build | grep src)/numpy/core/include/numpy/
 }
 
 FILES_${PN}-staticdev += "${PYTHON_SITEPACKAGES_DIR}/numpy/core/lib/*.a"
-- 
1.8.3.1





More information about the Openembedded-devel mailing list