components/python/python27/patches/20-bsddb-harmful.patch
branchs11u2-sru
changeset 3379 e99da14b537a
child 3565 2d729d36ded7
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/python/python27/patches/20-bsddb-harmful.patch	Mon Oct 06 13:15:36 2014 -0700
@@ -0,0 +1,28 @@
+Prior to 2.7.4, the bsddb module was a no-op, as it did not get built.
+Starting with 2.7.4, the behavior is different, and it causes tests to
+dump core.  So skip it.  The module is removed in Python 3, so this patch
+is not being submitted upstream.
+
+--- Python-2.7.7/Makefile.pre.in.~4~	2014-06-02 11:08:40.909703116 -0700
++++ Python-2.7.7/Makefile.pre.in	2014-06-02 11:08:40.977964319 -0700
+@@ -975,7 +975,7 @@
+ 		email email/mime email/test email/test/data \
+ 		json json/tests \
+ 		sqlite3 sqlite3/test \
+-		logging bsddb bsddb/test csv importlib wsgiref \
++		logging csv importlib wsgiref \
+ 		lib2to3 lib2to3/fixes lib2to3/pgen2 lib2to3/tests \
+ 		lib2to3/tests/data lib2to3/tests/data/fixers lib2to3/tests/data/fixers/myfixes \
+ 		ctypes ctypes/test ctypes/macholib \
+--- Python-2.7.8/setup.py.~6~	2014-07-17 20:49:23.834928506 -0700
++++ Python-2.7.8/setup.py	2014-07-17 20:49:23.872603149 -0700
+@@ -1067,7 +1067,8 @@
+                                     db_dirs_to_check + lib_dirs, dblib )
+                     if dblib_file:
+                         dblib_dir = [ os.path.abspath(os.path.dirname(dblib_file)) ]
+-                        raise db_found
++                        # Doesn't work; skip.
++                        # raise db_found
+                     else:
+                         if db_setup_debug: print "db lib: ", dblib, "not found"
+