aboutsummaryrefslogtreecommitdiff
path: root/examples/python2.7/patches/bsddb-libpath.diff
diff options
context:
space:
mode:
Diffstat (limited to 'examples/python2.7/patches/bsddb-libpath.diff')
-rw-r--r--examples/python2.7/patches/bsddb-libpath.diff19
1 files changed, 19 insertions, 0 deletions
diff --git a/examples/python2.7/patches/bsddb-libpath.diff b/examples/python2.7/patches/bsddb-libpath.diff
new file mode 100644
index 0000000..2dcb6f0
--- /dev/null
+++ b/examples/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