Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 500964
Collapse All | Expand All

(-)a/Lib/stat.py (-3 / +4 lines)
Lines 37-45 S_IFDIR = 0o040000 # directory Link Here
37
S_IFCHR  = 0o020000  # character device
37
S_IFCHR  = 0o020000  # character device
38
S_IFBLK  = 0o060000  # block device
38
S_IFBLK  = 0o060000  # block device
39
S_IFREG  = 0o100000  # regular file
39
S_IFREG  = 0o100000  # regular file
40
S_IFIFO  = 0o010000  # fifo (named pipe)
40
S_IFIFO  = 0o120000  # fifo (named pipe)
41
S_IFLNK  = 0o120000  # symbolic link
41
S_IFLNK  = 0o160000  # symbolic link
42
S_IFSOCK = 0o140000  # socket file
42
S_IFSOCK = 0o010000  # socket file
43
43
44
44
# Functions to test for each file type
45
# Functions to test for each file type
45
46
(-)a/Makefile.pre.in (+1 lines)
Lines 1227-1232 libainstall: all python-config Link Here
1227
	$(INSTALL_DATA) Modules/Setup $(DESTDIR)$(LIBPL)/Setup
1227
	$(INSTALL_DATA) Modules/Setup $(DESTDIR)$(LIBPL)/Setup
1228
	$(INSTALL_DATA) Modules/Setup.local $(DESTDIR)$(LIBPL)/Setup.local
1228
	$(INSTALL_DATA) Modules/Setup.local $(DESTDIR)$(LIBPL)/Setup.local
1229
	$(INSTALL_DATA) Modules/Setup.config $(DESTDIR)$(LIBPL)/Setup.config
1229
	$(INSTALL_DATA) Modules/Setup.config $(DESTDIR)$(LIBPL)/Setup.config
1230
	sed -i -e "s/@LOCALMODLIBS@/${LOCALMODLIBS}/" Misc/python.pc
1230
	$(INSTALL_DATA) Misc/python.pc $(DESTDIR)$(LIBPC)/python-$(VERSION).pc
1231
	$(INSTALL_DATA) Misc/python.pc $(DESTDIR)$(LIBPC)/python-$(VERSION).pc
1231
	$(INSTALL_SCRIPT) $(srcdir)/Modules/makesetup $(DESTDIR)$(LIBPL)/makesetup
1232
	$(INSTALL_SCRIPT) $(srcdir)/Modules/makesetup $(DESTDIR)$(LIBPL)/makesetup
1232
	$(INSTALL_SCRIPT) $(srcdir)/install-sh $(DESTDIR)$(LIBPL)/install-sh
1233
	$(INSTALL_SCRIPT) $(srcdir)/install-sh $(DESTDIR)$(LIBPL)/install-sh
