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.

60 lines
2.1 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../smalltalk/use-system-sigsegv.patch
  5. # Copyright (C) 2010 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. If '--with-system-libsigsegv' is used while running configure, we should
  17. also include the 'sigsegv.h' header file from the system, otherwise the
  18. build is failing.
  19. diff -ruN smalltalk-3.2.1-orig/config.h.in smalltalk-3.2.1/config.h.in
  20. --- smalltalk-3.2.1-orig/config.h.in 2010-07-25 12:37:50.000000000 +0200
  21. +++ smalltalk-3.2.1/config.h.in 2010-07-27 15:09:45.968174955 +0200
  22. @@ -450,6 +450,9 @@
  23. /* Define to 1 if libsigsegv is being used */
  24. #undef HAVE_SIGSEGV_H
  25. +/* Define to 1 if system libsigsegv is being used */
  26. +#undef USE_SYSTEM_SIGSEGV
  27. +
  28. /* Define to 1 if you have the `sigsetmask' function. */
  29. #undef HAVE_SIGSETMASK
  30. diff -ruN smalltalk-3.2.1-orig/configure smalltalk-3.2.1/configure
  31. --- smalltalk-3.2.1-orig/configure 2010-07-25 12:37:33.000000000 +0200
  32. +++ smalltalk-3.2.1/configure 2010-07-27 14:51:36.772169677 +0200
  33. @@ -6199,6 +6199,7 @@
  34. # Check whether --with-system-libsigsegv was given.
  35. if test "${with_system_libsigsegv+set}" = set; then :
  36. withval=$with_system_libsigsegv;
  37. + $as_echo "#define USE_SYSTEM_SIGSEGV 1" >>confdefs.h
  38. else
  39. with_system_libsigsegv=no
  40. fi
  41. diff -ruN smalltalk-3.2.1-orig/libgst/gstpriv.h smalltalk-3.2.1/libgst/gstpriv.h
  42. --- smalltalk-3.2.1-orig/libgst/gstpriv.h 2010-04-21 11:25:01.000000000 +0200
  43. +++ smalltalk-3.2.1/libgst/gstpriv.h 2010-07-27 14:29:14.244174367 +0200
  44. @@ -107,8 +107,12 @@
  45. #endif
  46. #ifdef HAVE_SIGSEGV_H
  47. +#ifdef USE_SYSTEM_SIGSEGV
  48. +#include <sigsegv.h>
  49. +#else
  50. #include "sigsegv.h"
  51. #endif
  52. +#endif
  53. #include "gst.h"