|
|
@ -1,31 +1,23 @@
|
|
|
|
Name: sanlock
|
|
|
|
Name: sanlock
|
|
|
|
Version: 3.8.4
|
|
|
|
Version: 3.9.4
|
|
|
|
Release: 4%{?dist}
|
|
|
|
Release: 2%{?dist}
|
|
|
|
Summary: A shared storage lock manager
|
|
|
|
Summary: A shared storage lock manager
|
|
|
|
|
|
|
|
License: GPL-2.0-only AND GPL-2.0-or-later AND LGPL-2.0-or-later
|
|
|
|
License: GPLv2 and GPLv2+ and LGPLv2+
|
|
|
|
|
|
|
|
URL: https://pagure.io/sanlock/
|
|
|
|
URL: https://pagure.io/sanlock/
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: libaio-devel
|
|
|
|
BuildRequires: libaio-devel
|
|
|
|
BuildRequires: libblkid-devel
|
|
|
|
BuildRequires: libblkid-devel
|
|
|
|
BuildRequires: libuuid-devel
|
|
|
|
BuildRequires: libuuid-devel
|
|
|
|
BuildRequires: make
|
|
|
|
BuildRequires: make
|
|
|
|
BuildRequires: python3
|
|
|
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
|
|
|
BuildRequires: systemd-units
|
|
|
|
BuildRequires: systemd-units
|
|
|
|
Requires: %{name}-lib = %{version}-%{release}
|
|
|
|
Requires: %{name}-lib = %{version}-%{release}
|
|
|
|
Requires(pre): /usr/sbin/groupadd
|
|
|
|
|
|
|
|
Requires(pre): /usr/sbin/useradd
|
|
|
|
|
|
|
|
Requires(post): systemd-units
|
|
|
|
Requires(post): systemd-units
|
|
|
|
Requires(post): systemd-sysv
|
|
|
|
Requires(post): systemd-sysv
|
|
|
|
Requires(preun): systemd-units
|
|
|
|
Requires(preun): systemd-units
|
|
|
|
Requires(postun): systemd-units
|
|
|
|
Requires(postun): systemd-units
|
|
|
|
Source0: https://releases.pagure.org/sanlock/%{name}-%{version}.tar.gz
|
|
|
|
Source0: https://releases.pagure.org/sanlock/%{name}-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
|
|
Patch0: 0001-sanlock-fix-memory-leak-of-lockspace-renewal_history.patch
|
|
|
|
Patch0: 0001-sanlock-fix-invalid-strcpy-in-direct-dump.patch
|
|
|
|
Patch1: 0002-sanlock-fix-pthread_create-error-check.patch
|
|
|
|
|
|
|
|
Patch2: 0003-Revert-sanlock-Shrink-thread-pool-when-there-is-no-w.patch
|
|
|
|
|
|
|
|
Patch3: 0004-sanlock-fix-pthread_create-error-paths.patch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
|
The sanlock daemon manages leases for applications on hosts using shared storage.
|
|
|
|
The sanlock daemon manages leases for applications on hosts using shared storage.
|
|
|
@ -33,9 +25,6 @@ The sanlock daemon manages leases for applications on hosts using shared storage
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
%setup -q
|
|
|
|
%patch0 -p1 -b .backup0
|
|
|
|
%patch0 -p1 -b .backup0
|
|
|
|
%patch1 -p1 -b .backup1
|
|
|
|
|
|
|
|
%patch2 -p1 -b .backup2
|
|
|
|
|
|
|
|
%patch3 -p1 -b .backup3
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
%set_build_flags
|
|
|
|
%set_build_flags
|
|
|
@ -43,7 +32,6 @@ The sanlock daemon manages leases for applications on hosts using shared storage
|
|
|
|
# upstream does not support _smp_mflags
|
|
|
|
# upstream does not support _smp_mflags
|
|
|
|
CFLAGS=$RPM_OPT_FLAGS make -C wdmd
|
|
|
|
CFLAGS=$RPM_OPT_FLAGS make -C wdmd
|
|
|
|
CFLAGS=$RPM_OPT_FLAGS make -C src
|
|
|
|
CFLAGS=$RPM_OPT_FLAGS make -C src
|
|
|
|
CFLAGS=$RPM_OPT_FLAGS make -C python PY_VERSION=3
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
@ -53,15 +41,12 @@ make -C src \
|
|
|
|
make -C wdmd \
|
|
|
|
make -C wdmd \
|
|
|
|
install LIBDIR=%{_libdir} \
|
|
|
|
install LIBDIR=%{_libdir} \
|
|
|
|
DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
make -C python \
|
|
|
|
|
|
|
|
install LIBDIR=%{_libdir} \
|
|
|
|
|
|
|
|
DESTDIR=$RPM_BUILD_ROOT \
|
|
|
|
|
|
|
|
PY_VERSION=3
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
install -D -m 0644 init.d/sanlock.service.native $RPM_BUILD_ROOT/%{_unitdir}/sanlock.service
|
|
|
|
install -D -m 0644 init.d/sanlock.service.native $RPM_BUILD_ROOT/%{_unitdir}/sanlock.service
|
|
|
|
install -D -m 0755 init.d/wdmd $RPM_BUILD_ROOT/usr/lib/systemd/systemd-wdmd
|
|
|
|
install -D -m 0755 init.d/systemd-wdmd $RPM_BUILD_ROOT/usr/lib/systemd/systemd-wdmd
|
|
|
|
install -D -m 0644 init.d/wdmd.service.native $RPM_BUILD_ROOT/%{_unitdir}/wdmd.service
|
|
|
|
install -D -m 0644 init.d/wdmd.service $RPM_BUILD_ROOT/%{_unitdir}/wdmd.service
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
install -p -D -m 0644 src/sanlock.sysusers $RPM_BUILD_ROOT/%{_sysusersdir}/sanlock.conf
|
|
|
|
|
|
|
|
|
|
|
|
install -D -m 0644 src/logrotate.sanlock \
|
|
|
|
install -D -m 0644 src/logrotate.sanlock \
|
|
|
|
$RPM_BUILD_ROOT/etc/logrotate.d/sanlock
|
|
|
|
$RPM_BUILD_ROOT/etc/logrotate.d/sanlock
|
|
|
@ -76,12 +61,7 @@ install -Dd -m 0755 $RPM_BUILD_ROOT/etc/wdmd.d
|
|
|
|
install -Dd -m 0775 $RPM_BUILD_ROOT/%{_localstatedir}/run/sanlock
|
|
|
|
install -Dd -m 0775 $RPM_BUILD_ROOT/%{_localstatedir}/run/sanlock
|
|
|
|
|
|
|
|
|
|
|
|
%pre
|
|
|
|
%pre
|
|
|
|
getent group sanlock > /dev/null || /usr/sbin/groupadd \
|
|
|
|
%sysusers_create_compat sanlock.sysusers
|
|
|
|
-g 179 sanlock
|
|
|
|
|
|
|
|
getent passwd sanlock > /dev/null || /usr/sbin/useradd \
|
|
|
|
|
|
|
|
-u 179 -c "sanlock" -s /sbin/nologin -r \
|
|
|
|
|
|
|
|
-g 179 -d /var/run/sanlock sanlock
|
|
|
|
|
|
|
|
/usr/sbin/usermod -a -G disk sanlock
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
%post
|
|
|
|
%systemd_post wdmd.service sanlock.service
|
|
|
|
%systemd_post wdmd.service sanlock.service
|
|
|
@ -106,9 +86,7 @@ getent passwd sanlock > /dev/null || /usr/sbin/useradd \
|
|
|
|
%config(noreplace) %{_sysconfdir}/logrotate.d/sanlock
|
|
|
|
%config(noreplace) %{_sysconfdir}/logrotate.d/sanlock
|
|
|
|
%config(noreplace) %{_sysconfdir}/sanlock/sanlock.conf
|
|
|
|
%config(noreplace) %{_sysconfdir}/sanlock/sanlock.conf
|
|
|
|
%config(noreplace) %{_sysconfdir}/sysconfig/wdmd
|
|
|
|
%config(noreplace) %{_sysconfdir}/sysconfig/wdmd
|
|
|
|
%doc init.d/sanlock
|
|
|
|
%{_sysusersdir}/sanlock.conf
|
|
|
|
%doc init.d/sanlock.service
|
|
|
|
|
|
|
|
%doc init.d/wdmd.service
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package lib
|
|
|
|
%package lib
|
|
|
|
Summary: A shared storage lock manager library
|
|
|
|
Summary: A shared storage lock manager library
|
|
|
@ -126,20 +104,6 @@ access to the shared disks.
|
|
|
|
%{_libdir}/libsanlock_client.so.*
|
|
|
|
%{_libdir}/libsanlock_client.so.*
|
|
|
|
%{_libdir}/libwdmd.so.*
|
|
|
|
%{_libdir}/libwdmd.so.*
|
|
|
|
|
|
|
|
|
|
|
|
%package -n python3-sanlock
|
|
|
|
|
|
|
|
%{?python_provide:%python_provide python3-sanlock}
|
|
|
|
|
|
|
|
Summary: Python bindings for the sanlock library
|
|
|
|
|
|
|
|
Requires: %{name}-lib = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description -n python3-sanlock
|
|
|
|
|
|
|
|
The %{name}-python package contains a module that permits applications
|
|
|
|
|
|
|
|
written in the Python programming language to use the interface
|
|
|
|
|
|
|
|
supplied by the sanlock library.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n python3-sanlock
|
|
|
|
|
|
|
|
%{python3_sitearch}/sanlock_python-*.egg-info
|
|
|
|
|
|
|
|
%{python3_sitearch}/sanlock*.so
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Requires: %{name}-lib = %{version}-%{release}
|
|
|
|
Requires: %{name}-lib = %{version}-%{release}
|
|
|
@ -162,26 +126,58 @@ developing applications that use %{name}.
|
|
|
|
%{_libdir}/pkgconfig/libsanlock_client.pc
|
|
|
|
%{_libdir}/pkgconfig/libsanlock_client.pc
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Fri Apr 01 2022 David Teigland <teigland@redhat.com> - 3.8.4-4
|
|
|
|
* Wed Aug 14 2024 David Teigland <teigland@redhat.com> - 3.9.4-2
|
|
|
|
- fixes for thread/memory leak
|
|
|
|
- fix invalid strcpy in direct dump
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Aug 09 2024 David Teigland <teigland@redhat.com> - 3.9.4-1
|
|
|
|
|
|
|
|
- new upstream release, adopt sysusers, drop python bindings
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 3.9.0-3
|
|
|
|
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Aug 23 2021 David Teigland <teigland@redhat.com> - 3.8.4-1
|
|
|
|
* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.9.0-2
|
|
|
|
- Update rhel9 beta version to match latest rhel8
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 3.8.1-11
|
|
|
|
* Fri Dec 15 2023 David Teigland <teigland@redhat.com> - 3.9.0-1
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
- rebase to new upstream release
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jun 28 2021 David Teigland <teigland@redhat.com> - 3.8.1-10
|
|
|
|
* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.8.5-4
|
|
|
|
- fuck this process
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 3.8.1-9
|
|
|
|
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 3.8.5-3
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
- Rebuilt for Python 3.12
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.8.5-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Oct 18 2022 David Teigland <teigland@redhat.com> - 3.8.5-1
|
|
|
|
|
|
|
|
- Update to sanlock-3.8.5
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.8.4-6
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 3.8.4-5
|
|
|
|
|
|
|
|
- Rebuilt for Python 3.11
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.8.4-4
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.8.4-3
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 3.8.4-2
|
|
|
|
|
|
|
|
- Rebuilt for Python 3.10
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jun 03 2021 David Teigland <teigland@redhat.com> 3.8.4-1
|
|
|
|
|
|
|
|
- New upstream release
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Feb 24 2021 David Teigland <teigland@redhat.com> 3.8.3-1
|
|
|
|
|
|
|
|
- New upstream release
|
|
|
|
|
|
|
|
- Drop sanlk-reset which is not used.
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.8.1-8
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.8.1-8
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Aug 08 2020 Nir Soffer <nsoffer@redhat.com> - 3.8.1-7
|
|
|
|
* Sat Aug 08 2020 Nir Soffer <nsoffer@redhat.com> - 3.8.1-7
|
|
|
|
- Enable LTO
|
|
|
|
- Enable LTO
|
|
|
|
|
|
|
|
|
|
|
@ -195,7 +191,7 @@ developing applications that use %{name}.
|
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.8.1-4
|
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.8.1-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jul 07 2020 Jeff Law <law@redhat.com> - 3.8.1-3
|
|
|
|
* Tue Jul 08 2020 Jeff Law <law@redhat.com> - 3.8.1-3
|
|
|
|
- Disable LTO
|
|
|
|
- Disable LTO
|
|
|
|
|
|
|
|
|
|
|
|
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 3.8.1-2
|
|
|
|
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 3.8.1-2
|
|
|
|