]> 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:02:38 +0000 (14:02 +0200)
committerVictor Stinner <victor.stinner@haypocalc.com>
Sat, 20 Aug 2011 12:02:38 +0000 (14:02 +0200)
Even if Python is compiled on Linux 3.

Misc/NEWS
configure
configure.in

index 78f4fa6c8d0ce48f39e3aa306dc27bc58fb98464..331ac4e16b11b6842e1bad24eeeadc588a353a0e 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -40,6 +40,9 @@ Core and Builtins
 Library
 -------
 
+- Issue #12326: sys.platform is now always 'linux2' on Linux, even if Python
+  is compiled on Linux 3.
+
 - Issue #9173: Let shutil._make_archive work if the logger argument is None.
 
 - Issue #12650: Fix a race condition where a subprocess.Popen could leak
index 3af5eeb3541278edc524b547c317ad35af9ae0fd..99a7c718bafebdffc9619797ec08f6f295ae32ea 100755 (executable)
--- a/configure
+++ b/configure
@@ -2995,6 +2995,7 @@ then
        MACHDEP="$ac_md_system$ac_md_release"
 
        case $MACHDEP in
+       linux*) MACHDEP="linux2";;
        cygwin*) MACHDEP="cygwin";;
        darwin*) MACHDEP="darwin";;
        atheos*) MACHDEP="atheos";;
index 139b21b4f1011b4b184de73f8d47ca02a45fc5e2..acd35d843ddcc08d7402c6b0187b66aa3d15f0e8 100644 (file)
@@ -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";;