Compare commits

...

No commits in common. "c8" and "c9-beta" have entirely different histories.
c8 ... c9-beta

4 changed files with 59 additions and 26 deletions

2
.gitignore vendored
View File

@ -1 +1 @@
SOURCES/libsigsegv-2.11.tar.gz
SOURCES/libsigsegv-2.13.tar.gz

View File

@ -1 +1 @@
186dea8ae788395476bd7cbaf38c17ebe82e1777 SOURCES/libsigsegv-2.11.tar.gz
c371743afe08c2ec817bd6d37f32d40cb28ea5a9 SOURCES/libsigsegv-2.13.tar.gz

12
SOURCES/configure.patch Normal file
View File

@ -0,0 +1,12 @@
diff -Nrup a/m4/fault.m4 b/m4/fault.m4
--- a/m4/fault.m4 2014-01-02 15:26:46.000000000 -0700
+++ b/m4/fault.m4 2020-01-17 15:40:41.420148995 -0700
@@ -49,7 +49,7 @@ static int zero_fd;
# define SIGSEGV_FAULT_ADDRESS_ROUNDOFF_BITS 0UL
#endif
unsigned long page;
-int handler_called = 0;
+volatile int handler_called = 0;
void sigsegv_handler ($5)
{
void *fault_address = (void *) ($6);

View File

@ -1,14 +1,16 @@
Summary: Library for handling page faults in user mode
Name: libsigsegv
Version: 2.11
Release: 5%{?dist}
Version: 2.13
Release: 4%{?dist}
Summary: Library for handling page faults in user mode
License: GPLv2+
URL: https://www.gnu.org/software/libsigsegv/
Source0: http://ftp.gnu.org/gnu/libsigsegv/libsigsegv-%{version}.tar.gz
Patch0: configure.patch
BuildRequires: automake libtool
BuildRequires: gcc
BuildRequires: make
%description
This is a library for handling page faults in user mode. A page fault
@ -35,33 +37,24 @@ Requires: %{name}-devel%{?_isa} = %{version}-%{release}
%prep
%setup -q
%autosetup -p1
%build
autoreconf -ivf
%configure \
--enable-shared \
--disable-silent-rules \
--enable-static
make %{?_smp_mflags}
%{make_build}
%install
make install DESTDIR=%{buildroot}
%{make_install}
## FIXME/TODO: review if this is needed anymore, particularly after usrmove
%if 0%{?fedora} > 11
# move shlib to %{_lib}
pushd %{buildroot}%{_libdir}
mkdir ../../%{_lib}
mv libsigsegv.so.2* ../../%{_lib}/
ln -sf ../../%{_lib}/libsigsegv.so.2 %{buildroot}%{_libdir}/libsigsegv.so
popd
%endif
## unpackaged files
rm -fv %{buildroot}%{_libdir}/lib*.la
# remove libtool archives
find %{buildroot} -type f -name "*.la" -delete
%check
@ -71,13 +64,9 @@ make check
%ldconfig_scriptlets
%files
%doc AUTHORS NEWS README
%license COPYING
%if 0%{?fedora} > 11
/%{_lib}/libsigsegv.so.2*
%else
%doc AUTHORS NEWS README
%{_libdir}/libsigsegv.so.2*
%endif
%files devel
%{_libdir}/libsigsegv.so
@ -88,6 +77,38 @@ make check
%changelog
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 2.13-4
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 2.13-3
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.13-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Sun Jan 17 2021 Peter Robinson <pbrobinson@fedoraproject.org> - 2.13-1
- Update to 2.13
- spec file cleanup
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.11-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.11-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Fri Jan 17 2020 Jeff Law <law@redhat.com> - 2.11-9
- Fix configure tests compromised by LTO
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.11-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.11-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.11-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.11-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild