Skip to contentSkip to conversation

python-cython_0.13.bb: Add python-native to DEPENDS.

PATCH Superseded Graham Gower 3 participants 4 messages Nov 2, 2010

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 python-cython_0.13.bb: Add python-native to DEPENDS.

/mnt/oe/tmp/work/x86_64-linux/python-cython-native-0.13-r0/temp/run.do_compile.28826: line 927: /mnt/oe/tmp/sysroots/x86_64-linux/usr/bin/python: No such file or directory
FATAL: python setup.py build_ext execution failed.

---
 recipes/python/python-cython_0.13.bb |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
recipes/python/python-cython_0.13.bb +1 -0
index 61ad718..4e0411d 100644
@@ -7,6 +7,7 @@ LICENSE = "GPL"
 SRCNAME = "Cython"
 BBCLASSEXTEND = "native"
 NATIVE_INSTALL_WORKS = "1"
+DEPENDS = "python-native"
 
 SRC_URI = "http://www.cython.org/release/${SRCNAME}-${PV}.tar.gz"
 S = "${WORKDIR}/${SRCNAME}-${PV}"
Signature · 1 line
1.7.1
#1 lore raw
Quoted 3 lines · Graham Gower

/mnt/oe/tmp/work/x86_64-linux/python-cython-native-0.13-r0/temp/run.do_compile.28826: line 927: /mnt/oe/tmp/sysroots/x86_64-linux/usr/bin/python: No such file or directory
FATAL: python setup.py build_ext execution failed.

hmmm what happens if you just add python to DEPENDS instead of python-native ?

Quoted 27 lines

---
 recipes/python/python-cython_0.13.bb |    1 +

 1 files changed, 1 insertions(+), 0 deletions(-)
recipes/python/python-cython_0.13.bb +0 -0
index 61ad718..4e0411d 100644
@@ -7,6 +7,7 @@ LICENSE = "GPL"

 SRCNAME = "Cython"
 BBCLASSEXTEND = "native"
 NATIVE_INSTALL_WORKS = "1"
+DEPENDS = "python-native"

 SRC_URI = "http://www.cython.org/release/${SRCNAME}-${PV}.tar.gz" S = "${WORKDIR}/${SRCNAME}-${PV}"
--
1.7.1

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

#2 lore raw
Quoted 7 lines · Khem Raj
Quoted 3 lines · Graham Gower

/mnt/oe/tmp/work/x86_64-linux/python-cython-native-0.13-r0/temp/run.do_compile.28826: line 927: /mnt/oe/tmp/sysroots/x86_64-linux/usr/bin/python: No such file or directory
FATAL: python setup.py build_ext execution failed.

hmmm what happens if you just add python to DEPENDS instead of python-native ?

That would probably work too since python depends on python-native. Is this preferred? I can't tell if this app requires python itself, or if its just the build system that needs it.

-Graham

#3 lore raw

2010/11/2 Graham Gower <[email protected]>:

Quoted 6 lines · Khem Raj
Quoted 5 lines · Graham Gower
Quoted 3 lines

/mnt/oe/tmp/work/x86_64-linux/python-cython-native-0.13-r0/temp/run.do_compile.28826: line 927: /mnt/oe/tmp/sysroots/x86_64-linux/usr/bin/python: No such file or directory
FATAL: python setup.py build_ext execution failed.

Quoted 7 lines
Quoted 2 lines

hmmm what happens if you just add python to DEPENDS instead of python-native ?

That would probably work too since python depends on python-native. Is this preferred? I can't tell if this app requires python itself, or if its just the build system that needs it.

Thanks for your contribution!

This might be trickier than it looks at first sight. Adding python to depends seems the obvious way. BBCLASSEXTEND = "native" will cause the depends on python to be substituted in a depends on python-native (and you were building python-cython-native, not python-cython), so there adding python to DEPENDS is ok.

The real Q is when building python-cython (not -native ! ). Does this need python to build or python-native (I expect the former, but I did not test).
Suggestion is to bitbake -cclean python and python-native then build python-cython without the depedendency and see if it fails on python or on python-native.

And if the depends of python-cython is on python-native it might be needed to add python to RDEPENDS (not fullty sure, I don't know too much about python).
A run time test can tell this.

Frans.