patch-src_build_py 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. $OpenBSD: patch-src_build_py,v 1.5 2016/09/04 16:46:57 landry Exp $
  2. --- src/build.py.orig Fri Feb 26 03:02:05 2016
  3. +++ src/build.py Sun Sep 4 17:29:08 2016
  4. @@ -37,9 +37,6 @@ def call(cmd, silent=True):
  5. elif not silent:
  6. print stderr
  7. -def ldconfig(*args,**kwargs):
  8. - call('ldconfig')
  9. -
  10. if env['LINKING'] == 'static':
  11. lib_env.Append(CXXFLAGS="-fPIC")
  12. @@ -136,7 +133,7 @@ else: # unix, non-macos
  13. else:
  14. mapnik_lib_link_flag += ' -Wl,-h,%s' % mapnik_libname
  15. else: # Linux and others
  16. - if env['PLATFORM'] != 'FreeBSD':
  17. + if env['PLATFORM'] != 'OpenBSD':
  18. lib_env['LIBS'].append('dl')
  19. mapnik_lib_link_flag += ' -Wl,-rpath-link,.'
  20. if env['ENABLE_SONAME']:
  21. @@ -434,9 +431,7 @@ else:
  22. os.remove(trgt)
  23. os.symlink(os.path.basename(src), trgt)
  24. - major, minor, micro = ABI_VERSION
  25. -
  26. - soFile = "%s.%d.%d.%d" % (os.path.basename(env.subst(env['MAPNIK_LIB_NAME'])), int(major), int(minor), int(micro))
  27. + soFile = "%s.${LIBmapnik_VERSION}" % (os.path.basename(env.subst(env['MAPNIK_LIB_NAME'])))
  28. target = os.path.join(env['MAPNIK_LIB_BASE_DEST'], soFile)
  29. if 'uninstall' not in COMMAND_LINE_TARGETS:
  30. @@ -446,30 +441,8 @@ else:
  31. mapnik = lib_env_final.SharedLibrary(env['MAPNIK_NAME'], source)
  32. result = env.InstallAs(target=target, source=mapnik)
  33. env.Alias(target='install', source=result)
  34. - if result:
  35. - env.AddPostAction(result, ldconfig)
  36. - # Install symlinks
  37. - target1 = os.path.join(env['MAPNIK_LIB_BASE_DEST'], "%s.%d.%d" % \
  38. - (os.path.basename(env.subst(env['MAPNIK_LIB_NAME'])),int(major), int(minor)))
  39. - target2 = os.path.join(env['MAPNIK_LIB_BASE_DEST'], os.path.basename(env.subst(env['MAPNIK_LIB_NAME'])))
  40. - if 'uninstall' not in COMMAND_LINE_TARGETS:
  41. - link1 = env.Command(target1, target, symlink)
  42. - env.Alias(target='install', source=link1)
  43. - link2 = env.Command(target2, target1, symlink)
  44. - env.Alias(target='install', source=link2)
  45. - # delete in reverse order..
  46. - env['create_uninstall_target'](env, target2)
  47. - env['create_uninstall_target'](env, target1)
  48. env['create_uninstall_target'](env, target)
  49. -
  50. - # to enable local testing
  51. - lib_major_minor = "%s.%d.%d" % (os.path.basename(env.subst(env['MAPNIK_LIB_NAME'])), int(major), int(minor))
  52. - local_lib = os.path.basename(env.subst(env['MAPNIK_LIB_NAME']))
  53. - if os.path.islink(lib_major_minor) or os.path.exists(lib_major_minor):
  54. - os.remove(lib_major_minor)
  55. - os.symlink(local_lib,lib_major_minor)
  56. - Clean(mapnik,lib_major_minor);
  57. if not env['RUNTIME_LINK'] == 'static':
  58. Depends(mapnik, env.subst('../deps/agg/libagg.a'))