.
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libsigsegv?expand=0&rev=3
This commit is contained in:
parent
6ab37ebcf3
commit
43eb423c89
26
fix-build-in-qemu.patch
Normal file
26
fix-build-in-qemu.patch
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
---
|
||||||
|
libsigsegv-2.10/tests/Makefile.am | 2 +-
|
||||||
|
libsigsegv-2.10/tests/Makefile.in | 1 -
|
||||||
|
2 files changed, 1 insertion(+), 2 deletions(-)
|
||||||
|
|
||||||
|
--- a/libsigsegv-2.10/tests/Makefile.am
|
||||||
|
+++ b/libsigsegv-2.10/tests/Makefile.am
|
||||||
|
@@ -20,7 +20,7 @@
|
||||||
|
|
||||||
|
AUTOMAKE_OPTIONS = 1.11 gnits no-dependencies color-tests
|
||||||
|
|
||||||
|
-TESTS = sigsegv1 sigsegv2 sigsegv3 stackoverflow1 stackoverflow2
|
||||||
|
+TESTS = sigsegv1 sigsegv2 sigsegv3
|
||||||
|
|
||||||
|
EXTRA_DIST = mmaputil.h altstack.h
|
||||||
|
|
||||||
|
--- a/libsigsegv-2.10/tests/Makefile.in
|
||||||
|
+++ b/libsigsegv-2.10/tests/Makefile.in
|
||||||
|
@@ -35,7 +35,6 @@ POST_UNINSTALL = :
|
||||||
|
build_triplet = @build@
|
||||||
|
host_triplet = @host@
|
||||||
|
TESTS = sigsegv1$(EXEEXT) sigsegv2$(EXEEXT) sigsegv3$(EXEEXT) \
|
||||||
|
- stackoverflow1$(EXEEXT) stackoverflow2$(EXEEXT) \
|
||||||
|
$(am__EXEEXT_1) $(am__EXEEXT_2)
|
||||||
|
noinst_PROGRAMS = sigsegv1$(EXEEXT) sigsegv2$(EXEEXT) \
|
||||||
|
sigsegv3$(EXEEXT) stackoverflow1$(EXEEXT) \
|
3
libsigsegv-2.10.tar.gz
Normal file
3
libsigsegv-2.10.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:8460a4a3dd4954c3d96d7a4f5dd5bc4d9b76f5754196aa245287553b26d2199a
|
||||||
|
size 402279
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:43614d495ec1aa73b2aec63b6a702508955025de53b1ab1a9f4f96799bd5b1e5
|
|
||||||
size 319113
|
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed May 8 13:09:02 UTC 2013 - werner@suse.de
|
||||||
|
|
||||||
|
- Update tp version 2.10
|
||||||
|
- Adopt patch fix-build-in-qemu.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Jan 31 10:39:15 UTC 2012 - jengelh@medozas.de
|
Tue Jan 31 10:39:15 UTC 2012 - jengelh@medozas.de
|
||||||
|
|
||||||
|
@ -1,49 +1,85 @@
|
|||||||
# vim: set sw=4 ts=4 et nu:
|
#
|
||||||
|
# spec file for package sigsegv
|
||||||
|
#
|
||||||
|
# Copyright (c) 2013 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
|
||||||
|
# upon. The license for this file, and modifications and additions to the
|
||||||
|
# file, is the same license as for the pristine package itself (unless the
|
||||||
|
# license for the pristine package is not an Open Source License, in which
|
||||||
|
# case the license is the MIT License). An "Open Source License" is a
|
||||||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
|
|
||||||
Name: libsigsegv
|
Name: libsigsegv
|
||||||
Version: 2.9
|
%define somajor 2
|
||||||
%define soname 2
|
%define lname libsigsegv%somajor
|
||||||
|
BuildRequires: autoconf
|
||||||
|
BuildRequires: automake
|
||||||
|
BuildRequires: gcc
|
||||||
|
BuildRequires: glibc-devel
|
||||||
|
BuildRequires: libtool
|
||||||
|
BuildRequires: make
|
||||||
|
BuildRequires: pkgconfig
|
||||||
|
Version: 2.10
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Handling Page Faults in User Mode
|
Summary: Library for Handling Page Faults in User Mode
|
||||||
# ftp://ftp.gnu.org/pub/gnu/libsigsegv/libsigsegv-%{version}.tar.gz
|
|
||||||
Source: libsigsegv-%{version}.tar.bz2
|
|
||||||
URL: http://libsigsegv.sourceforge.net/
|
URL: http://libsigsegv.sourceforge.net/
|
||||||
|
Source: ftp://ftp.gnu.org/pub/gnu/libsigsegv/libsigsegv-%{version}.tar.gz
|
||||||
|
# PATCH-FIX-OPENSUSE -- make it build in qemu
|
||||||
|
Patch0: fix-build-in-qemu.patch
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
License: GNU General Public License version 2 or later (GPL v2 or later)
|
License: GPL-2.0+
|
||||||
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
||||||
BuildRequires: gcc make glibc-devel pkgconfig
|
|
||||||
BuildRequires: autoconf automake libtool
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This is a library for handling page faults in user mode. A page fault occurs
|
This is a library for handling page faults in user mode. A page fault occurs
|
||||||
when a program tries to access to a region of memory that is currently not
|
when a program tries to access to a region of memory that is currently not
|
||||||
available.
|
available.
|
||||||
|
|
||||||
%package -n %{name}%{soname}
|
%package -n %lname
|
||||||
Summary: Handling Page Faults in User Mode
|
Summary: Library for Handling Page Faults in User Mode
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
|
|
||||||
%description -n %{name}%{soname}
|
%description -n %lname
|
||||||
This is a library for handling page faults in user mode. A page fault occurs
|
This is a library for handling page faults in user mode. A page fault occurs
|
||||||
when a program tries to access to a region of memory that is currently not
|
when a program tries to access to a region of memory that is currently not
|
||||||
available.
|
available.
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Handling Page Faults in User Mode
|
Summary: Library for Handling Page Faults in User Mode
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Requires: %{name}%{soname} = %{version}-%{release}
|
Requires: %lname = %{version}-%{release}
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
This is a library for handling page faults in user mode. A page fault occurs
|
This is a library for handling page faults in user mode. A page fault occurs
|
||||||
when a program tries to access to a region of memory that is currently not
|
when a program tries to access to a region of memory that is currently not
|
||||||
available.
|
available.
|
||||||
|
|
||||||
|
%package doc
|
||||||
|
Summary: Library for Handling Page Faults in User Mode
|
||||||
|
Group: Development/Libraries/C and C++
|
||||||
|
Group: Documentation/Other
|
||||||
|
|
||||||
|
%description doc
|
||||||
|
This is a library for handling page faults in user mode. A page fault occurs
|
||||||
|
when a program tries to access to a region of memory that is currently not
|
||||||
|
available.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%if 0%{?qemu_user_space_build:1}
|
||||||
|
# qemu does not support stack overflows well ;)
|
||||||
|
%patch0 -p1 -b .qemu
|
||||||
|
%endif
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure \
|
%configure \
|
||||||
--enable-shared
|
--enable-shared \
|
||||||
|
--enable-static
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@ -53,18 +89,20 @@ make %{?_smp_mflags}
|
|||||||
%check
|
%check
|
||||||
%__make check
|
%__make check
|
||||||
|
|
||||||
%post -n %{name}%{soname} -p /sbin/ldconfig
|
%post -n %lname -p /sbin/ldconfig
|
||||||
%postun -n %{name}%{soname} -p /sbin/ldconfig
|
%postun -n %lname -p /sbin/ldconfig
|
||||||
|
|
||||||
%files -n %{name}%{soname}
|
%files doc
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc AUTHORS COPYING ChangeLog* NEWS PORTING README
|
%doc AUTHORS COPYING ChangeLog* NEWS PORTING README
|
||||||
%{_libdir}/libsigsegv.so.%{soname}
|
|
||||||
%{_libdir}/libsigsegv.so.%{soname}.*
|
%files -n %lname
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%{_libdir}/libsigsegv.so.%{somajor}
|
||||||
|
%{_libdir}/libsigsegv.so.%{somajor}.*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_includedir}/sigsegv.h
|
%{_includedir}/sigsegv.h
|
||||||
%{_libdir}/libsigsegv.so
|
%{_libdir}/libsigsegv.so
|
||||||
%{_libdir}/libsigsegv.a
|
%{_libdir}/libsigsegv.a
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user