]> granicus.if.org Git - python/commitdiff
remove IRIX support (closes bpo-31341) (#3310)
authorBenjamin Peterson <benjamin@python.org>
Mon, 4 Sep 2017 23:36:05 +0000 (16:36 -0700)
committerGitHub <noreply@github.com>
Mon, 4 Sep 2017 23:36:05 +0000 (16:36 -0700)
See PEP 11.

16 files changed:
Doc/distutils/apiref.rst
Doc/library/sysconfig.rst
Lib/distutils/tests/test_unixccompiler.py
Lib/distutils/unixccompiler.py
Lib/distutils/util.py
Lib/sysconfig.py
Lib/test/test_pty.py
Lib/uuid.py
Misc/NEWS.d/next/Build/2017-09-04-14-43-46.bpo-31341.XLuZFk.rst [new file with mode: 0644]
Modules/Setup.dist
Modules/fpectlmodule.c
Modules/socketmodule.c
Tools/scripts/objgraph.py
configure
configure.ac
pyconfig.h.in

index b5b7731074c2ca36c2554cf4ceeade1c70d55949..622c7d1708f3695707d4d8dbca8d48ffba7f63af 100644 (file)
@@ -1086,19 +1086,16 @@ other utility module.
 
    Return a string that identifies the current platform.  This is used mainly to
    distinguish platform-specific build directories and platform-specific built
-   distributions.  Typically includes the OS name and version and the architecture
-   (as supplied by 'os.uname()'), although the exact information included depends
-   on the OS; eg. for IRIX the architecture isn't particularly important (IRIX only
-   runs on SGI hardware), but for Linux the kernel version isn't particularly
-   important.
+   distributions.  Typically includes the OS name and version and the
+   architecture (as supplied by 'os.uname()'), although the exact information
+   included depends on the OS; e.g., on Linux, the kernel version isn't
+   particularly important.
 
    Examples of returned values:
 
    * ``linux-i586``
    * ``linux-alpha``
    * ``solaris-2.6-sun4u``
-   * ``irix-5.3``
-   * ``irix64-6.2``
 
    For non-POSIX platforms, currently just returns ``sys.platform``.
 
index f066a765d00ec72dc676972398b5e5b809fa9821..84f56463a1151ad7b149233aeb849a1b93beea08 100644 (file)
@@ -173,18 +173,15 @@ Other functions
 
    This is used mainly to distinguish platform-specific build directories and
    platform-specific built distributions.  Typically includes the OS name and
-   version and the architecture (as supplied by :func:`os.uname`), although the
-   exact information included depends on the OS; e.g. for IRIX the architecture
-   isn't particularly important (IRIX only runs on SGI hardware), but for Linux
-   the kernel version isn't particularly important.
+   version and the architecture (as supplied by 'os.uname()'), although the
+   exact information included depends on the OS; e.g., on Linux, the kernel
+   version isn't particularly important.
 
    Examples of returned values:
 
    - linux-i586
    - linux-alpha (?)
    - solaris-2.6-sun4u
-   - irix-5.3
-   - irix64-6.2
 
    Windows will return one of:
 
index efba27e1c8a0ab1604d18656960db83464e44b4e..eef702cf0180910a9a920ef7caea021793c57a7b 100644 (file)
@@ -51,14 +51,6 @@ class UnixCCompilerTestCase(unittest.TestCase):
 
         sysconfig.get_config_var = old_gcv
 
-        # irix646
-        sys.platform = 'irix646'
-        self.assertEqual(self.cc.rpath_foo(), ['-rpath', '/foo'])
-
-        # osf1V5
-        sys.platform = 'osf1V5'
-        self.assertEqual(self.cc.rpath_foo(), ['-rpath', '/foo'])
-
         # GCC GNULD
         sys.platform = 'bar'
         def gcv(v):
