From 55bee34488ae51d0c34ff5656745c118ef2bf9c5 Mon Sep 17 00:00:00 2001 From: David Naylor Date: Sun, 7 Dec 2014 18:58:05 +0000 Subject: Update lang/pypy3-devel to 2.4.0. Changes: * Carry across _sqlite.py fix from lang/pypy * Strip cffi shared libraries (from lang/pypy) Change Log: - Various fsencode PEP 383 related fixes to the posix module (readlink, uname, ttyname and ctermid) and improved locale handling - Fixed a couple different crashes related to parsing Python 3 source code - internal refactoring in string and GIL handling which led to significant speedups - improved handling of multiple objects (like sockets) in long-running programs. They are collected and released more efficiently, reducing memory use. In simpler terms - we closed what looked like a memory leak --- lang/pypy3-devel/files/patch-lib_pypy___sqlite3.py | 28 ++++++++++++++-------- 1 file changed, 18 insertions(+), 10 deletions(-) (limited to 'lang/pypy3-devel/files/patch-lib_pypy___sqlite3.py') diff --git a/lang/pypy3-devel/files/patch-lib_pypy___sqlite3.py b/lang/pypy3-devel/files/patch-lib_pypy___sqlite3.py index 6cb5a0c53265..5a8650d0f7b6 100644 --- a/lang/pypy3-devel/files/patch-lib_pypy___sqlite3.py +++ b/lang/pypy3-devel/files/patch-lib_pypy___sqlite3.py @@ -1,11 +1,19 @@ ---- lib_pypy/_sqlite3.py.orig 2013-05-18 16:20:00.000000000 +0200 -+++ lib_pypy/_sqlite3.py 2013-05-18 16:21:06.000000000 +0200 -@@ -270,7 +270,7 @@ +--- lib_pypy/_sqlite3.py.bak 2013-12-15 23:45:52.000000000 +0200 ++++ lib_pypy/_sqlite3.py 2013-12-16 12:07:57.000000000 +0200 +@@ -269,11 +269,14 @@ + _ffi.cdef("int sqlite3_enable_load_extension(sqlite3 *db, int onoff);") - _lib = _ffi.verify(""" - #include --""", libraries=['sqlite3'] -+""", libraries=['sqlite3'], include_dirs=['/usr/local/include'], library_dirs=['/usr/local/lib'] - ) - - exported_sqlite_symbols = [ + if sys.platform.startswith('freebsd'): ++ import os ++ import os.path ++ _localbase = os.environ.get('LOCALBASE', '/usr/local') + _lib = _ffi.verify(""" + #include + """, libraries=['sqlite3'], +- include_dirs=['/usr/local/include'], +- library_dirs=['/usr/local/lib'] ++ include_dirs=[os.path.join(_localbase, 'include')], ++ library_dirs=[os.path.join(_localbase, 'lib')] + ) + else: + _lib = _ffi.verify(""" -- cgit v1.2.3