(-)a/Misc/python.pc.in (-1 / +1 lines)
Lines 8-13 Name: Python Link Here
8
Description: Python library
8
Description: Python library
9
Requires: 
9
Requires: 
10
Version: @VERSION@
10
Version: @VERSION@
11
Libs.private: @LIBS@
12
Libs: -L${libdir} -lpython@VERSION@@ABIFLAGS@
11
Libs: -L${libdir} -lpython@VERSION@@ABIFLAGS@
12
Libs.private: @LOCALMODLIBS@ @LIBS@
13
Cflags: -I${includedir}/python@VERSION@@ABIFLAGS@
13
Cflags: -I${includedir}/python@VERSION@@ABIFLAGS@
(-)a/Modules/Setup.dist (-47 / +63 lines)
Lines 118-124 operator operator.c # operator.a Link Here
118
itertools itertoolsmodule.c    # Functions creating iterators for efficient looping 
118
itertools itertoolsmodule.c    # Functions creating iterators for efficient looping 
119
119
120
# access to ISO C locale support
120
# access to ISO C locale support
121
_locale _localemodule.c  # -lintl
121
_locale _localemodule.c -lintl -liconv -lpthread
122
122
123
# Standard I/O baseline
123
# Standard I/O baseline
124
_io -I$(srcdir)/Modules/_io _io/_iomodule.c _io/iobase.c _io/fileio.c _io/bytesio.c _io/bufferedio.c _io/textio.c _io/stringio.c
124
_io -I$(srcdir)/Modules/_io _io/_iomodule.c _io/iobase.c _io/fileio.c _io/bytesio.c _io/bufferedio.c _io/textio.c _io/stringio.c
Lines 157-226 faulthandler faulthandler.c Link Here
157
# it, depending on your system -- see the GNU readline instructions.
157
# it, depending on your system -- see the GNU readline instructions.
158
# It's okay for this to be a shared library, too.
158
# It's okay for this to be a shared library, too.
159
159
160
#readline readline.c -lreadline -ltermcap
160
readline readline.c -lreadline -lncurses
161
161
162
162
163
# Modules that should always be present (non UNIX dependent):
163
# Modules that should always be present (non UNIX dependent):
164
164
165
#array arraymodule.c	# array objects
165
array arraymodule.c	# array objects
166
#cmath cmathmodule.c _math.c # -lm # complex math library functions
166
cmath cmathmodule.c _math.c # -lm # complex math library functions
167
#math mathmodule.c _math.c # -lm # math library functions, e.g. sin()
167
math mathmodule.c _math.c # -lm # math library functions, e.g. sin()
168
#_struct _struct.c	# binary structure packing/unpacking
168
_struct _struct.c	# binary structure packing/unpacking
169
#time timemodule.c # -lm # time operations and variables
169
time timemodule.c # -lm # time operations and variables
170
#_weakref _weakref.c	# basic weak reference support
170
_weakref _weakref.c	# basic weak reference support
171
#_testcapi _testcapimodule.c    # Python C API test module
171
_testcapi _testcapimodule.c    # Python C API test module
172
#_random _randommodule.c	# Random number generator
172
_random _randommodule.c	# Random number generator
173
#atexit atexitmodule.c      # Register functions to be run at interpreter-shutdown
173
atexit atexitmodule.c      # Register functions to be run at interpreter-shutdown
174
#_elementtree -I$(srcdir)/Modules/expat -DHAVE_EXPAT_CONFIG_H -DUSE_PYEXPAT_CAPI _elementtree.c	# elementtree accelerator
174
_elementtree -I$(srcdir)/Modules/expat -DHAVE_EXPAT_CONFIG_H -DUSE_PYEXPAT_CAPI _elementtree.c	# elementtree accelerator
175
#_pickle _pickle.c	# pickle accelerator
175
_pickle _pickle.c	# pickle accelerator
176
#_datetime _datetimemodule.c	# datetime accelerator
176
_datetime _datetimemodule.c	# datetime accelerator
177
#_bisect _bisectmodule.c	# Bisection algorithms
177
_bisect _bisectmodule.c	# Bisection algorithms
178
#_heapq _heapqmodule.c	# Heap queue algorithm
178
_heapq _heapqmodule.c	# Heap queue algorithm
179
179
180
#unicodedata unicodedata.c    # static Unicode character database
180
unicodedata unicodedata.c    # static Unicode character database
181
181
182
182
183
# Modules with some UNIX dependencies -- on by default:
183
# Modules with some UNIX dependencies -- on by default:
184
# (If you have a really backward UNIX, select and socket may not be
184
# (If you have a really backward UNIX, select and socket may not be
185
# supported...)
185
# supported...)
186
186
187
#fcntl fcntlmodule.c	# fcntl(2) and ioctl(2)
187
fcntl fcntlmodule.c	# fcntl(2) and ioctl(2)
188
#spwd spwdmodule.c		# spwd(3) 
188
spwd spwdmodule.c		# spwd(3) 
189
#grp grpmodule.c		# grp(3)
189
grp grpmodule.c		# grp(3)
190
#select selectmodule.c	# select(2); not on ancient System V
190
select selectmodule.c	# select(2); not on ancient System V
191
191
192
# Memory-mapped files (also works on Win32).
192
# Memory-mapped files (also works on Win32).
193
#mmap mmapmodule.c
193
#mmap mmapmodule.c
194
194
195
# CSV file helper
195
# CSV file helper
196
#_csv _csv.c
196
_csv _csv.c
197
197
198
# Socket module helper for socket(2)
198
# Socket module helper for socket(2)
199
#_socket socketmodule.c
199
_socket socketmodule.c
200
200
201
# Socket module helper for SSL support; you must comment out the other
201
# Socket module helper for SSL support; you must comment out the other
202
# socket line above, and possibly edit the SSL variable:
202
# socket line above, and possibly edit the SSL variable:
203
#SSL=/usr/local/ssl
203
#SSL=/usr/local/ssl
204
#_ssl _ssl.c \
204
_ssl _ssl.c \
205
#	-DUSE_SSL -I$(SSL)/include -I$(SSL)/include/openssl \
205
	-DUSE_SSL \
