source: scripts/untested/blfs-patches/Python-2.4-gdbm-1.patch@ d285e92

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since d285e92 was 617118d, checked in by Jim Gifford <clfs@…>, 19 years ago

r561@server (orig r559): root | 2005-06-05 02:38:49 -0700
Fixed Directory Structure

  • Property mode set to 100644
File size: 1.5 KB
RevLine 
[617118d]1Submitted By: Jim Gifford (jim at linuxfromscratch dot org)
2Date: 2003-12-26
3Initial Package Version: 2.3.3
4Origin: Greg Schafer and Jim Gifford
5Description: 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
15diff -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'] ) )
Note: See TracBrowser for help on using the repository browser.