summaryrefslogtreecommitdiff
path: root/python2.7/patches/bsddb-libpath.diff
diff options
context:
space:
mode:
authorIgor Pashev <igor.pashev@nexenta.com>2013-04-10 11:42:21 +0400
committerIgor Pashev <igor.pashev@nexenta.com>2013-04-10 11:42:21 +0400
commit3fd7c70391fef9a1593b25a808766c352239e958 (patch)
tree8ed845aca8afc7bf489028a31db0fdf5ad6ce680 /python2.7/patches/bsddb-libpath.diff
parent92b26142a3d204fb1ce30f68ba1dfdd7f92a0b36 (diff)
downloadcibs-pkgs-3fd7c70391fef9a1593b25a808766c352239e958.tar.gz
Adapt Debian patches
Diffstat (limited to 'python2.7/patches/bsddb-libpath.diff')
-rw-r--r--python2.7/patches/bsddb-libpath.diff19
1 files changed, 19 insertions, 0 deletions
diff --git a/python2.7/patches/bsddb-libpath.diff b/python2.7/patches/bsddb-libpath.diff
new file mode 100644
index 0000000..2dcb6f0
--- /dev/null
+++ b/python2.7/patches/bsddb-libpath.diff
@@ -0,0 +1,19 @@
+# DP: Don't add the bsddb multilib path, if already in the standard lib path
+
+--- a/setup.py
++++ b/setup.py
+@@ -977,7 +977,13 @@
+ if db_setup_debug:
+ print "bsddb using BerkeleyDB lib:", db_ver, dblib
+ print "bsddb lib dir:", dblib_dir, " inc dir:", db_incdir
+- db_incs = [db_incdir]
++ # only add db_incdir/dblib_dir if not in the standard paths
++ if db_incdir in inc_dirs:
++ db_incs = []
++ else:
++ db_incs = [db_incdir]
++ if dblib_dir[0] in lib_dirs:
++ dblib_dir = []
+ dblibs = [dblib]
+ # We add the runtime_library_dirs argument because the
+ # BerkeleyDB lib we're linking against often isn't in the