206
#	-L$(SSL)/lib -lssl -lcrypto
206
	-lssl -lcrypto -lz
207
207
208
# The crypt module is now disabled by default because it breaks builds
208
# The crypt module is now disabled by default because it breaks builds
209
# on many systems (where -lcrypt is needed), e.g. Linux (I believe).
209
# on many systems (where -lcrypt is needed), e.g. Linux (I believe).
210
#
210
#
211
# First, look at Setup.config; configure may have set this for you.
211
# First, look at Setup.config; configure may have set this for you.
212
212
213
#_crypt _cryptmodule.c # -lcrypt	# crypt(3); needs -lcrypt on some systems
213
_crypt _cryptmodule.c # -lcrypt	# crypt(3); needs -lcrypt on some systems
214
214
215
215
216
# Some more UNIX dependent modules -- off by default, since these
216
# Some more UNIX dependent modules -- off by default, since these
217
# are not supported by all UNIX systems:
217
# are not supported by all UNIX systems:
218
218
219
#nis nismodule.c -lnsl	# Sun yellow pages -- not everywhere
219
#nis nismodule.c -lnsl	# Sun yellow pages -- not everywhere
220
#termios termios.c	# Steen Lumholt's termios module
220
termios termios.c	# Steen Lumholt's termios module
221
#resource resource.c	# Jeremy Hylton's rlimit interface
221
resource resource.c	# Jeremy Hylton's rlimit interface
222
222
223
#_posixsubprocess _posixsubprocess.c  # POSIX subprocess module helper
223
_posixsubprocess _posixsubprocess.c  # POSIX subprocess module helper
224
224
225
# Multimedia modules -- off by default.
225
# Multimedia modules -- off by default.
226
# These don't work for 64-bit platforms!!!
226
# These don't work for 64-bit platforms!!!
Lines 236-249 faulthandler faulthandler.c Link Here
236
# The _md5 module implements the RSA Data Security, Inc. MD5
236
# The _md5 module implements the RSA Data Security, Inc. MD5
237
# Message-Digest Algorithm, described in RFC 1321.
237
# Message-Digest Algorithm, described in RFC 1321.
238
238
239
#_md5 md5module.c
239
_md5 md5module.c
240
240
241
241
242
# The _sha module implements the SHA checksum algorithms.
242
# The _sha module implements the SHA checksum algorithms.
243
# (NIST's Secure Hash Algorithms.)
243
# (NIST's Secure Hash Algorithms.)
244
#_sha1 sha1module.c
244
_sha1 sha1module.c
245
#_sha256 sha256module.c
245
_sha256 sha256module.c
246
#_sha512 sha512module.c
246
_sha512 sha512module.c
247
247
248
248
249
# The _tkinter module.
249
# The _tkinter module.
Lines 290-296 faulthandler faulthandler.c Link Here
290
#	-lX11
290
#	-lX11
291
291
292
# Lance Ellinghaus's syslog module
292
# Lance Ellinghaus's syslog module
293
#syslog syslogmodule.c		# syslog daemon interface
293
syslog syslogmodule.c		# syslog daemon interface
294
294
295
295
296
# Curses support, requiring the System V version of curses, often
296
# Curses support, requiring the System V version of curses, often
Lines 299-307 faulthandler faulthandler.c Link Here
299
#
299
#
300
# First, look at Setup.config; configure may have set this for you.
300
# First, look at Setup.config; configure may have set this for you.
301
301
302
#_curses _cursesmodule.c -lcurses -ltermcap
302
_curses _cursesmodule.c -lncurses
303
# Wrapper for the panel library that's part of ncurses and SYSV curses.
303
# Wrapper for the panel library that's part of ncurses and SYSV curses.
304
#_curses_panel _curses_panel.c -lpanel -lncurses 
304
_curses_panel _curses_panel.c -lpanel -lncurses 
305
305
306
306
307
# Modules that provide persistent dictionary-like semantics.  You will
307
# Modules that provide persistent dictionary-like semantics.  You will
Lines 328-337 faulthandler faulthandler.c Link Here
328
328
329
329
330
# Helper module for various ascii-encoders
330
# Helper module for various ascii-encoders
331
#binascii binascii.c
331
binascii binascii.c
332
332
333
# Fred Drake's interface to the Python parser
333
# Fred Drake's interface to the Python parser
334
#parser parsermodule.c
334
parser parsermodule.c
335
335
336
336
337
# Lee Busby's SIGFPE modules.
337
# Lee Busby's SIGFPE modules.
Lines 367-388 faulthandler faulthandler.c Link Here
367
#
367
#
368
# More information on Expat can be found at www.libexpat.org.
368
# More information on Expat can be found at www.libexpat.org.
369
#
369
#
370
#pyexpat expat/xmlparse.c expat/xmlrole.c expat/xmltok.c pyexpat.c -I$(srcdir)/Modules/expat -DHAVE_EXPAT_CONFIG_H -DUSE_PYEXPAT_CAPI
370
pyexpat pyexpat.c -DHAVE_EXPAT_CONFIG_H -DUSE_PYEXPAT_CAPI -lexpat
371
371
372
# Hye-Shik Chang's CJKCodecs
372
# Hye-Shik Chang's CJKCodecs
373
373
374
# multibytecodec is required for all the other CJK codec modules
374
# multibytecodec is required for all the other CJK codec modules
375
#_multibytecodec cjkcodecs/multibytecodec.c
375
_multibytecodec cjkcodecs/multibytecodec.c
376
376
377
#_codecs_cn cjkcodecs/_codecs_cn.c
377
_codecs_cn cjkcodecs/_codecs_cn.c
378
#_codecs_hk cjkcodecs/_codecs_hk.c
378
_codecs_hk cjkcodecs/_codecs_hk.c
379
#_codecs_iso2022 cjkcodecs/_codecs_iso2022.c
379
_codecs_iso2022 cjkcodecs/_codecs_iso2022.c
380
#_codecs_jp cjkcodecs/_codecs_jp.c
380
_codecs_jp cjkcodecs/_codecs_jp.c
381
#_codecs_kr cjkcodecs/_codecs_kr.c
381
_codecs_kr cjkcodecs/_codecs_kr.c
382
#_codecs_tw cjkcodecs/_codecs_tw.c
382
_codecs_tw cjkcodecs/_codecs_tw.c
383
383
384
# Example -- included for reference only:
384
# Example -- included for reference only:
385
# xx xxmodule.c
385
# xx xxmodule.c
386
386
387
# Another example -- the 'xxsubtype' module shows C-level subtyping in action
387
# Another example -- the 'xxsubtype' module shows C-level subtyping in action
388
xxsubtype xxsubtype.c
388
xxsubtype xxsubtype.c
389
390
_bz2 _bz2module.c -lbz2
391
zlib zlibmodule.c -lz
392
posix posixmodule.c
393
_io _io/_iomodule.c _io/stringio.c _io/fileio.c _io/textio.c _io/bytesio.c _io/bufferedio.c _io/iobase.c
394
_json _json.c
395
_lsprof _lsprof.c rotatingtree.c
396
_hashlib _hashopenssl.c
397
_multiprocessing _multiprocessing/multiprocessing.c
398
SQLITE3DEFS=-DSQLITE_OMIT_LOAD_EXTENSION=1
399
SQLITE3MOD=-DMODULE_NAME='"sqlite3"'
400
_sqlite3 $(SQLITE3DEFS) $(SQLITE3MOD) _sqlite/cache.c _sqlite/connection.c _sqlite/cursor.c _sqlite/microprotocols.c _sqlite/module.c _sqlite/prepare_protocol.c _sqlite/row.c _sqlite/statement.c _sqlite/util.c -lsqlite3 -lpthread
401
xxlimited xxlimited.c
402
_decimal -DANSI -DCONFIG_32 _decimal/_decimal.c _decimal/libmpdec/basearith.c _decimal/libmpdec/constants.c _decimal/libmpdec/context.c _decimal/libmpdec/convolute.c _decimal/libmpdec/crt.c _decimal/libmpdec/difradix2.c _decimal/libmpdec/fnt.c _decimal/libmpdec/fourstep.c _decimal/libmpdec/io.c _decimal/libmpdec/memory.c _decimal/libmpdec/mpdecimal.c _decimal/libmpdec/numbertheory.c _decimal/libmpdec/sixstep.c _decimal/libmpdec/transpose.c -I$(srcdir)/Modules/_decimal/libmpdec
403
_lzma _lzmamodule.c -llzma
404
_testbuffer _testbuffer.c
(-)a/Modules/_testcapimodule.c (+10 lines)
Lines 10-16 Link Here
10
#include "Python.h"
10
#include "Python.h"
11
#include <float.h>
11
#include <float.h>
12
#include "structmember.h"
12
#include "structmember.h"
13
14
/* Differentiate between building the core module and building extension
15
 * modules.
16
 */
