components/python/python27/patches/20-bsddb-harmful.patch
author John Beck <John.Beck@Oracle.COM>
Wed, 17 Dec 2014 13:11:04 -0800
branchs11-update
changeset 3565 2d729d36ded7
parent 3367 ed5024e47b53
permissions -rw-r--r--
20230129 update Python 2.7 line to version 2.7.9 20207552 problem in UTILITY/PYTHON

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.9/Makefile.pre.in.~4~	2014-12-17 11:48:03.048413898 -0800
+++ Python-2.7.9/Makefile.pre.in	2014-12-17 11:48:03.100768673 -0800
@@ -1008,7 +1008,7 @@
 		ensurepip ensurepip/_bundled \
 		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.9/setup.py.~6~	2014-12-11 09:35:14.246397752 -0800
+++ Python-2.7.9/setup.py	2014-12-11 09:35:14.274861676 -0800
@@ -1069,7 +1069,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"