|
|
@ -1,10 +1,10 @@
|
|
|
|
Summary: A GNU archiving program
|
|
|
|
Summary: A GNU archiving program
|
|
|
|
Name: cpio
|
|
|
|
Name: cpio
|
|
|
|
Version: 2.13
|
|
|
|
Version: 2.12
|
|
|
|
Release: 16%{?dist}
|
|
|
|
Release: 11%{?dist}
|
|
|
|
License: GPLv3+
|
|
|
|
License: GPLv3+
|
|
|
|
URL: https://www.gnu.org/software/cpio/
|
|
|
|
URL: http://www.gnu.org/software/cpio/
|
|
|
|
Source: https://ftp.gnu.org/gnu/cpio/cpio-%{version}.tar.bz2
|
|
|
|
Source: ftp://ftp.gnu.org/gnu/cpio/cpio-%{version}.tar.bz2
|
|
|
|
|
|
|
|
|
|
|
|
# help2man generated manual page distributed only in RHEL/Fedora
|
|
|
|
# help2man generated manual page distributed only in RHEL/Fedora
|
|
|
|
Source1: cpio.1
|
|
|
|
Source1: cpio.1
|
|
|
@ -15,11 +15,11 @@ Patch1: cpio-2.9-rh.patch
|
|
|
|
# fix warn_if_file_changed() and set exit code to 1 when cpio fails to store
|
|
|
|
# fix warn_if_file_changed() and set exit code to 1 when cpio fails to store
|
|
|
|
# file > 4GB (#183224)
|
|
|
|
# file > 4GB (#183224)
|
|
|
|
# http://lists.gnu.org/archive/html/bug-cpio/2006-11/msg00000.html
|
|
|
|
# http://lists.gnu.org/archive/html/bug-cpio/2006-11/msg00000.html
|
|
|
|
Patch2: cpio-2.13-exitCode.patch
|
|
|
|
Patch2: cpio-2.9-exitCode.patch
|
|
|
|
|
|
|
|
|
|
|
|
# Support major/minor device numbers over 127 (bz#450109)
|
|
|
|
# Support major/minor device numbers over 127 (bz#450109)
|
|
|
|
# http://lists.gnu.org/archive/html/bug-cpio/2008-07/msg00000.html
|
|
|
|
# http://lists.gnu.org/archive/html/bug-cpio/2008-07/msg00000.html
|
|
|
|
Patch3: cpio-2.13-dev_number.patch
|
|
|
|
Patch3: cpio-2.9-dev_number.patch
|
|
|
|
|
|
|
|
|
|
|
|
# Define default remote shell as /usr/bin/ssh (#452904)
|
|
|
|
# Define default remote shell as /usr/bin/ssh (#452904)
|
|
|
|
Patch4: cpio-2.9.90-defaultremoteshell.patch
|
|
|
|
Patch4: cpio-2.9.90-defaultremoteshell.patch
|
|
|
@ -36,24 +36,18 @@ Patch7: cpio-2.10-longnames-split.patch
|
|
|
|
# Cpio does Sum32 checksum, not CRC (downstream)
|
|
|
|
# Cpio does Sum32 checksum, not CRC (downstream)
|
|
|
|
Patch8: cpio-2.11-crc-fips-nit.patch
|
|
|
|
Patch8: cpio-2.11-crc-fips-nit.patch
|
|
|
|
|
|
|
|
|
|
|
|
# Fix multiple definition of `program_name'
|
|
|
|
|
|
|
|
Patch9: cpio-2.13-mutiple-definition.patch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Revert fix for CVE-2015-1197 (#1797163)
|
|
|
|
|
|
|
|
# reverts upstream commit 45b0ee2b4
|
|
|
|
|
|
|
|
Patch10: cpio-2.13-revert-CVE-2015-1197-fix.patch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Extract: retain times for symlinks
|
|
|
|
# Extract: retain times for symlinks
|
|
|
|
# downstream patch (#1486364)
|
|
|
|
# downstream patch (#1487673)
|
|
|
|
# https://www.mail-archive.com/bug-cpio@gnu.org/msg00605.html
|
|
|
|
# https://www.mail-archive.com/bug-cpio@gnu.org/msg00605.html
|
|
|
|
Patch11: cpio-2.11-retain-symlink-times.patch
|
|
|
|
Patch9: cpio-2.11-retain-symlink-times.patch
|
|
|
|
|
|
|
|
|
|
|
|
# Properly drop priviledges for remote command
|
|
|
|
# Fixed improper input validation when writing tar header fields
|
|
|
|
# http://git.savannah.gnu.org/cgit/paxutils.git/commit/?id=d247e3c2809a37b6d0c3067251d96bb7f12555e7
|
|
|
|
# upstream patch (#1766223)
|
|
|
|
Patch12: cpio-2.13-reset-gid-uid.patch
|
|
|
|
# https://cement.retrofitta.se/tmp/cpio-tar.patch
|
|
|
|
|
|
|
|
Patch10: cpio-2.12-improper-input-validation.patch
|
|
|
|
|
|
|
|
|
|
|
|
# Fixed integer overflow in ds_fgetstr()
|
|
|
|
# Fixed integer overflow in ds_fgetstr()
|
|
|
|
# upstream patch (#1992512)
|
|
|
|
# upstream patch (#1992511)
|
|
|
|
# https://git.savannah.gnu.org/cgit/cpio.git/commit/?id=dd96882877721703e19272fe25034560b794061b
|
|
|
|
# https://git.savannah.gnu.org/cgit/cpio.git/commit/?id=dd96882877721703e19272fe25034560b794061b
|
|
|
|
# https://git.savannah.gnu.org/cgit/cpio.git/commit/?id=dfc801c44a93bed7b3951905b188823d6a0432c8
|
|
|
|
# https://git.savannah.gnu.org/cgit/cpio.git/commit/?id=dfc801c44a93bed7b3951905b188823d6a0432c8
|
|
|
|
# https://git.savannah.gnu.org/cgit/cpio.git/commit/?id=236684f6deb3178043fe72a8e2faca538fa2aae1
|
|
|
|
# https://git.savannah.gnu.org/cgit/cpio.git/commit/?id=236684f6deb3178043fe72a8e2faca538fa2aae1
|
|
|
@ -62,14 +56,13 @@ Patch12: cpio-2.13-reset-gid-uid.patch
|
|
|
|
# https://git.savannah.gnu.org/cgit/cpio.git/commit/?id=7dd8ba91d8b6a2640e6c01c3e3a4234828646f23
|
|
|
|
# https://git.savannah.gnu.org/cgit/cpio.git/commit/?id=7dd8ba91d8b6a2640e6c01c3e3a4234828646f23
|
|
|
|
# https://git.savannah.gnu.org/cgit/cpio.git/commit/?id=684b7ac5767e676cda78c161aeb7fe7b45a07529
|
|
|
|
# https://git.savannah.gnu.org/cgit/cpio.git/commit/?id=684b7ac5767e676cda78c161aeb7fe7b45a07529
|
|
|
|
# https://git.savannah.gnu.org/cgit/cpio.git/commit/?id=b1c85839bf1381f749dd45bf6a5a38924e3315a0
|
|
|
|
# https://git.savannah.gnu.org/cgit/cpio.git/commit/?id=b1c85839bf1381f749dd45bf6a5a38924e3315a0
|
|
|
|
Patch13: cpio-2.13-CVE-2021-38185.patch
|
|
|
|
Patch11: cpio-2.13-CVE-2021-38185.patch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Provides: bundled(gnulib)
|
|
|
|
Provides: bundled(gnulib)
|
|
|
|
Provides: bundled(paxutils)
|
|
|
|
|
|
|
|
Provides: /bin/cpio
|
|
|
|
Provides: /bin/cpio
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: texinfo, autoconf, automake, gettext, gettext-devel, rmt
|
|
|
|
BuildRequires: texinfo, autoconf, automake, gettext, gettext-devel, rmt
|
|
|
|
BuildRequires: make
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
|
GNU cpio copies files into or out of a cpio or tar archive. Archives
|
|
|
|
GNU cpio copies files into or out of a cpio or tar archive. Archives
|
|
|
@ -94,12 +87,12 @@ Install cpio if you need a program to manage file archives.
|
|
|
|
autoreconf -fi
|
|
|
|
autoreconf -fi
|
|
|
|
export CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -pedantic -fno-strict-aliasing -Wall $CFLAGS"
|
|
|
|
export CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -pedantic -fno-strict-aliasing -Wall $CFLAGS"
|
|
|
|
%configure --with-rmt="%{_sysconfdir}/rmt"
|
|
|
|
%configure --with-rmt="%{_sysconfdir}/rmt"
|
|
|
|
%make_build
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
(cd po && make update-gmo)
|
|
|
|
(cd po && make update-gmo)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
%make_install
|
|
|
|
make DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" install
|
|
|
|
|
|
|
|
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_libexecdir}/rmt
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_libexecdir}/rmt
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
|
|
@ -119,77 +112,24 @@ make check || {
|
|
|
|
|
|
|
|
|
|
|
|
%files -f %{name}.lang
|
|
|
|
%files -f %{name}.lang
|
|
|
|
%doc AUTHORS ChangeLog NEWS README THANKS TODO
|
|
|
|
%doc AUTHORS ChangeLog NEWS README THANKS TODO
|
|
|
|
|
|
|
|
%{!?_licensedir:%global license %%doc}
|
|
|
|
%license COPYING
|
|
|
|
%license COPYING
|
|
|
|
%{_bindir}/*
|
|
|
|
%{_bindir}/*
|
|
|
|
%{_mandir}/man*/*
|
|
|
|
%{_mandir}/man*/*
|
|
|
|
%{_infodir}/*.info*
|
|
|
|
%{_infodir}/*.info*
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Thu Aug 26 2021 Ondrej Dubaj <odubaj@redhat.com> - 2.13-16
|
|
|
|
* Mon Sep 20 2021 Ondrej Dubaj <odubaj@redhat.com> - 2.12-11
|
|
|
|
- Fixed CVE-2021-38185 (#1992512)
|
|
|
|
- Fixed CVE-2021-38185 (#1992511)
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Aug 19 2021 Ondrej Dubaj <odubaj@redhat.com> - 2.13-15
|
|
|
|
|
|
|
|
- Revert patch for CVE-2021-38185 (#1992512)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Aug 16 2021 Ondrej Dubaj <odubaj@redhat.com> - 2.13-14
|
|
|
|
|
|
|
|
- Minor fix for CVE-2021-38185 (#1992512)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Aug 16 2021 Ondrej Dubaj <odubaj@redhat.com> - 2.13-13
|
|
|
|
|
|
|
|
- Fixed CVE-2021-38185 (#1992512)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 2.13-12
|
|
|
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Apr 15 2021 Mohan Boddu <mboddu@redhat.com> - 2.13-11
|
|
|
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Feb 18 2021 Ondrej Dubaj <odubaj@redhat.com> - 2.13-10
|
|
|
|
|
|
|
|
- Properly drop priviledges for remote command
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.13-9
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.13-8
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jul 13 2020 Tom Stellard <tstellar@redhat.com> - 2.13-7
|
|
|
|
|
|
|
|
- Use make macros
|
|
|
|
|
|
|
|
- https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jun 15 2020 Ondrej Dubaj <odubaj@redhat.com> - 2.13-6
|
|
|
|
|
|
|
|
- Extract: retain times for symlinks (#1486364)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Apr 07 2020 Ondrej Dubaj <odubaj@redhat.com> - 2.13-5.1
|
|
|
|
|
|
|
|
- Release bump due to testing of gating
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Feb 05 2020 Petr Kubat <pkubat@redhat.com> - 2.13-4
|
|
|
|
|
|
|
|
- Revert fix for CVE-2015-1197 as it causes shutdown issues (#1797163)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jan 30 2020 Than Ngo <than@redhat.com> - 2.13-3
|
|
|
|
|
|
|
|
- Fix multiple definition of program_name
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.13-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Nov 06 2019 Pavel Raiskup <praiskup@redhat.com> - 2.13-1
|
|
|
|
|
|
|
|
- new upstream release, per release notes
|
|
|
|
|
|
|
|
https://lists.gnu.org/archive/html/bug-cpio/2019-11/msg00000.html
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.12-12
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Feb 19 2019 Pavel Raiskup <praiskup@redhat.com> - 2.12-11
|
|
|
|
|
|
|
|
- admit that we bundle paxutils project
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.12-10
|
|
|
|
* Thu Jan 21 2021 Ondrej Dubaj <odubaj@redhat.com> - 2.12-10
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
- Fixed improper input validation when writing tar header fields (#1766223)
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.12-9
|
|
|
|
* Mon Jun 15 2020 Ondrej Dubaj <odubaj@redhat.com> - 2.12-9
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
- Extract: retain times for symlinks (#1487673)
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Apr 11 2018 Pavel Raiskup <praiskup@redhat.com> - 2.12-8
|
|
|
|
* Tue Jul 17 2018 Pavel Raiskup <praiskup@redhat.com> - 2.12-8
|
|
|
|
- spring spec cleanup
|
|
|
|
- cleanup, sync with rawhide
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.12-7
|
|
|
|
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.12-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|