Blame SOURCES/python-2.7.1-config.patch

ae2451
--- Python-2.7.4/Modules/Setup.dist.rhconfig	2013-04-06 16:02:34.000000000 +0200
ae2451
+++ Python-2.7.4/Modules/Setup.dist	2013-04-08 10:05:16.369985654 +0200
ae2451
@@ -153,7 +153,7 @@ GLHACK=-Dclear=__GLclear
ae2451
 # modules are to be built as shared libraries (see above for more
ae2451
 # detail; also note that *static* reverses this effect):
ae2451
 
ae2451
-#*shared*
ae2451
+*shared*
ae2451
 
ae2451
 # GNU readline.  Unlike previous Python incarnations, GNU readline is
ae2451
 # now incorporated in an optional module, configured in the Setup file
ae2451
@@ -163,77 +163,77 @@ GLHACK=-Dclear=__GLclear
ae2451
 # it, depending on your system -- see the GNU readline instructions.
ae2451
 # It's okay for this to be a shared library, too.
ae2451
 
ae2451
-#readline readline.c -lreadline -ltermcap
ae2451
+readline readline.c -lreadline -ltermcap
ae2451
 
ae2451
 
ae2451
 # Modules that should always be present (non UNIX dependent):
ae2451
 
ae2451
-#array arraymodule.c	# array objects
ae2451
-#cmath cmathmodule.c _math.c # -lm # complex math library functions
ae2451
-#math mathmodule.c _math.c # -lm # math library functions, e.g. sin()
ae2451
-#_struct _struct.c	# binary structure packing/unpacking
ae2451
-#time timemodule.c # -lm # time operations and variables
ae2451
-#operator operator.c	# operator.add() and similar goodies
ae2451
-#_testcapi _testcapimodule.c    # Python C API test module
ae2451
-#_random _randommodule.c	# Random number generator
ae2451
-#_collections _collectionsmodule.c # Container types
ae2451
+array arraymodule.c	# array objects
ae2451
+cmath cmathmodule.c _math.c # -lm # complex math library functions
ae2451
+math mathmodule.c _math.c # -lm # math library functions, e.g. sin()
ae2451
+_struct _struct.c	# binary structure packing/unpacking
ae2451
+time timemodule.c # -lm # time operations and variables
ae2451
+operator operator.c	# operator.add() and similar goodies
ae2451
+_testcapi _testcapimodule.c    # Python C API test module
ae2451
+_random _randommodule.c	# Random number generator
ae2451
+_collections _collectionsmodule.c # Container types
ae2451
 #_heapq _heapqmodule.c		# Heapq type
ae2451
-#itertools itertoolsmodule.c	# Functions creating iterators for efficient looping 
ae2451
-#strop stropmodule.c		# String manipulations
ae2451
-#_functools _functoolsmodule.c	# Tools for working with functions and callable objects
ae2451
+itertools itertoolsmodule.c	# Functions creating iterators for efficient looping 
ae2451
+strop stropmodule.c		# String manipulations
ae2451
+_functools _functoolsmodule.c	# Tools for working with functions and callable objects
ae2451
 #_elementtree -I$(srcdir)/Modules/expat -DHAVE_EXPAT_CONFIG_H -DUSE_PYEXPAT_CAPI _elementtree.c	# elementtree accelerator
ae2451
 #_pickle _pickle.c	# pickle accelerator
ae2451
 #datetime datetimemodule.c	# date/time type
ae2451
-#_bisect _bisectmodule.c	# Bisection algorithms
ae2451
+_bisect _bisectmodule.c	# Bisection algorithms
ae2451
 
ae2451
-#unicodedata unicodedata.c    # static Unicode character database
ae2451
+unicodedata unicodedata.c    # static Unicode character database
ae2451
 
ae2451
 # access to ISO C locale support
ae2451
-#_locale _localemodule.c  # -lintl
ae2451
+_locale _localemodule.c  # -lintl
ae2451
 
ae2451
 # Standard I/O baseline
ae2451
 #_io -I$(srcdir)/Modules/_io _io/bufferedio.c _io/bytesio.c _io/fileio.c _io/iobase.c _io/_iomodule.c _io/stringio.c _io/textio.c
