[OE-core] [PATCH] python: fix on-target use of distutils/setuptools by removing references to buildpaths

Koen Kooi koen at dominion.thruhere.net
Tue Mar 19 08:48:57 UTC 2013


Op 19 mrt. 2013, om 09:24 heeft Koen Kooi <koen at dominion.thruhere.net> het volgende geschreven:

> Running 'python setup.py build' would fail due to the python Makefile having
> 
> CC=             i586-angstrom-linux-gcc  -m32    -march=core2 -msse3 -mtune=generic -mfpmath=sse --sysroot=/home/koen/v2012.12/build/tmp-angstrom_v2012_12-eglibc/sysroots/fri2
> CXX=            i586-angstrom-linux-g++  -m32    -march=core2 -msse3 -mtune=generic -mfpmath=sse --sysroot=/home/koen/v2012.12/build/tmp-angstrom_v2012_12-eglibc/sysroots/fri2
> '--with-libtool-sysroot=/home/koen/v2012.12/build/tmp-angstrom_v2012_12-eglibc/sysroots/fri2'
> 
> And more
> 
> Multiple users have reported this problem:
> 
> http://hipstercircuits.com/?p=499
> http://www.gigamegablog.com/2012/09/09/beaglebone-coding-101-spi-output/
> 
> Signed-off-by: Koen Kooi <koen at dominion.thruhere.net>
> ---
> meta/recipes-devtools/python/python_2.7.3.bb | 6 ++++++
> 1 file changed, 6 insertions(+)
> 
> diff --git a/meta/recipes-devtools/python/python_2.7.3.bb b/meta/recipes-devtools/python/python_2.7.3.bb
> index c181933..6b127a0 100644
> --- a/meta/recipes-devtools/python/python_2.7.3.bb
> +++ b/meta/recipes-devtools/python/python_2.7.3.bb
> @@ -109,11 +109,17 @@ do_install() {
> 
> 	install -m 0644 Makefile.sysroot ${D}/${libdir}/python${PYTHON_MAJMIN}/config/Makefile
> 
> +	# Remove references to buildmachine paths in target Makefile
> +	sed -i -e 's:--sysroot=${STAGING_DIR_TARGET}::g' \
> +	       -e 's:${STAGING_DIR_TARGET}::g'\
> +	       ${D}${libdir}/python${PYTHON_MAJMIN}/config/Makefile

Ignore this one, the sed is a bit too greedy and prevents the sstate-fixup from functioning properly. V2 will follow after more testing.






More information about the Openembedded-core mailing list