--- a/components/python/python35/patches/03-setup.patch Thu Jul 21 12:52:12 2016 -0700
+++ b/components/python/python35/patches/03-setup.patch Thu Jul 21 12:52:32 2016 -0700
@@ -1,10 +1,10 @@
This patch modifies the setup script to support Solaris.
As it is Solaris-specific, it is not suitable for upstream.
---- Python-3.5.0/setup.py.~2~ 2015-04-20 13:10:20.522357068 -0700
-+++ Python-3.5.0/setup.py 2015-04-20 13:10:20.553743713 -0700
-@@ -465,12 +465,15 @@
- os.unlink(tmpfile)
+--- 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 @@
+ return ['m']
def detect_modules(self):
- # Ensure that /usr/local is always used, but the local build
@@ -24,7 +24,7 @@
# only change this for cross builds for 3.3, issues on Mageia
if cross_compiling:
self.add_gcc_paths()
-@@ -756,6 +759,13 @@
+@@ -786,6 +789,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,
-@@ -779,7 +789,8 @@
+@@ -809,7 +819,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',
-@@ -1315,6 +1326,10 @@
+@@ -1345,6 +1356,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,
-@@ -1339,10 +1352,32 @@
+@@ -1369,10 +1384,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')
-@@ -1938,7 +1973,7 @@
+@@ -1969,7 +2006,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.