ae2451
 
ae2451
 
ae2451
 # Modules with some UNIX dependencies -- on by default:
ae2451
 # (If you have a really backward UNIX, select and socket may not be
ae2451
 # supported...)
ae2451
 
ae2451
-#fcntl fcntlmodule.c	# fcntl(2) and ioctl(2)
ae2451
-#spwd spwdmodule.c		# spwd(3) 
ae2451
-#grp grpmodule.c		# grp(3)
ae2451
-#select selectmodule.c	# select(2); not on ancient System V
ae2451
+fcntl fcntlmodule.c	# fcntl(2) and ioctl(2)
ae2451
+spwd spwdmodule.c		# spwd(3) 
ae2451
+grp grpmodule.c		# grp(3)
ae2451
+select selectmodule.c	# select(2); not on ancient System V
ae2451
 
ae2451
 # Memory-mapped files (also works on Win32).
ae2451
-#mmap mmapmodule.c
ae2451
+mmap mmapmodule.c
ae2451
 
ae2451
 # CSV file helper
ae2451
-#_csv _csv.c
ae2451
+_csv _csv.c
ae2451
 
ae2451
 # Socket module helper for socket(2)
ae2451
-#_socket socketmodule.c timemodule.c
ae2451
+_socket socketmodule.c timemodule.c
ae2451
 
ae2451
 # Socket module helper for SSL support; you must comment out the other
ae2451
 # socket line above, and possibly edit the SSL variable:
ae2451
 #SSL=/usr/local/ssl
ae2451
-#_ssl _ssl.c \
ae2451
-#	-DUSE_SSL -I$(SSL)/include -I$(SSL)/include/openssl \
ae2451
-#	-L$(SSL)/lib -lssl -lcrypto
ae2451
+_ssl _ssl.c \
ae2451
+	-DUSE_SSL -I$(SSL)/include -I$(SSL)/include/openssl \
ae2451
+	-L$(SSL)/lib -lssl -lcrypto
ae2451
 
ae2451
 # The crypt module is now disabled by default because it breaks builds
ae2451
 # on many systems (where -lcrypt is needed), e.g. Linux (I believe).
ae2451
 #
ae2451
 # First, look at Setup.config; configure may have set this for you.
ae2451
 
ae2451
-#crypt cryptmodule.c # -lcrypt	# crypt(3); needs -lcrypt on some systems
ae2451
+crypt cryptmodule.c # -lcrypt	# crypt(3); needs -lcrypt on some systems
ae2451
 
ae2451
 
ae2451
 # Some more UNIX dependent modules -- off by default, since these
ae2451
 # are not supported by all UNIX systems:
ae2451
 
ae2451
-#nis nismodule.c -lnsl	# Sun yellow pages -- not everywhere
ae2451
-#termios termios.c	# Steen Lumholt's termios module
ae2451
-#resource resource.c	# Jeremy Hylton's rlimit interface
ae2451
+nis nismodule.c -lnsl	# Sun yellow pages -- not everywhere
ae2451
+termios termios.c	# Steen Lumholt's termios module
ae2451
+resource resource.c	# Jeremy Hylton's rlimit interface
ae2451
 
ae2451
 
ae2451
 # Multimedia modules -- off by default.
ae2451
@@ -238,8 +238,8 @@ GLHACK=-Dclear=__GLclear
ae2451
 # #993173 says audioop works on 64-bit platforms, though.
ae2451
 # These represent audio samples or images as strings:
ae2451
 
ae2451
-#audioop audioop.c	# Operations on audio samples
ae2451
-#imageop imageop.c	# Operations on images
ae2451
+audioop audioop.c	# Operations on audio samples
ae2451
+imageop imageop.c	# Operations on images
ae2451
 
ae2451
 
ae2451
 # Note that the _md5 and _sha modules are normally only built if the
ae2451
@@ -249,14 +249,14 @@ GLHACK=-Dclear=__GLclear
ae2451
 # Message-Digest Algorithm, described in RFC 1321.  The necessary files
ae2451
 # md5.c and md5.h are included here.
ae2451
 
ae2451
-#_md5 md5module.c md5.c
ae2451
+_md5 md5module.c md5.c
ae2451
 
