components/python/python27/patches/20-bsddb-harmful.patch
author John Beck <John.Beck@Oracle.COM>
Thu, 21 Jul 2016 12:51:35 -0700
changeset 6445 0edecb568b2e
parent 5183 3a048793fc91
child 7516 09c933391a1b
permissions -rw-r--r--
23858073 Upgrade Python 2.7 line to 2.7.12
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1914
00e8dbcb9b1e PSARC 2014/183 Python 2.7.6
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     1
Prior to 2.7.4, the bsddb module was a no-op, as it did not get built.
00e8dbcb9b1e PSARC 2014/183 Python 2.7.6
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     2
Starting with 2.7.4, the behavior is different, and it causes tests to
00e8dbcb9b1e PSARC 2014/183 Python 2.7.6
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     3
dump core.  So skip it.  The module is removed in Python 3, so this patch
00e8dbcb9b1e PSARC 2014/183 Python 2.7.6
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     4
is not being submitted upstream.
00e8dbcb9b1e PSARC 2014/183 Python 2.7.6
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     5
3555
76f4672c5e4b 20230129 update Python 2.7 line to version 2.7.9
John Beck <John.Beck@Oracle.COM>
parents: 2213
diff changeset
     6
--- Python-2.7.9/Makefile.pre.in.~4~	2014-12-11 09:33:27.006970089 -0800
76f4672c5e4b 20230129 update Python 2.7 line to version 2.7.9
John Beck <John.Beck@Oracle.COM>
parents: 2213
diff changeset
     7
+++ Python-2.7.9/Makefile.pre.in	2014-12-11 09:33:27.077073582 -0800
6445
0edecb568b2e 23858073 Upgrade Python 2.7 line to 2.7.12
John Beck <John.Beck@Oracle.COM>
parents: 5183
diff changeset
     8
@@ -1094,7 +1094,7 @@
3555
76f4672c5e4b 20230129 update Python 2.7 line to version 2.7.9
John Beck <John.Beck@Oracle.COM>
parents: 2213
diff changeset
     9
 		ensurepip ensurepip/_bundled \
1914
00e8dbcb9b1e PSARC 2014/183 Python 2.7.6
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    10
 		json json/tests \
00e8dbcb9b1e PSARC 2014/183 Python 2.7.6
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    11
 		sqlite3 sqlite3/test \
00e8dbcb9b1e PSARC 2014/183 Python 2.7.6
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    12
-		logging bsddb bsddb/test csv importlib wsgiref \
00e8dbcb9b1e PSARC 2014/183 Python 2.7.6
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    13
+		logging csv importlib wsgiref \
00e8dbcb9b1e PSARC 2014/183 Python 2.7.6
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    14
 		lib2to3 lib2to3/fixes lib2to3/pgen2 lib2to3/tests \
00e8dbcb9b1e PSARC 2014/183 Python 2.7.6
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    15
 		lib2to3/tests/data lib2to3/tests/data/fixers lib2to3/tests/data/fixers/myfixes \
1954
32663e59626d 19004605 update Python 2.7 line to version 2.7.7
John Beck <John.Beck@Oracle.COM>
parents: 1914
diff changeset
    16
 		ctypes ctypes/test ctypes/macholib \
4698
4e27e549b58d 21162830 update Python 2.7 line to version 2.7.10
John Beck <John.Beck@Oracle.COM>
parents: 3555
diff changeset
    17
--- Python-2.7.10/setup.py.~6~	2015-05-10 10:17:06 -0800
4e27e549b58d 21162830 update Python 2.7 line to version 2.7.10
John Beck <John.Beck@Oracle.COM>
parents: 3555
diff changeset
    18
+++ Python-2.7.10/setup.py	2015-05-18 14:48:34 -0800
6445
0edecb568b2e 23858073 Upgrade Python 2.7 line to 2.7.12
John Beck <John.Beck@Oracle.COM>
parents: 5183
diff changeset
    19
@@ -1093,7 +1093,8 @@
1914
00e8dbcb9b1e PSARC 2014/183 Python 2.7.6
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    20
                                     db_dirs_to_check + lib_dirs, dblib )
00e8dbcb9b1e PSARC 2014/183 Python 2.7.6
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    21
                     if dblib_file:
00e8dbcb9b1e PSARC 2014/183 Python 2.7.6
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    22
                         dblib_dir = [ os.path.abspath(os.path.dirname(dblib_file)) ]
00e8dbcb9b1e PSARC 2014/183 Python 2.7.6
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    23
-                        raise db_found
00e8dbcb9b1e PSARC 2014/183 Python 2.7.6
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    24
+                        # Doesn't work; skip.
00e8dbcb9b1e PSARC 2014/183 Python 2.7.6
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    25
+                        # raise db_found
00e8dbcb9b1e PSARC 2014/183 Python 2.7.6
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    26
                     else:
00e8dbcb9b1e PSARC 2014/183 Python 2.7.6
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    27
                         if db_setup_debug: print "db lib: ", dblib, "not found"
00e8dbcb9b1e PSARC 2014/183 Python 2.7.6
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    28