[python] fix db4 include path for libdb4 package (f18 and above)
Bohuslav Kabrda
bkabrda at fedoraproject.org
Tue Jul 24 07:32:56 UTC 2012
commit 53b3ff6168674bc1194f4ce6b24d4c8fcba03142
Author: Bohuslav Kabrda <bkabrda at redhat.com>
Date: Tue Jul 24 08:51:48 2012 +0200
fix db4 include path for libdb4 package (f18 and above)
00159-correct-libdb-include-path.patch | 11 +++++++++++
python.spec | 15 +++++++++++++++
2 files changed, 26 insertions(+), 0 deletions(-)
---
diff --git a/00159-correct-libdb-include-path.patch b/00159-correct-libdb-include-path.patch
new file mode 100644
index 0000000..f96fc20
--- /dev/null
+++ b/00159-correct-libdb-include-path.patch
@@ -0,0 +1,11 @@
+--- Python-2.7.3/Modules/Setup.dist.orig 2012-07-17 09:05:45.000000000 +0200
++++ Python-2.7.3/Modules/Setup.dist 2012-07-17 09:06:01.011696892 +0200
+@@ -412,7 +412,7 @@
+ # Edit the variables DB and DBLIBVERto point to the db top directory
+ # and the subdirectory of PORT where you built it.
+ DBLIBVER=4.8
+-DBINC=/usr/include/db4
++DBINC=/usr/include/libdb4
+ DBLIB=/usr/lib
+ _bsddb _bsddb.c -I$(DBINC) -L$(DBLIB) -ldb-$(DBLIBVER)
+
diff --git a/python.spec b/python.spec
index 701c1c6..cabda17 100644
--- a/python.spec
+++ b/python.spec
@@ -125,7 +125,9 @@ Provides: python(abi) = %{pybasever}
BuildRequires: autoconf
BuildRequires: bzip2
BuildRequires: bzip2-devel
+%if 0%{?fedora} < 18
BuildRequires: db4-devel >= 4.8
+%endif
# expat 2.1.0 added the symbol XML_SetHashSalt without bumping SONAME. We use
# it (in pyexpat) in order to enable the fix in Python-2.7.3 for CVE-2012-0876:
@@ -138,6 +140,9 @@ BuildRequires: gdbm-devel
%endif
BuildRequires: glibc-devel
BuildRequires: gmp-devel
+%if 0%{?fedora} >= 18
+BuildRequires: libdb4-devel
+%endif
BuildRequires: libffi-devel
BuildRequires: libGL-devel
BuildRequires: libX11-devel
@@ -693,6 +698,12 @@ Patch157: 00157-uid-gid-overflows.patch
# has been merged into patch 00146.
Patch158: 00158-fix-hashlib-leak.patch
+# From F18 on, there is a libdb4 package, that replaces db4. It places header
+# files in "/usr/include/libdb4", not in "/usr/include/db4", this patch
+# fixes this.
+# Downstream only modification.
+Patch159: 00159-correct-libdb-include-path.patch
+
# (New patches go here ^^^)
#
# When adding new patches to "python" and "python3" in Fedora 17 onwards,
@@ -1016,6 +1027,9 @@ done
%patch156 -p1
%patch157 -p1 -b .uid-gid-overflows
%patch158 -p1
+%if 0%{?fedora} >= 18
+%patch159 -p1 -F 3
+%endif
# This shouldn't be necesarry, but is right now (2.2a3)
@@ -1848,6 +1862,7 @@ rm -fr %{buildroot}
%changelog
* Tue Jul 17 2012 Bohuslav Kabrda <bkabrda at redhat.com> - 2.7.3-11
- fix memory leak in module _hashlib (patch 158, rhbz#836285)
+- fix db4 include path for libdb4 package (f18 and above) (patch 159)
* Tue Jun 26 2012 David Malcolm <dmalcolm at redhat.com> - 2.7.3-10
- fix missing include in uid/gid handling patch (patch 157; rhbz#830405)
More information about the scm-commits
mailing list