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

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since eec901a 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
  • Python-2.3.2

    Submitted By: Jim Gifford (jim at linuxfromscratch dot org)
    Date: 2003-12-26
    Initial Package Version: 2.3.3
    Origin: Greg Schafer and Jim Gifford
    Description: Fixes Python build issue with gdbm
    
           *** WARNING: renaming "dbm" since importing it failed:                         
           build/lib.linux-i686-2.3/dbm.so: undefined symbol: dbm_firstkey  
    
    
     
    $LastChangedBy: igor $
    $Date: 2005-01-06 08:31:17 -0700 (Thu, 06 Jan 2005) $
    
    diff -Naur Python-2.3.2.orig/setup.py Python-2.3.2/setup.py
    old new  
    596596                if self.compiler.find_library_file(lib_dirs, 'ndbm'):
    597597                    ndbm_libs = ['ndbm']
    598598                else:
    599                     ndbm_libs = []
     599                    ndbm_libs = ['gdbm', 'gdbm_compat']
    600600                exts.append( Extension('dbm', ['dbmmodule.c'],
    601601                                       define_macros=[('HAVE_NDBM_H',None)],
    602602                                       libraries = ndbm_libs ) )
    603603            elif (self.compiler.find_library_file(lib_dirs, 'gdbm')
    604                   and find_file("gdbm/ndbm.h", inc_dirs, []) is not None):
     604                  and find_file("ndbm.h", inc_dirs, []) is not None):
    605605                exts.append( Extension('dbm', ['dbmmodule.c'],
    606606                                       define_macros=[('HAVE_GDBM_NDBM_H',None)],
    607607                                       libraries = ['gdbm'] ) )
Note: See TracBrowser for help on using the repository browser.