ae2451
 
ae2451
 # The _sha module implements the SHA checksum algorithms.
ae2451
 # (NIST's Secure Hash Algorithms.)
ae2451
-#_sha shamodule.c
ae2451
-#_sha256 sha256module.c
ae2451
-#_sha512 sha512module.c
ae2451
+_sha shamodule.c
ae2451
+_sha256 sha256module.c
ae2451
+_sha512 sha512module.c
ae2451
 
ae2451
 
ae2451
 # SGI IRIX specific modules -- off by default.
ae2451
@@ -303,12 +303,12 @@ GLHACK=-Dclear=__GLclear
ae2451
 # A Linux specific module -- off by default; this may also work on 
ae2451
 # some *BSDs.
ae2451
 
ae2451
-#linuxaudiodev linuxaudiodev.c
ae2451
+linuxaudiodev linuxaudiodev.c
ae2451
 
ae2451
 
ae2451
 # George Neville-Neil's timing module:
ae2451
 
ae2451
-#timing timingmodule.c
ae2451
+timing timingmodule.c
ae2451
 
ae2451
 
ae2451
 # The _tkinter module.
ae2451
@@ -323,7 +323,7 @@ GLHACK=-Dclear=__GLclear
ae2451
 # every system.
ae2451
 
ae2451
 # *** Always uncomment this (leave the leading underscore in!):
ae2451
-# _tkinter _tkinter.c tkappinit.c -DWITH_APPINIT \
ae2451
+_tkinter _tkinter.c tkappinit.c -DWITH_APPINIT \
ae2451
 # *** Uncomment and edit to reflect where your Tcl/Tk libraries are:
ae2451
 #	-L/usr/local/lib \
ae2451
 # *** Uncomment and edit to reflect where your Tcl/Tk headers are:
ae2451
@@ -333,7 +333,7 @@ GLHACK=-Dclear=__GLclear
ae2451
 # *** Or uncomment this for Solaris:
ae2451
 #	-I/usr/openwin/include \
ae2451
 # *** Uncomment and edit for Tix extension only:
ae2451
-#	-DWITH_TIX -ltix8.1.8.2 \
ae2451
+	-DWITH_TIX -ltix \
ae2451
 # *** Uncomment and edit for BLT extension only:
ae2451
 #	-DWITH_BLT -I/usr/local/blt/blt8.0-unoff/include -lBLT8.0 \
ae2451
 # *** Uncomment and edit for PIL (TkImaging) extension only:
ae2451
@@ -342,7 +342,7 @@ GLHACK=-Dclear=__GLclear
ae2451
 # *** Uncomment and edit for TOGL extension only:
ae2451
 #	-DWITH_TOGL togl.c \
ae2451
 # *** Uncomment and edit to reflect your Tcl/Tk versions:
ae2451
-#	-ltk8.2 -ltcl8.2 \
ae2451
+	-ltk -ltcl \
ae2451
 # *** Uncomment and edit to reflect where your X11 libraries are:
ae2451
 #	-L/usr/X11R6/lib \
ae2451
 # *** Or uncomment this for Solaris:
ae2451
@@ -352,7 +352,7 @@ GLHACK=-Dclear=__GLclear
ae2451
 # *** Uncomment for AIX:
ae2451
 #	-lld \
ae2451
 # *** Always uncomment this; X11 libraries to link with:
ae2451
-#	-lX11
ae2451
+	-lX11
ae2451
 
ae2451
 # Lance Ellinghaus's syslog module
ae2451
 #syslog syslogmodule.c		# syslog daemon interface
ae2451
@@ -374,7 +374,7 @@ GLHACK=-Dclear=__GLclear
ae2451
 # it is a highly experimental and dangerous device for calling
ae2451
 # *arbitrary* C functions in *arbitrary* shared libraries:
ae2451
 
ae2451
-#dl dlmodule.c
ae2451
+dl dlmodule.c
ae2451
 
ae2451
 
ae2451
 # Modules that provide persistent dictionary-like semantics.  You will
ae2451
@@ -397,7 +397,7 @@ GLHACK=-Dclear=__GLclear
ae2451
 #
