[oe] [PATCH 2/3] Use linux2 when configuring python-2.6.6

Martin Jansa martin.jansa at gmail.com
Wed Oct 19 20:27:57 UTC 2011


On Wed, Oct 19, 2011 at 10:16:05PM +0200, Ulf Samuelsson wrote:
> 2011-10-19 17:45, Khem Raj skrev:
> > On 10/19/2011 8:10 AM, ulf_samuelsson at telia.com wrote:
> >> From: Ulf Samuelsson<ulf_samuelsson at telia.com>
> >>
> >> Signed-off-by: Ulf Samuelsson<ulf.samuelsson at telia.com>
> >>
> >> ---
> >>   ...64-bit-host.-Use-linux2-instead-of-linux3.patch |   40 
> >> ++++++++++++++++++++
> >>   recipes/python/python_2.6.6.bb                     |    1 +
> >>   2 files changed, 41 insertions(+), 0 deletions(-)
> >>   create mode 100644 
> >> recipes/python/python-2.6.6/0001-Support-64-bit-host.-Use-linux2-instead-of-linux3.patch
> >>
> >> diff --git 
> >> a/recipes/python/python-2.6.6/0001-Support-64-bit-host.-Use-linux2-instead-of-linux3.patch 
> >> b/recipes/python/python-2.6.6/0001-Support-64-bit-host.-Use-linux2-instead-of-linux3.patch 
> >>
> >> new file mode 100644
> >> index 0000000..46ce713
> >> --- /dev/null
> >> +++ 
> >> b/recipes/python/python-2.6.6/0001-Support-64-bit-host.-Use-linux2-instead-of-linux3.patch
> >> @@ -0,0 +1,40 @@
> >> +From 3fbd3d4aa2f9b0aaa806ec9f19dc589a0928ef0c Mon Sep 17 00:00:00 2001
> >> +From: Ulf Samuelsson<ulf_samuelsson at telia.com>
> >> +Date: Wed, 19 Oct 2011 15:46:32 +0200
> >> +Subject: [PATCH] Support 64 bit host. Use linux2 instead of linux3
> >
> >
> > can you explain why this change is needed.
> 
> I tried building on Ubuntu 11.10 x64 and Python, openssl and binutils fails.
> openssl I backported as recommended, and I then found the buildroot
> patch after some searching.
> 
> Here is the comment from the Buildroot patch:
> 
> When compiling Python on a host running Linux 3.0, the sys.platform
> constant is set at "linux3". A lot of code (inside the interpreter
> itself, its build system and third party apps and libraries) relies on
> it to be linux2 on a Linux system.

Or you can use this patch
http://git.openembedded.org/openembedded-core/commit/?id=4b7e7b004dacb698ed637f35661a60d2402c00cd

Regards,

> This leads to the build of the target python package to break.
> 
> This behaviour has been reported on the Python bugtracker but is not
> fixed yet.
> 
> 
> ---
> After I applied the three patches in the patchset,
> I managed to complete the build without errors.
> 
> >
> >> +
> >> +Imported from the Buildroot project.
> >> +
> >> +Signed-off-by: Ulf Samuelsson<ulf.samuelsson at telia.com>
> >> +---
> >> + configure    |    1 +
> >> + configure.in |    1 +
> >> + 2 files changed, 2 insertions(+), 0 deletions(-)
> >> +
> >> +diff --git a/configure b/configure
> >> +index d0731c3..dc8d029 100755
> >> +--- a/configure
> >> ++++ b/configure
> >> +@@ -2814,6 +2814,7 @@ then
> >> +     darwin*) MACHDEP="darwin";;
> >> +     atheos*) MACHDEP="atheos";;
> >> +         irix646) MACHDEP="irix6";;
> >> ++    linux*)    MACHDEP="linux2";;
> >> +     '')    MACHDEP="unknown";;
> >> +     esac
> >> + fi
> >> +diff --git a/configure.in b/configure.in
> >> +index 609d8f2..8b8b77c 100644
> >> +--- a/configure.in
> >> ++++ b/configure.in
> >> +@@ -264,6 +264,7 @@ then
> >> +     darwin*) MACHDEP="darwin";;
> >> +     atheos*) MACHDEP="atheos";;
> >> +         irix646) MACHDEP="irix6";;
> >> ++    linux*)    MACHDEP="linux2";;
> >> +     '')    MACHDEP="unknown";;
> >> +     esac
> >> + fi
> >> +--
> >> +1.7.5.4
> >> +
> >> diff --git a/recipes/python/python_2.6.6.bb 
> >> b/recipes/python/python_2.6.6.bb
> >> index eacc5c2..ae057a2 100644
> >> --- a/recipes/python/python_2.6.6.bb
> >> +++ b/recipes/python/python_2.6.6.bb
> >> @@ -18,6 +18,7 @@ SRC_URI = "\
> >>     file://python-module-rpath-fix.patch \
> >>     file://sitecustomize.py \
> >>     file://pkgconfig-support.patch \
> >> +  file://0001-Support-64-bit-host.-Use-linux2-instead-of-linux3.patch \
> >>   "
> >>   SRC_URI[md5sum] = "cf4e6881bb84a7ce6089e4a307f71f14"
> >>   SRC_URI[sha256sum] = 
> >> "134c5e0736bae2e5570d0b915693374f11108ded63c35a23a35d282737d2ce83"
> >
> >
> > _______________________________________________
> > Openembedded-devel mailing list
> > Openembedded-devel at lists.openembedded.org
> > http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
> 
> 
> -- 
> Best Regards
> Ulf Samuelsson
> 
> 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.openembedded.org/pipermail/openembedded-devel/attachments/20111019/4417563f/attachment-0002.sig>


More information about the Openembedded-devel mailing list