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.

56 lines
2.6 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../musl/pkg/gcc/0034-gcc-go-Fix-handling-of-signal-34-on-musl.patch
  5. # Copyright (C) 2020 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. From 1d0cd9bbbef7d1bd3f42ad493db8d08b539cba60 Mon Sep 17 00:00:00 2001
  17. From: "A. Wilcox" <AWilcox@Wilcox-Tech.com>
  18. Date: Sun, 30 Aug 2020 17:59:45 +0200
  19. Subject: [PATCH] gcc-go: Fix handling of signal 34 on musl
  20. MIME-Version: 1.0
  21. Content-Type: text/plain; charset=UTF-8
  22. Content-Transfer-Encoding: 8bit
  23. Taken from Adélie Linux.
  24. ---
  25. libgo/mksigtab.sh | 6 ++++--
  26. 1 file changed, 4 insertions(+), 2 deletions(-)
  27. diff --git a/libgo/mksigtab.sh b/libgo/mksigtab.sh
  28. index 11e4ec436bd..fe866eacb27 100644
  29. --- a/libgo/mksigtab.sh
  30. +++ b/libgo/mksigtab.sh
  31. @@ -82,7 +82,7 @@ checksig _SIGPWR '{_SigNotify, "SIGPWR: power failure restart"}'
  32. checksig _SIGEMT '{_SigThrow, "SIGEMT: emulate instruction executed"}'
  33. checksig _SIGINFO '{_SigNotify, "SIGINFO: status request from keyboard"}'
  34. checksig _SIGTHR '{_SigNotify, "SIGTHR: reserved"}'
  35. -checksig _SIGPOLL '{_SigNotify, "SIGPOLL: pollable event occurred"}'
  36. +#checksig _SIGPOLL '{_SigNotify, "SIGPOLL: pollable event occurred"}'
  37. checksig _SIGWAITING '{_SigNotify, "SIGWAITING: reserved signal no longer used by"}'
  38. checksig _SIGLWP '{_SigNotify, "SIGLWP: reserved signal no longer used by"}'
  39. checksig _SIGFREEZE '{_SigNotify, "SIGFREEZE: special signal used by CPR"}'
  40. @@ -95,10 +95,12 @@ checksig _SIGLOST ' {_SigNotify, "SIGLOST: resource lost (Sun); server died (G
  41. # Special handling of signals 32 and 33 on GNU/Linux systems,
  42. # because they are special to glibc.
  43. +# Signal 34 is additionally special to Linux systems with musl.
  44. if test "${GOOS}" = "linux"; then
  45. - SIGLIST=$SIGLIST"_32__33_"
  46. + SIGLIST=$SIGLIST"_32__33__34_"
  47. echo ' 32: {_SigSetStack + _SigUnblock, "signal 32"}, /* SIGCANCEL; see issue 6997 */'
  48. echo ' 33: {_SigSetStack + _SigUnblock, "signal 33"}, /* SIGSETXID; see issues 3871, 9400, 12498 */'
  49. + echo ' 34: {_SigSetStack + _SigUnblock, "signal 34"}, /* see issue 30062 */'
  50. fi
  51. if test "${GOOS}" = "aix"; then