]> granicus.if.org Git - python/commitdiff
Issue #12326: sys.platform is now always 'linux2' on Linux
authorVictor Stinner <victor.stinner@haypocalc.com>
Sat, 20 Aug 2011 12:01:05 +0000 (14:01 +0200)
committerVictor Stinner <victor.stinner@haypocalc.com>
Sat, 20 Aug 2011 12:01:05 +0000 (14:01 +0200)
Even if Python is compiled on Linux 3.

Misc/NEWS
configure
configure.in

index fe85823a2d8dc61c3a8429207c525ea14f3ba3c0..48ef326d56e378a53eb850dedfb4fcdea00d4d48 100644 (file)
--- 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
 -------
 
index 508ae3463a1da9a7a8dc7756fbedb92b583ea152..9d85e359b1da0245492ee391232deb38eeff32ac 100755 (executable)
--- 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";;
index c4ad4e8908721c1c9bd6fc04e2fa43ef725084b1..3e60d8e01654421475f0d928c29e38965b31d681 100644 (file)
@@ -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";;