python2/00145-force-sys-platform-to-be-linux2.patch
David Malcolm bc10ab792a force sys.platform to be "linux2" (patch 145)
* Wed Sep 14 2011 David Malcolm <dmalcolm@redhat.com> - 2.7.2-13
- force sys.platform to be "linux2" (patch 145)
2011-09-13 23:55:20 -04:00

24 lines
876 B
Diff

diff -up Python-2.7.2/configure.in.linux2 Python-2.7.2/configure.in
--- Python-2.7.2/configure.in.linux2 2011-09-13 23:18:19.237252000 -0400
+++ Python-2.7.2/configure.in 2011-09-13 23:18:19.494252001 -0400
@@ -293,6 +293,7 @@ then
MACHDEP="$ac_md_system$ac_md_release"
case $MACHDEP in
+ linux*) MACHDEP="linux2";;
cygwin*) MACHDEP="cygwin";;
darwin*) MACHDEP="darwin";;
atheos*) MACHDEP="atheos";;
diff -up Python-2.7.2/configure.linux2 Python-2.7.2/configure
--- Python-2.7.2/configure.linux2 2011-06-11 11:46:28.000000000 -0400
+++ Python-2.7.2/configure 2011-09-13 23:18:19.489252001 -0400
@@ -3003,6 +3003,7 @@ then
MACHDEP="$ac_md_system$ac_md_release"
case $MACHDEP in
+ linux*) MACHDEP="linux2";;
cygwin*) MACHDEP="cygwin";;
darwin*) MACHDEP="darwin";;
atheos*) MACHDEP="atheos";;
diff -up Python-2.7.2/Misc/NEWS.linux2 Python-2.7.2/Misc/NEWS