All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [git commit branch/2018.02.x] procps-ng: fix build for sparc
@ 2018-06-11 21:04 Peter Korsgaard
  0 siblings, 0 replies; only message in thread
From: Peter Korsgaard @ 2018-06-11 21:04 UTC (permalink / raw)
  To: buildroot

commit: https://git.buildroot.net/buildroot/commit/?id=52e42fd71ab08a82293d9cd49c2f756e6954c0b4
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2018.02.x

Add a patch taken from upstream bug report to fix wrong signal undefined
in sparc.

Fixes:
http://autobuild.buildroot.net/results/b02/b02bd2e4032287d3c5c58255d621ef785c5d1380/

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
(cherry picked from commit a9a64b7207d1682d2f66c41373c6de391a224fd7)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
---
 .../0001-proc-sig-fix-build-for-sparc.patch        | 43 ++++++++++++++++++++++
 1 file changed, 43 insertions(+)

diff --git a/package/procps-ng/0001-proc-sig-fix-build-for-sparc.patch b/package/procps-ng/0001-proc-sig-fix-build-for-sparc.patch
new file mode 100644
index 0000000000..74f822aea3
--- /dev/null
+++ b/package/procps-ng/0001-proc-sig-fix-build-for-sparc.patch
@@ -0,0 +1,43 @@
+From 070feb7c5ebd0f2ca721ca5d75bdd3fd8cffe961 Mon Sep 17 00:00:00 2001
+From: Baruch Siach <baruch@tkos.co.il>
+Date: Fri, 27 Apr 2018 07:34:57 +0300
+Subject: [PATCH] proc/sig: fix build for sparc
+
+The code undefines SIGLOST which breaks references to SIGPWR.
+
+Taken from a patch suggested in upstream bug report #93.
+
+Signed-off-by: Baruch Siach <baruch@tkos.co.il>
+---
+Upstream status: https://gitlab.com/procps-ng/procps/issues/93
+---
+ proc/sig.c | 6 +-----
+ 1 file changed, 1 insertion(+), 5 deletions(-)
+
+diff --git a/proc/sig.c b/proc/sig.c
+index b883185fc28a..6ca9512cc70c 100644
+--- a/proc/sig.c
++++ b/proc/sig.c
+@@ -52,10 +52,6 @@
+ #  undef SIGSTKFLT
+ #endif
+ 
+-#if !defined(__GNU__) && defined(SIGLOST)
+-#  undef SIGLOST
+-#endif
+-
+ #ifndef SIGRTMIN
+ #  warning Standards require that <signal.h> define SIGRTMIN; assuming 32
+ #  define SIGRTMIN 32
+@@ -87,7 +83,7 @@ static const mapstruct sigtable[] = {
+   {"ILL",    SIGILL},
+   {"INT",    SIGINT},
+   {"KILL",   SIGKILL},
+-#ifdef SIGLOST
++#if defined(__GNU__)
+   {"LOST",   SIGLOST},  /* Hurd-specific */
+ #endif
+   {"PIPE",   SIGPIPE},
+-- 
+2.17.0
+

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2018-06-11 21:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-11 21:04 [Buildroot] [git commit branch/2018.02.x] procps-ng: fix build for sparc Peter Korsgaard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.