Openembedded Devel Discussions
 help / color / mirror / Atom feed
From: Ulf Samuelsson <ulf_samuelsson@telia.com>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [PATCH 2/3] Use linux2 when configuring python-2.6.6
Date: Wed, 19 Oct 2011 22:16:05 +0200	[thread overview]
Message-ID: <4E9F3005.5040203@telia.com> (raw)
In-Reply-To: <4E9EF092.3080300@gmail.com>

2011-10-19 17:45, Khem Raj skrev:
> On 10/19/2011 8:10 AM, ulf_samuelsson@telia.com wrote:
>> From: Ulf Samuelsson<ulf_samuelsson@telia.com>
>>
>> Signed-off-by: Ulf Samuelsson<ulf.samuelsson@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@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.

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@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@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel


-- 
Best Regards
Ulf Samuelsson




  reply	other threads:[~2011-10-19 20:22 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-19 15:10 [PATCH 1/3] Backport openssl-1.0.0e from meta-openembedded ulf_samuelsson
2011-10-19 15:10 ` [PATCH 2/3] Use linux2 when configuring python-2.6.6 ulf_samuelsson
2011-10-19 15:45   ` Khem Raj
2011-10-19 20:16     ` Ulf Samuelsson [this message]
2011-10-19 20:27       ` Martin Jansa
2011-10-19 15:10 ` [PATCH 3/3] Update checksums for binutils-2.20.1.tar.bz2 ulf_samuelsson
2011-10-19 15:13   ` Ulf Samuelsson
2011-10-19 20:58   ` Paul Menzel
2011-10-19 21:18     ` Martin Jansa
2011-10-20 21:14       ` Denys Dmytriyenko
2011-10-19 22:11     ` Ulf Samuelsson
2011-10-20  7:04       ` Paul Menzel
2011-10-19 20:43 ` [PATCH 1/3] Backport openssl-1.0.0e from meta-openembedded Paul Menzel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4E9F3005.5040203@telia.com \
    --to=ulf_samuelsson@telia.com \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox