]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blob - src/patches/Python-2.4.3-gdbm-1.patch
Wir kehren zurueck zu Kudzu, da hwinfo noch mehr Aerger macht.
[people/teissler/ipfire-2.x.git] / src / patches / Python-2.4.3-gdbm-1.patch
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: dnicholson $
13 $Date: 2006-04-20 10:08:34 -0600 (Thu, 20 Apr 2006) $
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'] ) )