17
#ifdef Py_BUILD_CORE
18
#undef Py_BUILD_CORE
13
#include "datetime.h"
19
#include "datetime.h"
20
#define Py_BUILD_CORE
21
#else
22
#include "datetime.h"
23
#endif
14
24
15
#ifdef WITH_THREAD
25
#ifdef WITH_THREAD
16
#include "pythread.h"
26
#include "pythread.h"
(-)a/Modules/posixmodule.c (-2 / +4 lines)
Lines 9129-9135 posix_WSTOPSIG(PyObject *self, PyObject Link Here
9129
#endif /* HAVE_SYS_WAIT_H */
9129
#endif /* HAVE_SYS_WAIT_H */
9130
9130
9131
9131
9132
#if defined(HAVE_FSTATVFS) && defined(HAVE_SYS_STATVFS_H)
9132
#if (defined(HAVE_STATVFS) || defined(HAVE_FSTATVFS)) && defined(HAVE_SYS_STATVFS_H)
9133
#ifdef _SCO_DS
9133
#ifdef _SCO_DS
9134
/* SCO OpenServer 5.0 and later requires _SVID3 before it reveals the
9134
/* SCO OpenServer 5.0 and later requires _SVID3 before it reveals the
9135
   needed definitions in sys/statvfs.h */
9135
   needed definitions in sys/statvfs.h */
Lines 9175-9181 static PyObject* Link Here
9175
9175
9176
    return v;
9176
    return v;
9177
}
9177
}
9178
9178
#endif
9179
9180
#if defined(HAVE_FSTATVFS) && defined(HAVE_SYS_STATVFS_H)
9179
PyDoc_STRVAR(posix_fstatvfs__doc__,
9181
PyDoc_STRVAR(posix_fstatvfs__doc__,
9180
"fstatvfs(fd) -> statvfs result\n\n\
9182
"fstatvfs(fd) -> statvfs result\n\n\
9181
Perform an fstatvfs system call on the given fd.\n\
9183
Perform an fstatvfs system call on the given fd.\n\
(-)a/Modules/python.c (+4 lines)
Lines 23-28 wmain(int argc, wchar_t **argv) Link Here
23
}
23
}
24
#else
24
#else
25
25
26
#ifdef atarist
27
long _stksize = 512*1024;
28
#endif
29
26
int
30
int
27
main(int argc, char **argv)
31
main(int argc, char **argv)
28
{
32
{
(-)a/Python/fileutils.c (-1 / +1 lines)
Lines 4-11 Link Here
4
#  include <windows.h>
4
#  include <windows.h>
5
#endif
5
#endif
6
6
7
#include <locale.h>
7
#ifdef HAVE_LANGINFO_H
8
#ifdef HAVE_LANGINFO_H
8
#include <locale.h>
9
#include <langinfo.h>
9
#include <langinfo.h>
10
#endif
10
#endif
11
11
(-)a/Python/pythonrun.c (+2 lines)
Lines 188-193 get_locale_encoding(void) Link Here
188
        return NULL;
188
        return NULL;
189
    }
189
    }
