python: build fix for Linux 3.x
This commit is contained in:
parent
6f5b5a48d4
commit
77b7edaa13
@ -1 +1,2 @@
|
||||
75c87a80c6ddb0b785a57ea3583e04fa Python-2.7.2.tar.xz
|
||||
8d95238b06f04e52b9d97d1b643aa937 configure_linux2.patch
|
||||
|
@ -5,12 +5,16 @@
|
||||
|
||||
name=python
|
||||
version=2.7.2
|
||||
release=1
|
||||
source=(http://www.python.org/ftp/$name/$version/Python-$version.tar.xz)
|
||||
release=2
|
||||
source=(http://www.python.org/ftp/$name/$version/Python-$version.tar.xz
|
||||
configure_linux2.patch)
|
||||
|
||||
build () {
|
||||
cd Python-$version
|
||||
|
||||
# http://bugs.python.org/issue12326
|
||||
patch -p1 -i $SRC/configure_linux2.patch
|
||||
|
||||
./configure --prefix=/usr \
|
||||
--mandir=/usr/man \
|
||||
--enable-shared \
|
||||
|
47
python/configure_linux2.patch
Normal file
47
python/configure_linux2.patch
Normal file
@ -0,0 +1,47 @@
|
||||
|
||||
# HG changeset patch
|
||||
# User Victor Stinner <victor.stinner@haypocalc.com>
|
||||
# Date 1313841665 -7200
|
||||
# Node ID 265da863d0179d092850685250750512820bb592
|
||||
# Parent 6d3e82c3dc6e6d1bc62dd911584bdeb10dfb5772
|
||||
Issue #12326: sys.platform is now always 'linux2' on Linux
|
||||
|
||||
Even if Python is compiled on Linux 3.
|
||||
|
||||
diff --git a/Misc/NEWS b/Misc/NEWS
|
||||
--- a/Misc/NEWS
|
||||
+++ b/Misc/NEWS
|
||||
@@ -10,6 +10,10 @@ What's New in Python 3.2.2?
|
||||
Core and Builtins
|
||||
-----------------
|
||||
|
||||
+- Issue #12326: sys.platform is now always 'linux2' on Linux, even if Python
|
||||
+ is compiled on Linux 3.
|
||||
+
|
||||
+
|
||||
Library
|
||||
-------
|
||||
|
||||
diff --git a/configure b/configure
|
||||
--- a/configure
|
||||
+++ b/configure
|
||||
@@ -2997,6 +2997,7 @@ then
|
||||
MACHDEP="$ac_md_system$ac_md_release"
|
||||
|
||||
case $MACHDEP in
|
||||
+ linux*) MACHDEP="linux2";;
|
||||
cygwin*) MACHDEP="cygwin";;
|
||||
darwin*) MACHDEP="darwin";;
|
||||
irix646) MACHDEP="irix6";;
|
||||
diff --git a/configure.in b/configure.in
|
||||
--- a/configure.in
|
||||
+++ b/configure.in
|
||||
@@ -290,6 +290,7 @@ then
|
||||
MACHDEP="$ac_md_system$ac_md_release"
|
||||
|
||||
case $MACHDEP in
|
||||
+ linux*) MACHDEP="linux2";;
|
||||
cygwin*) MACHDEP="cygwin";;
|
||||
darwin*) MACHDEP="darwin";;
|
||||
irix646) MACHDEP="irix6";;
|
||||
|
Loading…
x
Reference in New Issue
Block a user