index 3f321c28dc3b41dadebf88d0ab620cf0cdc1624d..ab4d4de15661985db84e06b552ded1d82bf7caa0 100644 (file)
@@ -233,8 +233,6 @@ class UnixCCompiler(CCompiler):
             if self._is_gcc(compiler):
                 return ["-Wl,+s", "-L" + dir]
             return ["+s", "-L" + dir]
-        elif sys.platform[:7] == "irix646" or sys.platform[:6] == "osf1V5":
-            return ["-rpath", dir]
         else:
             if self._is_gcc(compiler):
                 # gcc on non-GNU systems does not need -Wl, but can
index fdcf6fabae2bc74a8d1e6b8504957187121237cd..b8a69114c8f6051c06514bec49dca82f8d3c2779 100644 (file)
@@ -16,21 +16,17 @@ from distutils import log
 from distutils.errors import DistutilsByteCompileError
 
 def get_platform ():
-    """Return a string that identifies the current platform.  This is used
-    mainly to distinguish platform-specific build directories and
-    platform-specific built distributions.  Typically includes the OS name
-    and version and the architecture (as supplied by 'os.uname()'),
-    although the exact information included depends on the OS; eg. for IRIX
-    the architecture isn't particularly important (IRIX only runs on SGI
-    hardware), but for Linux the kernel version isn't particularly
-    important.
+    """Return a string that identifies the current platform.  This is used mainly to
+    distinguish platform-specific build directories and platform-specific built
+    distributions.  Typically includes the OS name and version and the
+    architecture (as supplied by 'os.uname()'), although the exact information
+    included depends on the OS; eg. on Linux, the kernel version isn't
+    particularly important.
 
     Examples of returned values:
        linux-i586
        linux-alpha (?)
        solaris-2.6-sun4u
-       irix-5.3
-       irix64-6.2
 
     Windows will return one of:
        win-amd64 (64bit Windows on AMD64 (aka x86_64, Intel64, EM64T, etc)
@@ -38,6 +34,7 @@ def get_platform ():
        win32 (all others - specifically, sys.platform is returned)
 
     For other non-POSIX platforms, currently just returns 'sys.platform'.
+
     """
     if os.name == 'nt':
         # sniff sys.version for architecture.
@@ -87,8 +84,6 @@ def get_platform ():
             bitness = {2147483647:"32bit", 9223372036854775807:"64bit"}
             machine += ".%s" % bitness[sys.maxsize]
         # fall through to standard osname-release-machine representation
-    elif osname[:4] == "irix":              # could be "irix64"!
-        return "%s-%s" % (osname, release)
     elif osname[:3] == "aix":
         return "%s-%s.%s" % (osname, version, release)
     elif osname[:6] == "cygwin":
index e6618b1d5182ca23879ac040cf5a7b6c83357aee..fc3e03b2a2dbb064a48ab2d79e6eaed5734a3b6c 100644 (file)
@@ -599,19 +599,15 @@ def get_platform():
     """Return a string that identifies the current platform.
 
     This is used mainly to distinguish platform-specific build directories and
-    platform-specific built distributions.  Typically includes the OS name
-    and version and the architecture (as supplied by 'os.uname()'),
-    although the exact information included depends on the OS; eg. for IRIX
-    the architecture isn't particularly important (IRIX only runs on SGI
-    hardware), but for Linux the kernel version isn't particularly
-    important.
+    platform-specific built distributions.  Typically includes the OS name and
+    version and the architecture (as supplied by 'os.uname()'), although the
+    exact information included depends on the OS; on Linux, the kernel version
+    isn't particularly important.
 
     Examples of returned values:
        linux-i586
        linux-alpha (?)
        solaris-2.6-sun4u