190
    return get_codec_name(codeset);
190
    return get_codec_name(codeset);
191
#elif defined(__MINT__)
192
    return get_codec_name("ASCII");
191
#else
193
#else
192
    PyErr_SetNone(PyExc_NotImplementedError);
194
    PyErr_SetNone(PyExc_NotImplementedError);
193
    return NULL;
195
    return NULL;
(-)a/setup.py (-3 / +11 lines)
Lines 256-262 class PyBuildExt(build_ext): Link Here
256
256
257
        build_ext.build_extensions(self)
257
        build_ext.build_extensions(self)
258
258
259
        longest = max([len(e.name) for e in self.extensions])
259
        longest = 0
260
        for e in self.extensions:
261
            longest = max(longest, len(e.name))
262
260
        if self.failed:
263
        if self.failed:
261
            longest = max(longest, max([len(name) for name in self.failed]))
264
            longest = max(longest, max([len(name) for name in self.failed]))
262
265
Lines 603-609 class PyBuildExt(build_ext): Link Here
603
        exts.append( Extension('parser', ['parsermodule.c']) )
606
        exts.append( Extension('parser', ['parsermodule.c']) )
604
607
605
        # Memory-mapped files (also works on Win32).
608
        # Memory-mapped files (also works on Win32).
606
        exts.append( Extension('mmap', ['mmapmodule.c']) )
