Skip to contentSkip to conversation

python_numpy: Fix SRC_URI warnings.

meta-openembedded Elvis Dowson 2 participants 8 messages Jun 22, 2012

lore
Share & tools
lore
#0 lore raw

This commit fixes the following warnings:
WARNING: Unable to get checksum for python-numpy SRC_URI entry config.h: file could not be found
WARNING: Unable to get checksum for python-numpy SRC_URI entry numpyconfig.h: file could not be found

---
 .../recipes-devtools/python/python-numpy_1.4.1.bb  |   12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)
meta-oe/recipes-devtools/python/python-numpy_1.4.1.bb +9 -3
index a67bf8b..bdcdf91 100644
@@ -2,11 +2,17 @@ DESCRIPTION = "A sophisticated Numeric Processing Package for Python"
 SECTION = "devel/python"
 LICENSE = "PSF"
 LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=3c42211d73c3faa1026e671dd39883fa"
-PR = "r3"
+PR = "r4"
 
 SRC_URI = "${SOURCEFORGE_MIRROR}/numpy/numpy-${PV}.tar.gz \
-	   file://config.h \
-	   file://numpyconfig.h \
+	  "
+SRC_URI_arm += " \
+           file://arm/config.h \
+           file://arm/numpyconfig.h \
+	  "
+SRC_URI_mipsel += " \
+           file://mipsel/config.h \
+           file://mipsel/numpyconfig.h \
 	  "
 
 S = "${WORKDIR}/numpy-${PV}"
Signature · 1 line
1.7.9.5
#1 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 20 lines · Elvis Dowson

This commit fixes the following warnings: WARNING: Unable to get checksum for python-numpy SRC_URI entry config.h: file could not be found WARNING: Unable to get checksum for python-numpy SRC_URI entry numpyconfig.h: file could not be found

.../recipes-devtools/python/python-numpy_1.4.1.bb | 12
+++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-)

(quoted diff) +0 -0

b/meta-oe/recipes-devtools/python/python-numpy_1.4.1.bb index a67bf8b..bdcdf91 100644 --- a/meta-oe/recipes-devtools/python/python-numpy_1.4.1.bb +++ b/meta-oe/recipes-devtools/python/python-numpy_1.4.1.bb @@ -2,11 +2,17 @@ DESCRIPTION = "A sophisticated Numeric Processing Package for Python" SECTION = "devel/python" LICENSE = "PSF" LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=3c42211d73c3faa1026e671dd39883fa" -PR = "r3" +PR = "r4"

Quoted 7 lines

SRC_URI = "${SOURCEFORGE_MIRROR}/numpy/numpy-${PV}.tar.gz \ -
file://config.h \ - file://numpyconfig.h \ + " +SRC_URI_arm +=
" \ + file://arm/config.h \ +
file://arm/numpyconfig.h \ + " +SRC_URI_mipsel += " \ +
file://mipsel/config.h \ + file://mipsel/numpyconfig.h \
"

Did you test it on arm/mipsel and made sure that SRC_URI is correct after this change ?

Quoted 2 lines

S = "${WORKDIR}/numpy-${PV}"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/j9IIACgkQuwUzVZGdMxRdNwCfRMpvWZtDIwMi4EkqZVhN9YbW WPwAn3VFiygw3k119AqPDm7gxm8UVIl2
=NYbZ
-----END PGP SIGNATURE-----

#2 lore raw

Hi Khem,

Quoted 2 lines · Khem Raj

Did you test it on arm/mipsel and made sure that SRC_URI is correct after this change ?

No, I did not. The location of the files had move to architecture specific folders, but the main recipe had not been updated to reflect this, so I just corrected the recipe.

I have an armv7a board (TI OMAP3530 based Gumstix Overo Fire), but no mipsel based board. At the moment, I'm focussing on the powerpc440 on my virtex5 fpga board, so perhaps someone else with an arm and mipsel could help test it out.

Best regards,

Elvis Dowson

#3 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 3 lines · Elvis Dowson

No, I did not. The location of the files had move to architecture specific folders, but the main recipe had not been updated to reflect this, so I just corrected the recipe.