ae2451
 # First, look at Setup.config; configure may have set this for you.
ae2451
 
ae2451
-#gdbm gdbmmodule.c -I/usr/local/include -L/usr/local/lib -lgdbm
ae2451
+gdbm gdbmmodule.c -lgdbm
ae2451
 
ae2451
 
ae2451
 # Sleepycat Berkeley DB interface.
ae2451
@@ -412,11 +412,9 @@ GLHACK=-Dclear=__GLclear
ae2451
 #
ae2451
 # Edit the variables DB and DBLIBVERto point to the db top directory
ae2451
 # and the subdirectory of PORT where you built it.
ae2451
-#DB=/usr/local/BerkeleyDB.4.0
ae2451
-#DBLIBVER=4.0
ae2451
-#DBINC=$(DB)/include
ae2451
-#DBLIB=$(DB)/lib
ae2451
-#_bsddb _bsddb.c -I$(DBINC) -L$(DBLIB) -ldb-$(DBLIBVER)
ae2451
+DBINC=/usr/include/libdb
ae2451
+DBLIB=/usr/lib
ae2451
+_bsddb _bsddb.c -I$(DBINC) -L$(DBLIB) -ldb
ae2451
 
ae2451
 # Historical Berkeley DB 1.85
ae2451
 #
ae2451
@@ -431,14 +430,14 @@ GLHACK=-Dclear=__GLclear
ae2451
 
ae2451
 
ae2451
 # Helper module for various ascii-encoders
ae2451
-#binascii binascii.c
ae2451
+binascii binascii.c
ae2451
 
ae2451
 # Fred Drake's interface to the Python parser
ae2451
-#parser parsermodule.c
ae2451
+parser parsermodule.c
ae2451
 
ae2451
 # cStringIO and cPickle
ae2451
-#cStringIO cStringIO.c
ae2451
-#cPickle cPickle.c
ae2451
+cStringIO cStringIO.c
ae2451
+cPickle cPickle.c
ae2451
 
ae2451
 
ae2451
 # Lee Busby's SIGFPE modules.
ae2451
@@ -461,7 +460,7 @@ GLHACK=-Dclear=__GLclear
ae2451
 # Andrew Kuchling's zlib module.
ae2451
 # This require zlib 1.1.3 (or later).
ae2451
 # See http://www.gzip.org/zlib/
ae2451
-#zlib zlibmodule.c -I$(prefix)/include -L$(exec_prefix)/lib -lz
ae2451
+zlib zlibmodule.c -I$(prefix)/include -L$(exec_prefix)/lib -lz
ae2451
 
ae2451
 # Interface to the Expat XML parser
ae2451
 #
ae2451
@@ -480,14 +479,14 @@ GLHACK=-Dclear=__GLclear
ae2451
 # Hye-Shik Chang's CJKCodecs
ae2451
 
ae2451
 # multibytecodec is required for all the other CJK codec modules
ae2451
-#_multibytecodec cjkcodecs/multibytecodec.c
ae2451
+_multibytecodec cjkcodecs/multibytecodec.c
ae2451
 
ae2451
-#_codecs_cn cjkcodecs/_codecs_cn.c
ae2451
-#_codecs_hk cjkcodecs/_codecs_hk.c
ae2451
-#_codecs_iso2022 cjkcodecs/_codecs_iso2022.c
ae2451
-#_codecs_jp cjkcodecs/_codecs_jp.c
ae2451
-#_codecs_kr cjkcodecs/_codecs_kr.c
ae2451
-#_codecs_tw cjkcodecs/_codecs_tw.c
ae2451
+_codecs_cn cjkcodecs/_codecs_cn.c
ae2451
+_codecs_hk cjkcodecs/_codecs_hk.c
ae2451
+_codecs_iso2022 cjkcodecs/_codecs_iso2022.c
ae2451
+_codecs_jp cjkcodecs/_codecs_jp.c
ae2451
+_codecs_kr cjkcodecs/_codecs_kr.c
ae2451
+_codecs_tw cjkcodecs/_codecs_tw.c
ae2451
 
ae2451
 # Example -- included for reference only:
ae2451
 # xx xxmodule.c