[617118d] | 1 | Submitted By: Jim Gifford (jim at linuxfromscratch dot org)
|
---|
| 2 | Date: 2003-12-26
|
---|
| 3 | Initial Package Version: 2.3.3
|
---|
| 4 | Origin: Greg Schafer and Jim Gifford
|
---|
| 5 | Description: Fixes Python build issue with gdbm
|
---|
| 6 |
|
---|
| 7 | *** WARNING: renaming "dbm" since importing it failed:
|
---|
| 8 | build/lib.linux-i686-2.3/dbm.so: undefined symbol: dbm_firstkey
|
---|
| 9 |
|
---|
| 10 |
|
---|
| 11 |
|
---|
| 12 | $LastChangedBy: igor $
|
---|
| 13 | $Date: 2005-01-06 08:31:17 -0700 (Thu, 06 Jan 2005) $
|
---|
| 14 |
|
---|
| 15 | diff -Naur Python-2.3.2.orig/setup.py Python-2.3.2/setup.py
|
---|
| 16 | --- Python-2.3.2.orig/setup.py 2003-09-22 01:19:45.000000000 +0000
|
---|
| 17 | +++ Python-2.3.2/setup.py 2003-10-13 06:28:34.000000000 +0000
|
---|
| 18 | @@ -596,12 +596,12 @@
|
---|
| 19 | if self.compiler.find_library_file(lib_dirs, 'ndbm'):
|
---|
| 20 | ndbm_libs = ['ndbm']
|
---|
| 21 | else:
|
---|
| 22 | - ndbm_libs = []
|
---|
| 23 | + ndbm_libs = ['gdbm', 'gdbm_compat']
|
---|
| 24 | exts.append( Extension('dbm', ['dbmmodule.c'],
|
---|
| 25 | define_macros=[('HAVE_NDBM_H',None)],
|
---|
| 26 | libraries = ndbm_libs ) )
|
---|
| 27 | elif (self.compiler.find_library_file(lib_dirs, 'gdbm')
|
---|
| 28 | - and find_file("gdbm/ndbm.h", inc_dirs, []) is not None):
|
---|
| 29 | + and find_file("ndbm.h", inc_dirs, []) is not None):
|
---|
| 30 | exts.append( Extension('dbm', ['dbmmodule.c'],
|
---|
| 31 | define_macros=[('HAVE_GDBM_NDBM_H',None)],
|
---|
| 32 | libraries = ['gdbm'] ) )
|
---|