609
        if host_platform != 'freemint1':
610
            exts.append( Extension('mmap', ['mmapmodule.c']) )
607
611
608
        # Lance Ellinghaus's syslog module
612
        # Lance Ellinghaus's syslog module
609
        # syslog daemon interface
613
        # syslog daemon interface
Lines 621-627 class PyBuildExt(build_ext): Link Here
621
        # Operations on audio samples
625
        # Operations on audio samples
622
        # According to #993173, this one should actually work fine on
626
        # According to #993173, this one should actually work fine on
623
        # 64-bit platforms.
627
        # 64-bit platforms.
624
        exts.append( Extension('audioop', ['audioop.c']) )
628
        if host_platform != 'freemint1':
629
            exts.append( Extension('audioop', ['audioop.c']) )
625
630
626
        # readline
631
        # readline
627
        do_readline = self.compiler.find_library_file(lib_dirs, 'readline')
632
        do_readline = self.compiler.find_library_file(lib_dirs, 'readline')
Lines 1714-1719 class PyBuildExt(build_ext): Link Here
1714
                   '_ctypes/cfield.c']
1719
                   '_ctypes/cfield.c']
1715
        depends = ['_ctypes/ctypes.h']
1720
        depends = ['_ctypes/ctypes.h']
1716
1721
1722
        if host_platform == 'freemint1':
1723
            return
1724
1717
        if host_platform == 'darwin':
1725
        if host_platform == 'darwin':
1718
            sources.append('_ctypes/malloc_closure.c')
1726
            sources.append('_ctypes/malloc_closure.c')
1719
            sources.append('_ctypes/darwin/dlfcn_simple.c')
1727
            sources.append('_ctypes/darwin/dlfcn_simple.c')

Return to bug 500964