OK you can just do

MACHINE=qemuarm bitbake -e python-numpy | grep -i "^SRC_URI="

and see what it shows.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/j+IQACgkQuwUzVZGdMxTyiQCglNWEIfS2EC7Sm0R60GsT0m4I pOsAn1olV/oDwSSqVYxpy3hoaFP1YJgo
=9qri
-----END PGP SIGNATURE-----

#6 lore raw
In reply to Elvis Dowson

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 20 lines · Elvis Dowson

This commit fixes the following warnings: WARNING: Unable to get checksum for python-numpy SRC_URI entry config.h: file could not be found WARNING: Unable to get checksum for python-numpy SRC_URI entry numpyconfig.h: file could not be found

.../recipes-devtools/python/python-numpy_1.4.1.bb | 12
+++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-)

(quoted diff) +0 -0

b/meta-oe/recipes-devtools/python/python-numpy_1.4.1.bb index a67bf8b..bdcdf91 100644 --- a/meta-oe/recipes-devtools/python/python-numpy_1.4.1.bb +++ b/meta-oe/recipes-devtools/python/python-numpy_1.4.1.bb @@ -2,11 +2,17 @@ DESCRIPTION = "A sophisticated Numeric Processing Package for Python" SECTION = "devel/python" LICENSE = "PSF" LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=3c42211d73c3faa1026e671dd39883fa" -PR = "r3" +PR = "r4"

Quoted 9 lines

SRC_URI = "${SOURCEFORGE_MIRROR}/numpy/numpy-${PV}.tar.gz \ -
file://config.h \ - file://numpyconfig.h \ + " +SRC_URI_arm +=
" \ + file://arm/config.h \ +
file://arm/numpyconfig.h \ + " +SRC_URI_mipsel += " \ +
file://mipsel/config.h \ + file://mipsel/numpyconfig.h \
"

S = "${WORKDIR}/numpy-${PV}"

anyway something like below is what you need.

SRC_URI = "${SOURCEFORGE_MIRROR}/numpy/numpy-${PV}.tar.gz \
           ${CONFIGFILESURI} \
          "

CONFIGFILESURI ?= ""

CONFIGFILESURI_arm = "file://config.h \
                      file://numpyconfig.h \
                      "
CONFIGFILESURI_mipsel = "file://config.h \
                      file://numpyconfig.h \
                      "

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/j+ckACgkQuwUzVZGdMxRl/QCfZL/I+bjl6bjd2xkb+1lsSXqn /E0An1i6f1IqSKrdHhHy308N0DK2BI9l
=KzI2
-----END PGP SIGNATURE-----

#4 lore raw
In reply to Khem Raj

Hi Khem,

Quoted 5 lines · Khem Raj

OK you can just do

MACHINE=qemuarm bitbake -e python-numpy | grep -i "^SRC_URI="

and see what it shows.

That command returned empty.

I'll modify the patch with the CONFIGFILESURI as you suggested.

Best regards,

Elvis Dowson

#5 lore raw
Quoted 3 lines · Elvis Dowson

That command returned empty.

:) thats what I expected.

#7 lore raw
In reply to Khem Raj

Hi Khem,

Quoted 6 lines · Khem Raj

anyway something like below is what you need.

SRC_URI = "${SOURCEFORGE_MIRROR}/numpy/numpy-${PV}.tar.gz \
          ${CONFIGFILESURI} \
         "
Quoted 7 lines

CONFIGFILESURI ?= ""

CONFIGFILESURI_arm = "file://config.h \
                     file://numpyconfig.h \
                     "
CONFIGFILESURI_mipsel = "file://config.h \
                     file://numpyconfig.h \

I made the changes as you suggested and now the SRCURI is reporting the correct values:

$ MACHINE=qemuarm bitbake -e python-numpy | grep -i "^SRC_URI="
SRC_URI="http://downloads.sourceforge.net/numpy/numpy-1.4.1.tar.gz            file://config.h 	   file://numpyconfig.h"

I'll submit a patch now.

Best regards,

Elvis Dowson