diff options
Diffstat (limited to 'gnu/packages/patches/python-fix-dbm.patch')
| -rw-r--r-- | gnu/packages/patches/python-fix-dbm.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/gnu/packages/patches/python-fix-dbm.patch b/gnu/packages/patches/python-fix-dbm.patch new file mode 100644 index 00000000000..29e4521f3f0 --- /dev/null +++ b/gnu/packages/patches/python-fix-dbm.patch | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | This patch allows the dbm module to be built using the compatibility mode of | ||
| 2 | gdbm. It will not be needed any more with Python 2.7.4. | ||
| 3 | --- setup.py 2013-04-06 00:53:37.000000000 +0200 | ||
| 4 | +++ setup.py.new 2013-04-06 19:55:05.000000000 +0200 | ||
| 5 | @@ -1158,10 +1158,14 @@ | ||
| 6 | for cand in dbm_order: | ||
| 7 | if cand == "ndbm": | ||
| 8 | if find_file("ndbm.h", inc_dirs, []) is not None: | ||
| 9 | - # Some systems have -lndbm, others don't | ||
| 10 | + # Some systems have -lndbm, some have -lgdbm_compat, | ||
| 11 | + # others have no particular linker flags. | ||
| 12 | if self.compiler.find_library_file(lib_dirs, | ||
| 13 | 'ndbm'): | ||
| 14 | ndbm_libs = ['ndbm'] | ||
| 15 | + elif self.compiler.find_library_file(lib_dirs, | ||
| 16 | + 'gdbm_compat'): | ||
| 17 | + ndbm_libs = ['gdbm_compat'] | ||
| 18 | else: | ||
| 19 | ndbm_libs = [] | ||
| 20 | print "building dbm using ndbm" | ||
