]> git.pld-linux.org Git - packages/python.git/commitdiff
- readded updated db patch (db 5.0 support)
authorJakub Bogusz <qboosh@pld-linux.org>
Tue, 13 Jul 2010 20:11:00 +0000 (20:11 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    python-db.patch -> 1.8
    python.spec -> 1.378

python-db.patch [new file with mode: 0644]
python.spec

diff --git a/python-db.patch b/python-db.patch
new file mode 100644 (file)
index 0000000..3104976
--- /dev/null
@@ -0,0 +1,39 @@
+--- Python-2.7/setup.py.orig   2010-07-11 20:29:09.142656610 +0200
++++ Python-2.7/setup.py        2010-07-12 08:43:42.578657448 +0200
+@@ -765,7 +765,7 @@
+         # a release.  Most open source OSes come with one or more
+         # versions of BerkeleyDB already installed.
+-        max_db_ver = (4, 8)
++        max_db_ver = (5, 0)
+         min_db_ver = (4, 1)
+         db_setup_debug = True   # verbose debug prints from this script?
+@@ -787,8 +787,12 @@
+             return True
+         def gen_db_minor_ver_nums(major):
+-            if major == 4:
++            if major == 5:
+                 for x in range(max_db_ver[1]+1):
++                  if allow_db_ver((5, x)):
++                        yield x
++            elif major == 4:
++                for x in range(0, 9):
+                     if allow_db_ver((4, x)):
+                         yield x
+             elif major == 3:
+--- Python-2.7/Modules/_bsddb.c.orig   2010-05-09 16:46:46.000000000 +0200
++++ Python-2.7/Modules/_bsddb.c        2010-07-13 19:30:54.530654934 +0200
+@@ -9765,8 +9765,10 @@
+     ADD_INT(d, DB_REP_PERMANENT);
+-#if (DBVER >= 44)
++#if (DBVER >= 44) && (DBVER < 50)
+     ADD_INT(d, DB_REP_CONF_NOAUTOINIT);
++#endif
++#if (DBVER >= 44)
+     ADD_INT(d, DB_REP_CONF_DELAYCLIENT);
+     ADD_INT(d, DB_REP_CONF_BULK);
+     ADD_INT(d, DB_REP_CONF_NOWAIT);
index c5e3c588145aef34b30eb0ef6c904ad1ba3f556c..4ada0195340b6fb3e68c0fbafc265b379828fc85 100644 (file)
@@ -51,7 +51,8 @@ Source0:      http://www.python.org/ftp/python/%{version}/Python-%{version}%{beta}.ta
 # Source0-md5: 0e8c9ec32abf5b732bea7d91b38c3339
 Source1:       http://www.python.org/ftp/python/doc/%{dver}/%{name}-%{dver}-docs-html.tar.bz2
 # Source1-md5: 16b736789e923bbefe74e7a2219031c6
-Patch1:                %{name}-%{name}path.patch
+Patch0:                %{name}-db.patch
+Patch1:                %{name}-pythonpath.patch
 Patch2:                %{name}-ac_fixes.patch
 Patch3:                %{name}-lib64.patch
 Patch4:                %{name}-noarch_to_datadir.patch
@@ -544,6 +545,7 @@ Przykłady te są dla Pythona 2.3.4, nie %{version}.
 
 %prep
 %setup -q -n Python-%{version}%{beta}
+%patch0 -p1
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
This page took 0.109773 seconds and 4 git commands to generate.