components/python/python35/patches/03-setup.patch
changeset 7648 20e09cf3cfaa
parent 6447 56a2f066191a
--- a/components/python/python35/patches/03-setup.patch	Mon Feb 06 13:55:35 2017 -0800
+++ b/components/python/python35/patches/03-setup.patch	Mon Feb 06 13:54:36 2017 -0800
@@ -1,9 +1,9 @@
 This patch modifies the setup script to support Solaris.
 As it is Solaris-specific, it is not suitable for upstream.
 
---- Python-3.5.2/setup.py.~2~	2016-07-08 06:42:55.956132475 -0700
-+++ Python-3.5.2/setup.py	2016-07-08 06:42:55.983129138 -0700
-@@ -488,12 +488,15 @@
+--- Python-3.5.3/setup.py.~2~	2017-01-17 11:05:22.740312434 +0000
++++ Python-3.5.3/setup.py	2017-01-17 11:05:22.765910178 +0000
+@@ -487,12 +487,15 @@
              return ['m']
  
      def detect_modules(self):
@@ -24,7 +24,7 @@
          # only change this for cross builds for 3.3, issues on Mageia
          if cross_compiling:
              self.add_gcc_paths()
-@@ -786,6 +789,13 @@
+@@ -785,6 +788,13 @@
                                                       ['/usr/lib/termcap'],
                                                       'termcap'):
                  readline_libs.append('termcap')
@@ -38,7 +38,7 @@
              exts.append( Extension('readline', ['readline.c'],
                                     library_dirs=['/usr/lib/termcap'],
                                     extra_link_args=readline_extra_link_args,
-@@ -809,7 +819,8 @@
+@@ -808,7 +818,8 @@
  
          # socket(2)
          exts.append( Extension('_socket', ['socketmodule.c'],
@@ -48,7 +48,7 @@
          # Detect SSL support for the socket module (via _ssl)
          search_for_ssl_incs_in = [
                                '/usr/local/ssl/include',
-@@ -1345,6 +1356,10 @@
+@@ -1344,6 +1355,10 @@
              curses_defines.append(('_XOPEN_SOURCE_EXTENDED', '1'))
  
          if curses_library.startswith('ncurses'):
@@ -59,7 +59,7 @@
              curses_libs = [curses_library]
              exts.append( Extension('_curses', ['_cursesmodule.c'],
                                     include_dirs=curses_includes,
-@@ -1369,10 +1384,32 @@
+@@ -1368,10 +1383,32 @@
          # If the curses module is enabled, check for the panel module
          if (module_enabled(exts, '_curses') and
              self.compiler.find_library_file(lib_dirs, panel_library)):
@@ -93,7 +93,7 @@
          else:
              missing.append('_curses_panel')
  
-@@ -1969,7 +2006,7 @@
+@@ -1968,7 +2005,7 @@
              # this option. If you want to compile ctypes with the Sun
              # compiler, please research a proper solution, instead of
              # finding some -z option for the Sun compiler.