Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 370132 Details for
Bug 500964
New python-3.3.3 patch and package.use.mask change
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
New python-3.3.3 patch for FreeMiNT
14_m68k-mint_freemint.patch (text/plain), 14.36 KB, created by
Alan Hourihane
on 2014-02-11 08:52:22 UTC
(
hide
)
Description:
New python-3.3.3 patch for FreeMiNT
Filename:
MIME Type:
Creator:
Alan Hourihane
Created:
2014-02-11 08:52:22 UTC
Size:
14.36 KB
patch
obsolete
># HG changeset patch ># User Fabian Groffen <grobian@gentoo.org> ># Date 1388952378 -3600 ># Sun Jan 05 21:06:18 2014 +0100 ># Branch 3.3 ># Node ID 76e8b5a34796e90920b4ebc7a5602fb745e79073 ># Parent 059d04b0a455370b72146d5d9941300cf49728c0 >Patches for FreeMiNT, by Alan Hourihane, >https://bugs.gentoo.org/show_bug.cgi?id=484812 >https://bugs.gentoo.org/show_bug.cgi?id=496850 > >diff -r 059d04b0a455 -r 76e8b5a34796 Lib/stat.py >--- a/Lib/stat.py Wed Nov 27 22:15:33 2013 +0100 >+++ b/Lib/stat.py Sun Jan 05 21:06:18 2014 +0100 >@@ -37,9 +37,10 @@ S_IFDIR = 0o040000 # directory > S_IFCHR = 0o020000 # character device > S_IFBLK = 0o060000 # block device > S_IFREG = 0o100000 # regular file >-S_IFIFO = 0o010000 # fifo (named pipe) >-S_IFLNK = 0o120000 # symbolic link >-S_IFSOCK = 0o140000 # socket file >+S_IFIFO = 0o120000 # fifo (named pipe) >+S_IFLNK = 0o160000 # symbolic link >+S_IFSOCK = 0o010000 # socket file >+ > > # Functions to test for each file type > >diff -r 059d04b0a455 -r 76e8b5a34796 Makefile.pre.in >--- a/Makefile.pre.in Wed Nov 27 22:15:33 2013 +0100 >+++ b/Makefile.pre.in Sun Jan 05 21:06:18 2014 +0100 >@@ -1227,6 +1227,7 @@ libainstall: all python-config > $(INSTALL_DATA) Modules/Setup $(DESTDIR)$(LIBPL)/Setup > $(INSTALL_DATA) Modules/Setup.local $(DESTDIR)$(LIBPL)/Setup.local > $(INSTALL_DATA) Modules/Setup.config $(DESTDIR)$(LIBPL)/Setup.config >+ sed -i -e "s/@LOCALMODLIBS@/${LOCALMODLIBS}/" Misc/python.pc > $(INSTALL_DATA) Misc/python.pc $(DESTDIR)$(LIBPC)/python-$(VERSION).pc > $(INSTALL_SCRIPT) $(srcdir)/Modules/makesetup $(DESTDIR)$(LIBPL)/makesetup > $(INSTALL_SCRIPT) $(srcdir)/install-sh $(DESTDIR)$(LIBPL)/install-sh >diff -r 059d04b0a455 -r 76e8b5a34796 Misc/python.pc.in >--- a/Misc/python.pc.in Wed Nov 27 22:15:33 2013 +0100 >+++ b/Misc/python.pc.in Sun Jan 05 21:06:18 2014 +0100 >@@ -8,6 +8,6 @@ Name: Python > Description: Python library > Requires: > Version: @VERSION@ >-Libs.private: @LIBS@ > Libs: -L${libdir} -lpython@VERSION@@ABIFLAGS@ >+Libs.private: @LOCALMODLIBS@ @LIBS@ > Cflags: -I${includedir}/python@VERSION@@ABIFLAGS@ >diff -r 059d04b0a455 -r 76e8b5a34796 Modules/Setup.dist >--- a/Modules/Setup.dist Wed Nov 27 22:15:33 2013 +0100 >+++ b/Modules/Setup.dist Sun Jan 05 21:06:18 2014 +0100 >@@ -118,7 +118,7 @@ operator operator.c # operator.a > itertools itertoolsmodule.c # Functions creating iterators for efficient looping > > # access to ISO C locale support >-_locale _localemodule.c # -lintl >+_locale _localemodule.c -lintl -liconv -lpthread > > # Standard I/O baseline > _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 >@@ -157,70 +157,70 @@ faulthandler faulthandler.c > # it, depending on your system -- see the GNU readline instructions. > # It's okay for this to be a shared library, too. > >-#readline readline.c -lreadline -ltermcap >+readline readline.c -lreadline -lncurses > > > # Modules that should always be present (non UNIX dependent): > >-#array arraymodule.c # array objects >-#cmath cmathmodule.c _math.c # -lm # complex math library functions >-#math mathmodule.c _math.c # -lm # math library functions, e.g. sin() >-#_struct _struct.c # binary structure packing/unpacking >-#time timemodule.c # -lm # time operations and variables >-#_weakref _weakref.c # basic weak reference support >-#_testcapi _testcapimodule.c # Python C API test module >-#_random _randommodule.c # Random number generator >-#atexit atexitmodule.c # Register functions to be run at interpreter-shutdown >-#_elementtree -I$(srcdir)/Modules/expat -DHAVE_EXPAT_CONFIG_H -DUSE_PYEXPAT_CAPI _elementtree.c # elementtree accelerator >-#_pickle _pickle.c # pickle accelerator >-#_datetime _datetimemodule.c # datetime accelerator >-#_bisect _bisectmodule.c # Bisection algorithms >-#_heapq _heapqmodule.c # Heap queue algorithm >+array arraymodule.c # array objects >+cmath cmathmodule.c _math.c # -lm # complex math library functions >+math mathmodule.c _math.c # -lm # math library functions, e.g. sin() >+_struct _struct.c # binary structure packing/unpacking >+time timemodule.c # -lm # time operations and variables >+_weakref _weakref.c # basic weak reference support >+_testcapi _testcapimodule.c # Python C API test module >+_random _randommodule.c # Random number generator >+atexit atexitmodule.c # Register functions to be run at interpreter-shutdown >+_elementtree -I$(srcdir)/Modules/expat -DHAVE_EXPAT_CONFIG_H -DUSE_PYEXPAT_CAPI _elementtree.c # elementtree accelerator >+_pickle _pickle.c # pickle accelerator >+_datetime _datetimemodule.c # datetime accelerator >+_bisect _bisectmodule.c # Bisection algorithms >+_heapq _heapqmodule.c # Heap queue algorithm > >-#unicodedata unicodedata.c # static Unicode character database >+unicodedata unicodedata.c # static Unicode character database > > > # Modules with some UNIX dependencies -- on by default: > # (If you have a really backward UNIX, select and socket may not be > # supported...) > >-#fcntl fcntlmodule.c # fcntl(2) and ioctl(2) >-#spwd spwdmodule.c # spwd(3) >-#grp grpmodule.c # grp(3) >-#select selectmodule.c # select(2); not on ancient System V >+fcntl fcntlmodule.c # fcntl(2) and ioctl(2) >+spwd spwdmodule.c # spwd(3) >+grp grpmodule.c # grp(3) >+select selectmodule.c # select(2); not on ancient System V > > # Memory-mapped files (also works on Win32). > #mmap mmapmodule.c > > # CSV file helper >-#_csv _csv.c >+_csv _csv.c > > # Socket module helper for socket(2) >-#_socket socketmodule.c >+_socket socketmodule.c > > # Socket module helper for SSL support; you must comment out the other > # socket line above, and possibly edit the SSL variable: > #SSL=/usr/local/ssl >-#_ssl _ssl.c \ >-# -DUSE_SSL -I$(SSL)/include -I$(SSL)/include/openssl \ >-# -L$(SSL)/lib -lssl -lcrypto >+_ssl _ssl.c \ >+ -DUSE_SSL \ >+ -lssl -lcrypto -lz > > # The crypt module is now disabled by default because it breaks builds > # on many systems (where -lcrypt is needed), e.g. Linux (I believe). > # > # First, look at Setup.config; configure may have set this for you. > >-#_crypt _cryptmodule.c # -lcrypt # crypt(3); needs -lcrypt on some systems >+_crypt _cryptmodule.c # -lcrypt # crypt(3); needs -lcrypt on some systems > > > # Some more UNIX dependent modules -- off by default, since these > # are not supported by all UNIX systems: > > #nis nismodule.c -lnsl # Sun yellow pages -- not everywhere >-#termios termios.c # Steen Lumholt's termios module >-#resource resource.c # Jeremy Hylton's rlimit interface >+termios termios.c # Steen Lumholt's termios module >+resource resource.c # Jeremy Hylton's rlimit interface > >-#_posixsubprocess _posixsubprocess.c # POSIX subprocess module helper >+_posixsubprocess _posixsubprocess.c # POSIX subprocess module helper > > # Multimedia modules -- off by default. > # These don't work for 64-bit platforms!!! >@@ -236,14 +236,14 @@ faulthandler faulthandler.c > # The _md5 module implements the RSA Data Security, Inc. MD5 > # Message-Digest Algorithm, described in RFC 1321. > >-#_md5 md5module.c >+_md5 md5module.c > > > # The _sha module implements the SHA checksum algorithms. > # (NIST's Secure Hash Algorithms.) >-#_sha1 sha1module.c >-#_sha256 sha256module.c >-#_sha512 sha512module.c >+_sha1 sha1module.c >+_sha256 sha256module.c >+_sha512 sha512module.c > > > # The _tkinter module. >@@ -290,7 +290,7 @@ faulthandler faulthandler.c > # -lX11 > > # Lance Ellinghaus's syslog module >-#syslog syslogmodule.c # syslog daemon interface >+syslog syslogmodule.c # syslog daemon interface > > > # Curses support, requiring the System V version of curses, often >@@ -299,9 +299,9 @@ faulthandler faulthandler.c > # > # First, look at Setup.config; configure may have set this for you. > >-#_curses _cursesmodule.c -lcurses -ltermcap >+_curses _cursesmodule.c -lncurses > # Wrapper for the panel library that's part of ncurses and SYSV curses. >-#_curses_panel _curses_panel.c -lpanel -lncurses >+_curses_panel _curses_panel.c -lpanel -lncurses > > > # Modules that provide persistent dictionary-like semantics. You will >@@ -328,10 +328,10 @@ faulthandler faulthandler.c > > > # Helper module for various ascii-encoders >-#binascii binascii.c >+binascii binascii.c > > # Fred Drake's interface to the Python parser >-#parser parsermodule.c >+parser parsermodule.c > > > # Lee Busby's SIGFPE modules. >@@ -367,22 +367,38 @@ faulthandler faulthandler.c > # > # More information on Expat can be found at www.libexpat.org. > # >-#pyexpat expat/xmlparse.c expat/xmlrole.c expat/xmltok.c pyexpat.c -I$(srcdir)/Modules/expat -DHAVE_EXPAT_CONFIG_H -DUSE_PYEXPAT_CAPI >+pyexpat pyexpat.c -DHAVE_EXPAT_CONFIG_H -DUSE_PYEXPAT_CAPI -lexpat > > # Hye-Shik Chang's CJKCodecs > > # multibytecodec is required for all the other CJK codec modules >-#_multibytecodec cjkcodecs/multibytecodec.c >+_multibytecodec cjkcodecs/multibytecodec.c > >-#_codecs_cn cjkcodecs/_codecs_cn.c >-#_codecs_hk cjkcodecs/_codecs_hk.c >-#_codecs_iso2022 cjkcodecs/_codecs_iso2022.c >-#_codecs_jp cjkcodecs/_codecs_jp.c >-#_codecs_kr cjkcodecs/_codecs_kr.c >-#_codecs_tw cjkcodecs/_codecs_tw.c >+_codecs_cn cjkcodecs/_codecs_cn.c >+_codecs_hk cjkcodecs/_codecs_hk.c >+_codecs_iso2022 cjkcodecs/_codecs_iso2022.c >+_codecs_jp cjkcodecs/_codecs_jp.c >+_codecs_kr cjkcodecs/_codecs_kr.c >+_codecs_tw cjkcodecs/_codecs_tw.c > > # Example -- included for reference only: > # xx xxmodule.c > > # Another example -- the 'xxsubtype' module shows C-level subtyping in action > xxsubtype xxsubtype.c >+ >+_bz2 _bz2module.c -lbz2 >+zlib zlibmodule.c -lz >+posix posixmodule.c >+_io _io/_iomodule.c _io/stringio.c _io/fileio.c _io/textio.c _io/bytesio.c _io/bufferedio.c _io/iobase.c >+_json _json.c >+_lsprof _lsprof.c rotatingtree.c >+_hashlib _hashopenssl.c >+_multiprocessing _multiprocessing/multiprocessing.c >+SQLITE3DEFS=-DSQLITE_OMIT_LOAD_EXTENSION=1 >+SQLITE3MOD=-DMODULE_NAME='"sqlite3"' >+_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 >+xxlimited xxlimited.c >+_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 >+_lzma _lzmamodule.c -llzma >+_testbuffer _testbuffer.c >diff -r 059d04b0a455 -r 76e8b5a34796 Modules/_testcapimodule.c >--- a/Modules/_testcapimodule.c Wed Nov 27 22:15:33 2013 +0100 >+++ b/Modules/_testcapimodule.c Sun Jan 05 21:06:18 2014 +0100 >@@ -10,7 +10,17 @@ > #include "Python.h" > #include <float.h> > #include "structmember.h" >+ >+/* Differentiate between building the core module and building extension >+ * modules. >+ */ >+#ifdef Py_BUILD_CORE >+#undef Py_BUILD_CORE > #include "datetime.h" >+#define Py_BUILD_CORE >+#else >+#include "datetime.h" >+#endif > > #ifdef WITH_THREAD > #include "pythread.h" >diff -r 059d04b0a455 -r 76e8b5a34796 Modules/posixmodule.c >--- a/Modules/posixmodule.c Wed Nov 27 22:15:33 2013 +0100 >+++ b/Modules/posixmodule.c Sun Jan 05 21:06:18 2014 +0100 >@@ -9129,7 +9129,7 @@ posix_WSTOPSIG(PyObject *self, PyObject > #endif /* HAVE_SYS_WAIT_H */ > > >-#if defined(HAVE_FSTATVFS) && defined(HAVE_SYS_STATVFS_H) >+#if (defined(HAVE_STATVFS) || defined(HAVE_FSTATVFS)) && defined(HAVE_SYS_STATVFS_H) > #ifdef _SCO_DS > /* SCO OpenServer 5.0 and later requires _SVID3 before it reveals the > needed definitions in sys/statvfs.h */ >@@ -9175,7 +9175,9 @@ static PyObject* > > return v; > } >- >+#endif >+ >+#if defined(HAVE_FSTATVFS) && defined(HAVE_SYS_STATVFS_H) > PyDoc_STRVAR(posix_fstatvfs__doc__, > "fstatvfs(fd) -> statvfs result\n\n\ > Perform an fstatvfs system call on the given fd.\n\ >diff -r 059d04b0a455 -r 76e8b5a34796 Modules/python.c >--- a/Modules/python.c Wed Nov 27 22:15:33 2013 +0100 >+++ b/Modules/python.c Sun Jan 05 21:06:18 2014 +0100 >@@ -23,6 +23,10 @@ wmain(int argc, wchar_t **argv) > } > #else > >+#ifdef atarist >+long _stksize = 512*1024; >+#endif >+ > int > main(int argc, char **argv) > { >diff -r 059d04b0a455 -r 76e8b5a34796 Python/fileutils.c >--- a/Python/fileutils.c Wed Nov 27 22:15:33 2013 +0100 >+++ b/Python/fileutils.c Sun Jan 05 21:06:18 2014 +0100 >@@ -4,8 +4,8 @@ > # include <windows.h> > #endif > >+#include <locale.h> > #ifdef HAVE_LANGINFO_H >-#include <locale.h> > #include <langinfo.h> > #endif > >diff -r 059d04b0a455 -r 76e8b5a34796 Python/pythonrun.c >--- a/Python/pythonrun.c Wed Nov 27 22:15:33 2013 +0100 >+++ b/Python/pythonrun.c Sun Jan 05 21:06:18 2014 +0100 >@@ -188,6 +188,8 @@ get_locale_encoding(void) > return NULL; > } > return get_codec_name(codeset); >+#elif defined(__MINT__) >+ return get_codec_name("ASCII"); > #else > PyErr_SetNone(PyExc_NotImplementedError); > return NULL; >diff -r 059d04b0a455 -r 76e8b5a34796 setup.py >--- a/setup.py Wed Nov 27 22:15:33 2013 +0100 >+++ b/setup.py Sun Jan 05 21:06:18 2014 +0100 >@@ -256,7 +256,10 @@ class PyBuildExt(build_ext): > > build_ext.build_extensions(self) > >- longest = max([len(e.name) for e in self.extensions]) >+ longest = 0 >+ for e in self.extensions: >+ longest = max(longest, len(e.name)) >+ > if self.failed: > longest = max(longest, max([len(name) for name in self.failed])) > >@@ -603,7 +606,8 @@ class PyBuildExt(build_ext): > exts.append( Extension('parser', ['parsermodule.c']) ) > > # Memory-mapped files (also works on Win32). >- exts.append( Extension('mmap', ['mmapmodule.c']) ) >+ if host_platform != 'freemint1': >+ exts.append( Extension('mmap', ['mmapmodule.c']) ) > > # Lance Ellinghaus's syslog module > # syslog daemon interface >@@ -621,7 +625,8 @@ class PyBuildExt(build_ext): > # Operations on audio samples > # According to #993173, this one should actually work fine on > # 64-bit platforms. >- exts.append( Extension('audioop', ['audioop.c']) ) >+ if host_platform != 'freemint1': >+ exts.append( Extension('audioop', ['audioop.c']) ) > > # readline > do_readline = self.compiler.find_library_file(lib_dirs, 'readline') >@@ -1714,6 +1719,9 @@ class PyBuildExt(build_ext): > '_ctypes/cfield.c'] > depends = ['_ctypes/ctypes.h'] > >+ if host_platform == 'freemint1': >+ return >+ > if host_platform == 'darwin': > sources.append('_ctypes/malloc_closure.c') > sources.append('_ctypes/darwin/dlfcn_simple.c')
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 500964
: 370132