OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
3.3 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../uclibc/pkg_patch/python-uclibc.patch
  5. # Copyright (C) 2006 The OpenSDE Project
  6. # Copyright (C) 2004 - 2006 The T2 SDE Project
  7. #
  8. # More information can be found in the files COPYING and README.
  9. #
  10. # This patch file is dual-licensed. It is available under the license the
  11. # patched project is licensed under, as long as it is an OpenSource license
  12. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  13. # of the GNU General Public License as published by the Free Software
  14. # Foundation; either version 2 of the License, or (at your option) any later
  15. # version.
  16. # --- SDE-COPYRIGHT-NOTE-END ---
  17. libgdbm.so supplies compatibility functions to dbm functionality in libgdbm_compat.so,
  18. but putting both of those libraries into ndbm_libs resulted in gdbm_errno not found,
  19. even though this symbol is present in libgdbm.so, and this library is even loaded
  20. before ./python complains about the missing symbol. I can only assume there's a
  21. linking error with uclibcs dynamic loader, therefore let it fall back to the bdb
  22. libs instead. {RS}
  23. --- Python-2.4/setup.py.orig 2004-11-13 03:13:34.000000000 -0800
  24. +++ Python-2.4/setup.py 2005-01-24 16:50:44.000000000 -0800
  25. @@ -601,21 +601,21 @@
  26. # The standard Unix dbm module:
  27. if platform not in ['cygwin']:
  28. - if find_file("ndbm.h", inc_dirs, []) is not None:
  29. - # Some systems have -lndbm, others don't
  30. - if self.compiler.find_library_file(lib_dirs, 'ndbm'):
  31. - ndbm_libs = ['ndbm']
  32. - else:
  33. - ndbm_libs = []
  34. - exts.append( Extension('dbm', ['dbmmodule.c'],
  35. - define_macros=[('HAVE_NDBM_H',None)],
  36. - libraries = ndbm_libs ) )
  37. - elif (self.compiler.find_library_file(lib_dirs, 'gdbm')
  38. - and find_file("gdbm/ndbm.h", inc_dirs, []) is not None):
  39. - exts.append( Extension('dbm', ['dbmmodule.c'],
  40. - define_macros=[('HAVE_GDBM_NDBM_H',None)],
  41. - libraries = ['gdbm'] ) )
  42. - elif db_incs is not None:
  43. + #if find_file("ndbm.h", inc_dirs, []) is not None:
  44. + # # Some systems have -lndbm, others don't
  45. + # if self.compiler.find_library_file(lib_dirs, 'ndbm'):
  46. + # ndbm_libs = ['ndbm']
  47. + # else:
  48. + # ndbm_libs = []
  49. + # exts.append( Extension('dbm', ['dbmmodule.c'],
  50. + # define_macros=[('HAVE_NDBM_H',None)],
  51. + # libraries = ndbm_libs ) )
  52. + #elif (self.compiler.find_library_file(lib_dirs, 'gdbm')
  53. + # and find_file("gdbm/ndbm.h", inc_dirs, []) is not None):
  54. + # exts.append( Extension('dbm', ['dbmmodule.c'],
  55. + # define_macros=[('HAVE_GDBM_NDBM_H',None)],
  56. + # libraries = ['gdbm'] ) )
  57. + if db_incs is not None:
  58. exts.append( Extension('dbm', ['dbmmodule.c'],
  59. library_dirs=dblib_dir,
  60. runtime_library_dirs=dblib_dir,