Accepting request 282995 from home:dimstar:sigsegv

- Add libsigsegv-kernel-3.18.2.patch: Since kernel 3.18.2, a stack
  overflow gives a SIGBUS, no longer SIGSEGV.

quite urgent, as this is a ring package currently breaking all stagings, as it does not cope with kernel 3.18.3 as-is.

OBS-URL: https://build.opensuse.org/request/show/282995
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libsigsegv?expand=0&rev=8
This commit is contained in:
Marcus Meissner 2015-01-28 12:14:40 +00:00 committed by Git OBS Bridge
parent 1d5ac175c3
commit 88f2c543af
3 changed files with 38 additions and 1 deletions

View File

@ -0,0 +1,29 @@
Index: libsigsegv-2.10/src/Makefile.am
===================================================================
--- libsigsegv-2.10.orig/src/Makefile.am
+++ libsigsegv-2.10/src/Makefile.am
@@ -57,7 +57,7 @@ noinst_HEADERS = \
fault-solaris.h fault-solaris-i386.h fault-solaris-sparc.h \
machfault.h machfault-macos.h \
signals.h signals-bsd.h signals-hpux.h signals-hurd.h signals-macos.h \
- leave.h \
+ signals-linux.h leave.h \
stackvma.h
EXTRA_DIST = \
Index: libsigsegv-2.10/src/signals.h
===================================================================
--- libsigsegv-2.10.orig/src/signals.h
+++ libsigsegv-2.10/src/signals.h
@@ -1,4 +1,4 @@
-/* List of signals. Generic Unix version.
+/* List of signals. Hurd version.
Copyright (C) 2002 Bruno Haible <bruno@clisp.org>
This program is free software; you can redistribute it and/or modify
@@ -18,4 +18,4 @@
/* List of signals that are sent when an invalid virtual memory address
is accessed, or when the stack overflows. */
#define SIGSEGV_FOR_ALL_SIGNALS(var,body) \
- { int var; var = SIGSEGV; { body } }
+ { int var; var = SIGSEGV; { body } var = SIGBUS; { body } }

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Jan 27 13:20:19 UTC 2015 - dimstar@opensuse.org
- Add libsigsegv-kernel-3.18.2.patch: Since kernel 3.18.2, a stack
overflow gives a SIGBUS, no longer SIGSEGV.
-------------------------------------------------------------------
Wed Jul 3 12:36:56 UTC 2013 - schwab@suse.de

View File

@ -1,7 +1,7 @@
#
# spec file for package libsigsegv
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -33,6 +33,7 @@ License: GPL-2.0+
Group: System/Libraries
Url: http://libsigsegv.sourceforge.net/
Source: ftp://ftp.gnu.org/pub/gnu/libsigsegv/libsigsegv-%{version}.tar.gz
Patch0: libsigsegv-kernel-3.18.2.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
@ -70,6 +71,7 @@ available.
%prep
%setup -q
%patch0 -p1
%build
%configure \