|
|
@ -1,41 +1,33 @@
|
|
|
|
%global py_prefix python3
|
|
|
|
%global py_prefix python3
|
|
|
|
%global py_binary %{py_prefix}
|
|
|
|
%global py_binary %{py_prefix}
|
|
|
|
|
|
|
|
|
|
|
|
# This package calls LD directly without specifying the LTO plugins. Until
|
|
|
|
# With annobin enabled, CRIU does not work anymore. It seems CRIU's
|
|
|
|
# that is fixed, disable LTO.
|
|
|
|
# parasite code breaks if annobin is enabled.
|
|
|
|
%global _lto_cflags %%{nil}
|
|
|
|
%undefine _annotated_build
|
|
|
|
|
|
|
|
|
|
|
|
Name: criu
|
|
|
|
Name: criu
|
|
|
|
Version: 3.18
|
|
|
|
Version: 3.15
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Release: 3%{?dist}
|
|
|
|
Provides: crtools = %{version}-%{release}
|
|
|
|
Provides: crtools = %{version}-%{release}
|
|
|
|
Obsoletes: crtools <= 1.0-2
|
|
|
|
Obsoletes: crtools <= 1.0-2
|
|
|
|
Summary: Tool for Checkpoint/Restore in User-space
|
|
|
|
Summary: Tool for Checkpoint/Restore in User-space
|
|
|
|
License: GPLv2
|
|
|
|
License: GPLv2
|
|
|
|
URL: http://criu.org/
|
|
|
|
URL: http://criu.org/
|
|
|
|
Source0: https://github.com/checkpoint-restore/criu/archive/v%{version}/criu-%{version}.tar.gz
|
|
|
|
Source0: http://download.openvz.org/criu/criu-%{version}.tar.bz2
|
|
|
|
Source1: criu-tmpfiles.conf
|
|
|
|
Source1: criu-tmpfiles.conf
|
|
|
|
Source2: pycriu-setup-py
|
|
|
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: systemd
|
|
|
|
BuildRequires: systemd
|
|
|
|
BuildRequires: libnet-devel
|
|
|
|
BuildRequires: libnet-devel
|
|
|
|
BuildRequires: protobuf-devel protobuf-c-devel %{py_prefix}-devel libnl3-devel libcap-devel
|
|
|
|
BuildRequires: protobuf-devel protobuf-c-devel %{py_prefix}-devel libnl3-devel libcap-devel
|
|
|
|
BuildRequires: asciidoc xmlto
|
|
|
|
BuildRequires: asciidoc xmlto
|
|
|
|
BuildRequires: %{py_prefix}-pip
|
|
|
|
|
|
|
|
BuildRequires: %{py_prefix}-setuptools
|
|
|
|
|
|
|
|
BuildRequires: %{py_prefix}-wheel
|
|
|
|
|
|
|
|
BuildRequires: perl-interpreter
|
|
|
|
BuildRequires: perl-interpreter
|
|
|
|
BuildRequires: libselinux-devel
|
|
|
|
BuildRequires: libselinux-devel
|
|
|
|
BuildRequires: gnutls-devel
|
|
|
|
BuildRequires: gnutls-devel
|
|
|
|
|
|
|
|
BuildRequires: nftables-devel
|
|
|
|
BuildRequires: make
|
|
|
|
BuildRequires: make
|
|
|
|
# Checkpointing containers with a tmpfs requires tar
|
|
|
|
# Checkpointing containers with a tmpfs requires tar
|
|
|
|
Recommends: tar
|
|
|
|
Recommends: tar
|
|
|
|
|
|
|
|
|
|
|
|
Patch0: 0001-Fix-building-with-annobin.patch
|
|
|
|
|
|
|
|
Patch1: criu.pc.patch
|
|
|
|
|
|
|
|
# Fix to work on CPUs with larger XSAVE area (Sapphire Rapids)
|
|
|
|
|
|
|
|
Patch2: https://github.com/checkpoint-restore/criu/commit/d739260c57576c636759afb312340fa3827312f6.patch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# user-space and kernel changes are only available for x86_64, arm,
|
|
|
|
# user-space and kernel changes are only available for x86_64, arm,
|
|
|
|
# ppc64le, aarch64 and s390x
|
|
|
|
# ppc64le, aarch64 and s390x
|
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=902875
|
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=902875
|
|
|
@ -49,7 +41,7 @@ Linux in user-space.
|
|
|
|
%package devel
|
|
|
|
%package devel
|
|
|
|
Summary: Header files and libraries for %{name}
|
|
|
|
Summary: Header files and libraries for %{name}
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
Requires: %{name}-libs = %{version}-%{release}
|
|
|
|
Requires: criu-libs = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
%description devel
|
|
|
|
This package contains header files and libraries for %{name}.
|
|
|
|
This package contains header files and libraries for %{name}.
|
|
|
@ -80,9 +72,6 @@ their content in human-readable form.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
%setup -q
|
|
|
|
%patch -P 0 -p1
|
|
|
|
|
|
|
|
%patch -P 1 -p1
|
|
|
|
|
|
|
|
%patch -P 2 -p1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
# %{?_smp_mflags} does not work
|
|
|
|
# %{?_smp_mflags} does not work
|
|
|
@ -91,10 +80,6 @@ CFLAGS+=`echo %{optflags} | sed -e 's,-fstack-protector\S*,,g'` make V=1 WERROR=
|
|
|
|
make docs V=1
|
|
|
|
make docs V=1
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
cp %{SOURCE2} lib/py/setup.py
|
|
|
|
|
|
|
|
sed -e "s,--upgrade --force-reinstall,--disable-pip-version-check --progress-bar off --verbose,g;
|
|
|
|
|
|
|
|
s,\./crit,./crit lib/py,g;" -i lib/Makefile
|
|
|
|
|
|
|
|
rm -f crit/pyproject.toml
|
|
|
|
|
|
|
|
make install-criu DESTDIR=$RPM_BUILD_ROOT PREFIX=%{_prefix} LIBDIR=%{_libdir}
|
|
|
|
make install-criu DESTDIR=$RPM_BUILD_ROOT PREFIX=%{_prefix} LIBDIR=%{_libdir}
|
|
|
|
make install-lib DESTDIR=$RPM_BUILD_ROOT PREFIX=%{_prefix} LIBDIR=%{_libdir} PYTHON=%{py_binary}
|
|
|
|
make install-lib DESTDIR=$RPM_BUILD_ROOT PREFIX=%{_prefix} LIBDIR=%{_libdir} PYTHON=%{py_binary}
|
|
|
|
make install-man DESTDIR=$RPM_BUILD_ROOT PREFIX=%{_prefix} LIBDIR=%{_libdir}
|
|
|
|
make install-man DESTDIR=$RPM_BUILD_ROOT PREFIX=%{_prefix} LIBDIR=%{_libdir}
|
|
|
@ -105,17 +90,11 @@ install -d -m 0755 %{buildroot}/run/%{name}/
|
|
|
|
# remove static libs
|
|
|
|
# remove static libs
|
|
|
|
rm $RPM_BUILD_ROOT%{_libdir}/*.a
|
|
|
|
rm $RPM_BUILD_ROOT%{_libdir}/*.a
|
|
|
|
rm -rf $RPM_BUILD_ROOT%{_libexecdir}/%{name}
|
|
|
|
rm -rf $RPM_BUILD_ROOT%{_libexecdir}/%{name}
|
|
|
|
# remove compel man-page
|
|
|
|
|
|
|
|
rm $RPM_BUILD_ROOT%{_mandir}/man1/compel.1*
|
|
|
|
|
|
|
|
# remove amdgpu plugin man-page
|
|
|
|
|
|
|
|
rm $RPM_BUILD_ROOT%{_mandir}/man1/amdgpu_plugin.1*
|
|
|
|
|
|
|
|
# remove criu-ns
|
|
|
|
|
|
|
|
rm $RPM_BUILD_ROOT%{_sbindir}/criu-ns
|
|
|
|
|
|
|
|
rm $RPM_BUILD_ROOT%{_mandir}/man1/criu-ns.1*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%files
|
|
|
|
%{_sbindir}/%{name}
|
|
|
|
%{_sbindir}/%{name}
|
|
|
|
%{_mandir}/man8/criu.8*
|
|
|
|
%{_mandir}/man8/criu.8*
|
|
|
|
|
|
|
|
%{_mandir}/man1/compel.1*
|
|
|
|
%dir /run/%{name}
|
|
|
|
%dir /run/%{name}
|
|
|
|
%{_tmpfilesdir}/%{name}.conf
|
|
|
|
%{_tmpfilesdir}/%{name}.conf
|
|
|
|
%doc README.md COPYING
|
|
|
|
%doc README.md COPYING
|
|
|
@ -130,123 +109,35 @@ rm $RPM_BUILD_ROOT%{_mandir}/man1/criu-ns.1*
|
|
|
|
|
|
|
|
|
|
|
|
%files -n %{py_prefix}-%{name}
|
|
|
|
%files -n %{py_prefix}-%{name}
|
|
|
|
%{python3_sitelib}/pycriu/*
|
|
|
|
%{python3_sitelib}/pycriu/*
|
|
|
|
%{python3_sitelib}/pycriu-%{version}.dist-info
|
|
|
|
%{python3_sitelib}/*egg-info
|
|
|
|
|
|
|
|
|
|
|
|
%files -n crit
|
|
|
|
%files -n crit
|
|
|
|
%{_bindir}/crit
|
|
|
|
%{_bindir}/crit
|
|
|
|
%{python3_sitelib}/crit-%{version}.dist-info
|
|
|
|
|
|
|
|
%doc %{_mandir}/man1/crit.1*
|
|
|
|
%doc %{_mandir}/man1/crit.1*
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Tue Apr 25 2034 Adrian Reber <adrian@lisas.de> - 3.18-1
|
|
|
|
* Fri Aug 06 2021 Jindrich Novy <jnovy@redhat.com> - 3.15-3
|
|
|
|
- Update to 3.18
|
|
|
|
|
|
|
|
- Apply patch from upstream to support newer CPUs
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Mar 31 2023 Jindrich Novy <jnovy@redhat.com> - 3.17.1-1
|
|
|
|
|
|
|
|
- update to https://github.com/checkpoint-restore/criu/releases/tag/v3.17.1
|
|
|
|
|
|
|
|
- Related: #2176063
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jul 11 2022 Radostin Stoyanov <radostin@redhat.com> - 3.17-4
|
|
|
|
|
|
|
|
- Rebuilt to pick up glibc rseq() changes
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jul 04 2022 Radostin Stoyanov <radostin@redhat.com> - 3.17-3
|
|
|
|
|
|
|
|
- Add libprotobuf-c dependency requirement
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon May 09 2022 Adrian Reber <areber@redhat.com> - 3.17-2
|
|
|
|
|
|
|
|
- Update to 3.17
|
|
|
|
|
|
|
|
- Drop upstreamed patch
|
|
|
|
|
|
|
|
- Remove compel man-page
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jan 31 2022 Adrian Reber <areber@redhat.com> - 3.15-13
|
|
|
|
|
|
|
|
- Apply patch to build with annobin enabled
|
|
|
|
|
|
|
|
- Apply patch to fix unsafe IPv6 handling
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Sep 6 2021 Radostin Stoyanov <radostin@redhat.com> - 3.15-12
|
|
|
|
|
|
|
|
- Increase release number from 11 to 12
|
|
|
|
|
|
|
|
- Disable podman test when crun doesn't support checkpoint/restore
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Aug 31 2021 Adrian Reber <areber@redhat.com> - 3.15-11
|
|
|
|
|
|
|
|
- Remove unnecessary Requires: criu-libs
|
|
|
|
|
|
|
|
- Remove wrong BR nftables-devel
|
|
|
|
|
|
|
|
- Bump release for rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Aug 16 2021 Jindrich Novy <jnovy@redhat.com> - 3.15-10
|
|
|
|
|
|
|
|
- disable LTO on RHEL9 again
|
|
|
|
|
|
|
|
- Related: #1970747
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 3.15-9
|
|
|
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Aug 06 2021 Jindrich Novy <jnovy@redhat.com> - 3.15-8
|
|
|
|
|
|
|
|
- add Requires: criu-libs = %%{version}-%%{release} in criu-devel
|
|
|
|
- add Requires: criu-libs = %%{version}-%%{release} in criu-devel
|
|
|
|
- Related: #1970747
|
|
|
|
- add gating tests
|
|
|
|
|
|
|
|
- Related: #1934415
|
|
|
|
* Wed Aug 04 2021 Jindrich Novy <jnovy@redhat.com> - 3.15-7
|
|
|
|
|
|
|
|
- remove pre-RHEL9 hacks
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed May 05 2021 Adrian Reber <areber@redhat.com> - 3.15-6
|
|
|
|
|
|
|
|
- Enable criu-devel and criu-libs for RHEL 9
|
|
|
|
|
|
|
|
- Remove nftables-devel dependency for now
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Apr 15 2021 Mohan Boddu <mboddu@redhat.com> - 3.15-4
|
|
|
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.15-3
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jan 13 09:45:16 CET 2021 Adrian Reber <adrian@lisas.de> - 3.15-2
|
|
|
|
|
|
|
|
- Rebuilt for protobuf 3.14
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Nov 04 2020 Adrian Reber <adrian@lisas.de> - 3.15-1
|
|
|
|
|
|
|
|
- Update to 3.15
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Sep 23 2020 Adrian Reber <adrian@lisas.de> - 3.14-8
|
|
|
|
* Tue Jul 20 2021 Jindrich Novy <jnovy@redhat.com> - 3.15-2
|
|
|
|
- Rebuilt for protobuf 3.13
|
|
|
|
- add -devel and -libs subpackages
|
|
|
|
|
|
|
|
- Resolves: #1971718
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.14-7
|
|
|
|
* Wed Nov 04 2020 Jindrich Novy <jnovy@redhat.com> - 3.15-1
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
- update to https://github.com/checkpoint-restore/criu/releases/tag/v3.15
|
|
|
|
|
|
|
|
- Related: #1883490
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jul 14 2020 Jeff Law <law@redhat.com> - 3.14-6
|
|
|
|
* Mon May 25 2020 Jindrich Novy <jnovy@redhat.com> - 3.14-2
|
|
|
|
- Disable LTO
|
|
|
|
- fix "Need to fix bugs found by coverity."
|
|
|
|
|
|
|
|
- Related: #1821193
|
|
|
|
|
|
|
|
|
|
|
|
* Sun Jun 14 2020 Adrian Reber <adrian@lisas.de> - 3.14-5
|
|
|
|
* Tue May 12 2020 Jindrich Novy <jnovy@redhat.com> - 3.14-1
|
|
|
|
- Rebuilt for protobuf 3.12
|
|
|
|
- synchronize containter-tools 8.3.0 with 8.2.1
|
|
|
|
|
|
|
|
- Related: #1821193
|
|
|
|
|
|
|
|
|
|
|
|
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 3.14-4
|
|
|
|
* Mon May 13 2019 Adrian Reber <adrian@lisas.de> - 3.12-9
|
|
|
|
- Rebuilt for Python 3.9
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Apr 30 2020 Adrian Reber <adrian@lisas.de> - 3.14-3
|
|
|
|
|
|
|
|
- BuildRequire nftables-devel for working CI
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Apr 30 2020 Adrian Reber <adrian@lisas.de> - 3.14-2
|
|
|
|
|
|
|
|
- Rebuild for CI fixes
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Apr 29 2020 Adrian Reber <adrian@lisas.de> - 3.14-1
|
|
|
|
|
|
|
|
- Update to 3.14 (#1829399)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sun Mar 29 2020 Andrei Vagin <avagin@gmail.com> - 3.13-7
|
|
|
|
|
|
|
|
- Added patch for gcc-10
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.13-6
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Sep 16 2019 Adrian Reber <adrian@lisas.de> - 3.13-5
|
|
|
|
|
|
|
|
- Update to 3.13 (#1751146)
|
|
|
|
|
|
|
|
- Drop upstreamed patches
|
|
|
|
|
|
|
|
- Drop static library
|
|
|
|
|
|
|
|
- Add compel man-page
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 3.12-14
|
|
|
|
|
|
|
|
- Rebuilt for Python 3.8
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.12-13
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue May 14 2019 Adrian Reber <adrian@lisas.de> - 3.12-11
|
|
|
|
|
|
|
|
- Test different decision_context in gating.yaml
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon May 13 2019 Adrian Reber <adrian@lisas.de> - 3.12-10
|
|
|
|
|
|
|
|
- Added additional fixup patches for the socket labelling
|
|
|
|
- Added additional fixup patches for the socket labelling
|
|
|
|
|
|
|
|
|
|
|
|
* Sat May 04 2019 Adrian Reber <adrian@lisas.de> - 3.12-8
|
|
|
|
* Sat May 04 2019 Adrian Reber <adrian@lisas.de> - 3.12-8
|
|
|
@ -267,15 +158,16 @@ rm $RPM_BUILD_ROOT%{_mandir}/man1/criu-ns.1*
|
|
|
|
- Build against SELinux (Fedora and RHEL8)
|
|
|
|
- Build against SELinux (Fedora and RHEL8)
|
|
|
|
- Build against libbsd (Fedora)
|
|
|
|
- Build against libbsd (Fedora)
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.11-3
|
|
|
|
* Thu Feb 14 2019 Adrian Reber <areber@redhat.com> - 3.11-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Jan 19 2019 Adrian Reber <adrian@lisas.de> - 3.11-2
|
|
|
|
|
|
|
|
- Added patch for gcc-9
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Nov 06 2018 Adrian Reber <adrian@lisas.de> - 3.11-1
|
|
|
|
|
|
|
|
- Updated to 3.11
|
|
|
|
- Updated to 3.11
|
|
|
|
- Removed upstreamed patches
|
|
|
|
- Removed upstreamed patches
|
|
|
|
|
|
|
|
- Added patch for gcc-9
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Dec 11 2018 Adrian Reber <adrian@lisas.de> - 3.10-7
|
|
|
|
|
|
|
|
- Fix 'criu check --feature link_nsid' with more than 10 interfaces (#1652442)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Dec 11 2018 Adrian Reber <adrian@lisas.de> - 3.10-6
|
|
|
|
|
|
|
|
- Make sure no iptables rules are left after restore (#1652471)
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Oct 30 2018 Adrian Reber <adrian@lisas.de> - 3.10-5
|
|
|
|
* Tue Oct 30 2018 Adrian Reber <adrian@lisas.de> - 3.10-5
|
|
|
|
- Added Recommends: tar
|
|
|
|
- Added Recommends: tar
|
|
|
|