components/python/python34/patches/03-setup.patch
changeset 2183 5d00686e81da
parent 1953 5c1face45dc8
child 3759 6f5b34e14c5c
equal deleted inserted replaced
2182:9f1202f3ddbd 2183:5d00686e81da
     1 This patch modifies the setup script to support Solaris.
     1 This patch modifies the setup script to support Solaris.
     2 As it is Solaris-specific, it is not suitable for upstream.
     2 As it is Solaris-specific, it is not suitable for upstream.
     3 
     3 
     4 --- Python-3.4.1/setup.py.~2~	2014-05-27 10:58:02.374409887 -0700
     4 --- Python-3.4.2/setup.py.~2~	2014-09-22 12:58:20.756337175 -0700
     5 +++ Python-3.4.1/setup.py	2014-05-27 10:58:02.415203920 -0700
     5 +++ Python-3.4.2/setup.py	2014-09-22 12:58:20.806201115 -0700
     6 @@ -728,6 +728,13 @@
     6 @@ -736,6 +736,13 @@
     7                                                       ['/usr/lib/termcap'],
     7                                                       ['/usr/lib/termcap'],
     8                                                       'termcap'):
     8                                                       'termcap'):
     9                  readline_libs.append('termcap')
     9                  readline_libs.append('termcap')
    10 +
    10 +
    11 +            if host_platform == 'sunos5':
    11 +            if host_platform == 'sunos5':
    15 +                readline_libs = ()
    15 +                readline_libs = ()
    16 +
    16 +
    17              exts.append( Extension('readline', ['readline.c'],
    17              exts.append( Extension('readline', ['readline.c'],
    18                                     library_dirs=['/usr/lib/termcap'],
    18                                     library_dirs=['/usr/lib/termcap'],
    19                                     extra_link_args=readline_extra_link_args,
    19                                     extra_link_args=readline_extra_link_args,
    20 @@ -1910,7 +1917,7 @@
    20 @@ -1918,7 +1925,7 @@
    21              # this option. If you want to compile ctypes with the Sun
    21              # this option. If you want to compile ctypes with the Sun
    22              # compiler, please research a proper solution, instead of
    22              # compiler, please research a proper solution, instead of
    23              # finding some -z option for the Sun compiler.
    23              # finding some -z option for the Sun compiler.
    24 -            extra_link_args.append('-mimpure-text')
    24 -            extra_link_args.append('-mimpure-text')
    25 +            pass
    25 +            pass