-       irix-5.3
-       irix64-6.2
 
     Windows will return one of:
        win-amd64 (64bit Windows on AMD64 (aka x86_64, Intel64, EM64T, etc)
@@ -619,6 +615,7 @@ def get_platform():
        win32 (all others - specifically, sys.platform is returned)
 
     For other non-POSIX platforms, currently just returns 'sys.platform'.
+
     """
     if os.name == 'nt':
         # sniff sys.version for architecture.
@@ -666,8 +663,6 @@ def get_platform():
             bitness = {2147483647:"32bit", 9223372036854775807:"64bit"}
             machine += ".%s" % bitness[sys.maxsize]
         # fall through to standard osname-release-machine representation
-    elif osname[:4] == "irix":              # could be "irix64"!
-        return "%s-%s" % (osname, release)
     elif osname[:3] == "aix":
         return "%s-%s.%s" % (osname, version, release)
     elif osname[:6] == "cygwin":
index 15f88e4fcd79848042717d3ea60741189fac4710..b6e2ed51f615a017e2df2dc490f31a87ec673be2 100644 (file)
@@ -24,12 +24,12 @@ else:
 
 
 def normalize_output(data):
-    # Some operating systems do conversions on newline.  We could possibly
-    # fix that by doing the appropriate termios.tcsetattr()s.  I couldn't
-    # figure out the right combo on Tru64 and I don't have an IRIX box.
-    # So just normalize the output and doc the problem O/Ses by allowing
-    # certain combinations for some platforms, but avoid allowing other
-    # differences (like extra whitespace, trailing garbage, etc.)
+    # Some operating systems do conversions on newline.  We could possibly fix
+    # that by doing the appropriate termios.tcsetattr()s.  I couldn't figure out
+    # the right combo on Tru64.  So, just normalize the output and doc the
+    # problem O/Ses by allowing certain combinations for some platforms, but
+    # avoid allowing other differences (like extra whitespace, trailing garbage,
+    # etc.)
 
     # This is about the best we can do without getting some feedback
     # from someone more knowledgable.
@@ -38,7 +38,6 @@ def normalize_output(data):
     if data.endswith(b'\r\r\n'):
         return data.replace(b'\r\r\n', b'\n')
 
-    # IRIX apparently turns \n into \r\n.
     if data.endswith(b'\r\n'):
         return data.replace(b'\r\n', b'\n')
 
index d4259ae0b3bd676338fd979b18c243d02ac4316d..15a81f5c18b66b09668055161c35fbce4dd342c7 100644 (file)
@@ -399,7 +399,7 @@ def _lanscan_getnode():
 
 def _netstat_getnode():
     """Get the hardware address on Unix by running netstat."""
-    # This might work on AIX, Tru64 UNIX and presumably on IRIX.
+    # This might work on AIX, Tru64 UNIX.
     try:
         proc = _popen('netstat', '-ia')
         if not proc:
diff --git a/Misc/NEWS.d/next/Build/2017-09-04-14-43-46.bpo-31341.XLuZFk.rst b/Misc/NEWS.d/next/Build/2017-09-04-14-43-46.bpo-31341.XLuZFk.rst
new file mode 100644 (file)
index 0000000..1429d8b
--- /dev/null
@@ -0,0 +1 @@
+Per PEP 11, support for the IRIX operating system was removed.
index 97c36dbd5d40bdd55f5d125063042278a5d452ff..dd533ef5c9064552402f3d8c5cdf31e66e99540d 100644 (file)
@@ -350,9 +350,6 @@ _symtable symtablemodule.c
 # The library to link fpectl with is platform specific.
 # Choose *one* of the options below for fpectl:
 
-# For SGI IRIX (tested on 5.3):
-#fpectl fpectlmodule.c -lfpe
-
 # For Solaris with SunPro compiler (tested on Solaris 2.5 with SunPro C 4.2):
 # (Without the compiler you don't have -lsunmath.)
 #fpectl fpectlmodule.c -R/opt/SUNWspro/lib -lsunmath -lm
index 8e058037b0deef737d6775c215168692fbd71ccc..404f69269aa4b850de3b1dcace5e1dcbac71a05e 100644 (file)
@@ -111,29 +111,8 @@ static void fpe_reset(Sigfunc *handler)
      * handler for SIGFPE to the given handler.
      */
 
-/*-- IRIX -----------------------------------------------------------------*/
-#if defined(sgi)
-    /* See man page on handle_sigfpes -- must link with -lfpe
-     * My usage doesn't follow the man page exactly.  Maybe somebody
-     * else can explain handle_sigfpes to me....
-     * cc -c -I/usr/local/python/include fpectlmodule.c
-     * ld -shared -o fpectlmodule.so fpectlmodule.o -lfpe
-     */
-#include <sigfpe.h>
-    typedef void user_routine (unsigned[5], int[2]);
-    typedef void abort_routine (unsigned long);
-    handle_sigfpes(_OFF, 0,
-                 (user_routine *)0,
-                 _TURN_OFF_HANDLER_ON_ERROR,
-                 NULL);
-    handle_sigfpes(_ON, _EN_OVERFL | _EN_DIVZERO | _EN_INVALID,
-                 (user_routine *)0,
-                 _ABORT_ON_ERROR,
-                 NULL);
-    PyOS_setsig(SIGFPE, handler);
-
 /*-- SunOS and Solaris ----------------------------------------------------*/
-#elif defined(sun)
+#if defined(sun)
     /* References: ieee_handler, ieee_sun, ieee_functions, and ieee_flags
        man pages (SunOS or Solaris)
        cc -c -I/usr/local/python/include fpectlmodule.c
index beadecfad50ec9e22f8e9ad1eb9beea2a6f140f4..37626e67cb0b60135ff49b90fad15b2a0676b6b7 100644 (file)
@@ -268,10 +268,8 @@ http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libc/net/getaddrinfo.c.diff?r1=1.82&
 #include <netdb.h>
 #endif
 
-/* Irix 6.5 fails to define this variable at all. This is needed
-   for both GCC and SGI's compiler. I'd say that the SGI headers
-   are just busted. Same thing for Solaris. */
-#if (defined(__sgi) || defined(sun)) && !defined(INET_ADDRSTRLEN)
+/* Solaris fails to define this variable at all. */
+#if defined(sun) && !defined(INET_ADDRSTRLEN)
 #define INET_ADDRSTRLEN 16
 #endif
 
index 1e1fce07dd5e3bb5d96347d627a9786fc3008a4d..3bb1712a9dcf23545697e0e9911bf7474d966693 100755 (executable)
@@ -2,8 +2,8 @@
 
 # objgraph
 #
-# Read "nm -o" input (on IRIX: "nm -Bo") of a set of libraries or modules
-# and print various interesting listings, such as:
+# Read "nm -o" input of a set of libraries or modules and print various
+# interesting listings, such as:
 #
 # - which names are used but not defined in the set (and used where),
 # - which names are defined in the set (and where),
@@ -15,7 +15,7 @@
 # -d: print callees per objectfile
 # -u: print usage of undefined symbols
 # If none of -cdu is specified, all are assumed.
-# Use "nm -o" to generate the input (on IRIX: "nm -Bo"),
+# Use "nm -o" to generate the input
 # e.g.: nm -o /lib/libc.a | objgraph
 
 
@@ -161,7 +161,7 @@ def main():
         print('-d: print callees per objectfile')
         print('-u: print usage of undefined symbols')
         print('If none of -cdu is specified, all are assumed.')
-        print('Use "nm -o" to generate the input (on IRIX: "nm -Bo"),')
+        print('Use "nm -o" to generate the input')
         print('e.g.: nm -o /lib/libc.a | objgraph')
         return 1
     optu = optc = optd = 0
index 5b742b884dc7484ffa53e878025e9ce6ac51d5f2..d2766bc435dd2f945e5b4a5b46af35bd03f4cddd 100755 (executable)
--- a/configure
+++ b/configure
@@ -2993,12 +2993,6 @@ $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
 $as_echo "#define __BSD_VISIBLE 1" >>confdefs.h
 
 
-# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
-# u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
-
-$as_echo "#define _BSD_TYPES 1" >>confdefs.h
-
-
 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
 # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
 # them.
@@ -3298,7 +3292,6 @@ then
        linux*) MACHDEP="linux";;
        cygwin*) MACHDEP="cygwin";;
        darwin*) MACHDEP="darwin";;
-       irix646) MACHDEP="irix6";;
        '')     MACHDEP="unknown";;
     esac
 fi
@@ -9136,7 +9129,7 @@ fi
 $as_echo "$SHLIB_SUFFIX" >&6; }
 
 # LDSHARED is the ld *command* used to create shared library
-# -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
+# -- "cc -G" on SunOS 5.x.
 # (Shared libraries in this instance are shared modules to be loaded into
 # Python, as opposed to building Python itself as a shared library.)
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDSHARED" >&5
@@ -9148,8 +9141,6 @@ then
                BLDSHARED="Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
                LDSHARED="\$(LIBPL)/ld_so_aix \$(CC) -bI:\$(LIBPL)/python.exp"
                ;;
-       IRIX/5*) LDSHARED="ld -shared";;
-       IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
        SunOS/5*)
                if test "$GCC" = "yes" ; then
                        LDSHARED='$(CC) -shared'
@@ -9309,10 +9300,6 @@ then
                then CCSHARED="-fPIC"
                else CCSHARED="-Kpic -belf"
                fi;;
-       IRIX*/6*)  case $CC in
-                  *gcc*) CCSHARED="-shared";;
-                  *) CCSHARED="";;
-                  esac;;
        esac
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCSHARED" >&5
index 57f4492e48482cae3c88d973482762dee04465a7..4ceeea8d89c65295748462dd03c76b86cc71c767 100644 (file)
@@ -133,10 +133,6 @@ AC_DEFINE(_NETBSD_SOURCE, 1, [Define on NetBSD to activate all library features]
 # them.
 AC_DEFINE(__BSD_VISIBLE, 1, [Define on FreeBSD to activate all library features])
 
-# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
-# u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
-AC_DEFINE(_BSD_TYPES, 1, [Define on Irix to enable u_int])
-
 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
 # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
 # them.
@@ -406,7 +402,6 @@ then
        linux*) MACHDEP="linux";;
        cygwin*) MACHDEP="cygwin";;
        darwin*) MACHDEP="darwin";;
-       irix646) MACHDEP="irix6";;
        '')     MACHDEP="unknown";;
     esac
 fi
@@ -2402,7 +2397,7 @@ fi
 AC_MSG_RESULT($SHLIB_SUFFIX)
 
 # LDSHARED is the ld *command* used to create shared library
-# -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
+# -- "cc -G" on SunOS 5.x.
 # (Shared libraries in this instance are shared modules to be loaded into
 # Python, as opposed to building Python itself as a shared library.)
 AC_MSG_CHECKING(LDSHARED)
@@ -2413,8 +2408,6 @@ then
                BLDSHARED="Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
                LDSHARED="\$(LIBPL)/ld_so_aix \$(CC) -bI:\$(LIBPL)/python.exp"
                ;;
-       IRIX/5*) LDSHARED="ld -shared";;
-       IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
        SunOS/5*)
                if test "$GCC" = "yes" ; then
                        LDSHARED='$(CC) -shared'
@@ -2572,10 +2565,6 @@ then
                then CCSHARED="-fPIC"
                else CCSHARED="-Kpic -belf"
                fi;;
-       IRIX*/6*)  case $CC in
-                  *gcc*) CCSHARED="-shared";;
-                  *) CCSHARED="";;
-                  esac;;
        esac
 fi
 AC_MSG_RESULT($CCSHARED)
index a524204e7555cac22777afa69f07326b42cc3386..2efd768a96a78884889a88b236b0d2cc78205242 100644 (file)
 /* Define on OpenBSD to activate all library features */
 #undef _BSD_SOURCE
 
-/* Define on Irix to enable u_int */
-#undef _BSD_TYPES
-
 /* Define on Darwin to activate all library features */
 #undef _DARWIN_C_SOURCE