From: Peter Korsgaard Date: Fri, 27 Apr 2018 22:28:11 +0200 Subject: [Buildroot] [PATCH 2/2] procps-ng: fix build for sparc In-Reply-To: (Baruch Siach's message of "Fri, 27 Apr 2018 07:40:33 +0300") References: Message-ID: <871sf0z95w.fsf@dell.be.48ers.dk> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net >>>>> "Baruch" == Baruch Siach writes: > 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 > --- > .../0001-proc-sig-fix-build-for-sparc.patch | 43 +++++++++++++++++++ > 1 file changed, 43 insertions(+) > create mode 100644 package/procps-ng/0001-proc-sig-fix-build-for-sparc.patch > 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 000000000000..74f822aea357 > --- /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 > +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 > +--- > +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 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__) It might have been nicer to do: #if defined(__GNU__) && defined(SIGLOST) To keep the behaviour for the __GNU__ case, but ok. Committed, thanks. -- Bye, Peter Korsgaard