23b1b8
Summary: Utility for the creation of squashfs filesystems
23b1b8
Name: squashfs-tools
23b1b8
Version: 4.3
042eb6
Release: 20%{?dist}
23b1b8
License: GPLv2+
23b1b8
Group: System Environment/Base
23b1b8
URL: http://squashfs.sourceforge.net/
23b1b8
Source0: http://downloads.sourceforge.net/squashfs/squashfs%{version}.tar.gz
23b1b8
# manpages from http://ftp.debian.org/debian/pool/main/s/squashfs-tools/squashfs-tools_4.2+20121212-1.debian.tar.xz
23b1b8
# The man pages have been modified for 4.3 for Fedora.
23b1b8
Source1: mksquashfs.1
23b1b8
Source2: unsquashfs.1
23b1b8
# From master branch (55f7ba830d40d438f0b0663a505e0c227fc68b6b).
23b1b8
# 32 bit process can use too much memory when using PAE or 64 bit kernels
23b1b8
Patch0:  PAE.patch
23b1b8
# From master branch (604b607d8ac91eb8afc0b6e3d917d5c073096103).
23b1b8
# Prevent overflows when using the -mem option.
23b1b8
Patch1:  mem-overflow.patch
23b1b8
# From squashfs-devel@lists.sourceforge.net by Guan Xin <guanx.bac@gmail.com>
23b1b8
# For https://bugzilla.redhat.com/show_bug.cgi?id=1141206
23b1b8
Patch2:  2gb.patch
23b1b8
# From https://github.com/gcanalesb/sasquatch/commit/6777e08cc38bc780d27c69c1d8c272867b74524f
23b1b8
# Which is forked from Phillip's squashfs-tools, though it looks like 
23b1b8
# the issue applies to us.
23b1b8
Patch3:  cve-2015-4645.patch
23b1b8
# Update formats to match changes in cve-2015-4645.patch
23b1b8
Patch4:  local-cve-fix.patch
23b1b8
# rhbz 1611746
23b1b8
Patch5:  mksquashfs-sysmacros-fix.patch
4b79f7
# rhbz 1602698
4b79f7
Patch6:  bz1602698.patch
4b79f7
# rhbz 1624173
4b79f7
Patch7: bz1624173.patch
4b79f7
# rhbz 1716278
4b79f7
Patch8: bz1716278.patch
042eb6
# rhbz 1754815
042eb6
Patch9: bz1754815.patch
042eb6
# rhbz 1895017
042eb6
Patch10: bz1895017.patch
4b79f7
23b1b8
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
23b1b8
BuildRequires: zlib-devel
23b1b8
BuildRequires: xz-devel
23b1b8
BuildRequires: lzo-devel
23b1b8
BuildRequires: libattr-devel
23b1b8
BuildRequires: lz4-devel
23b1b8
23b1b8
%description
23b1b8
Squashfs is a highly compressed read-only filesystem for Linux.  This package
23b1b8
contains the utilities for manipulating squashfs filesystems.
23b1b8
23b1b8
%prep
23b1b8
%setup -q -n squashfs%{version}
23b1b8
%patch0 -p1
23b1b8
%patch1 -p1
23b1b8
%patch2 -p0
23b1b8
%patch3 -p1
23b1b8
%patch4 -p0
23b1b8
%patch5 -p1
4b79f7
%patch6 -p1
4b79f7
%patch7 -p1
4b79f7
%patch8 -p1
042eb6
%patch9 -p1
042eb6
%patch10 -p1
23b1b8
23b1b8
%build
23b1b8
pushd squashfs-tools
23b1b8
CFLAGS="%{optflags}" XZ_SUPPORT=1 LZO_SUPPORT=1 LZMA_XZ_SUPPORT=1 LZ4_SUPPORT=1 make %{?_smp_mflags}
23b1b8
23b1b8
%install
23b1b8
mkdir -p %{buildroot}%{_sbindir} %{buildroot}%{_mandir}/man1
23b1b8
install -m 755 squashfs-tools/mksquashfs %{buildroot}%{_sbindir}/mksquashfs
23b1b8
install -m 755 squashfs-tools/unsquashfs %{buildroot}%{_sbindir}/unsquashfs
23b1b8
install -m 644 %{SOURCE1} %{buildroot}%{_mandir}/man1/mksquashfs.1
23b1b8
install -m 644 %{SOURCE2} %{buildroot}%{_mandir}/man1/unsquashfs.1
23b1b8
23b1b8
%clean
23b1b8
rm -rf %{buildroot}
23b1b8
23b1b8
%files
23b1b8
%defattr(-,root,root,-)
23b1b8
%doc README ACKNOWLEDGEMENTS DONATIONS PERFORMANCE.README README-4.3 CHANGES pseudo-file.example COPYING
23b1b8
23b1b8
%doc README
23b1b8
%{_mandir}/man1/*
23b1b8
23b1b8
%{_sbindir}/mksquashfs
23b1b8
%{_sbindir}/unsquashfs
23b1b8
23b1b8
%changelog
042eb6
* Thu Feb 25 2021 Abhi Das <adas@redhat.com> - 4.3-20
042eb6
- rhbz#1895017 - unsquashfs does not preserve file capabilities
042eb6
  rhbz#1754815 - Kdump: Building kdump initramfs img may fail with 'dracut: Failed making squash image' occasionally
042eb6
  Resolves: rhbz#1895017, rhbz#1754815
042eb6
4b79f7
* Tue Aug 06 2019 Abhi Das <adas@redhat.com> - 4.3-19
4b79f7
- rhbz#1602698 - Fix coverity issues
4b79f7
  rhbz#1624173 - Fix annocheck failures
4b79f7
  rhbz#1716278 - limit max cpus in mksquashfs
4b79f7
  Resolves: rhbz#1602698, rhbz#1624173, rhbz#1716278
4b79f7
4b79f7
* Tue Aug 06 2019 Abhi Das <adas@redhat.com> - 4.3-18
4b79f7
- Add manual gating test
4b79f7
  Resolves: rhbz#1682413
4b79f7
23b1b8
* Mon Aug 20 2018 Josh Boyer <jwboyer@redhat.com> - 4.3-17
23b1b8
- Fix build against glibc 2.28
23b1b8
  Resolves: rhbz#1611746
23b1b8
23b1b8
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.3-16
23b1b8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
23b1b8
23b1b8
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.3-15
23b1b8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
23b1b8
23b1b8
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.3-14
23b1b8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
23b1b8
23b1b8
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.3-13
23b1b8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
23b1b8
23b1b8
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 4.3-12
23b1b8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
23b1b8
23b1b8
* Tue Jun 23 2015 Bruno Wolff III <bruno@wolff.to> - 4.3-10
23b1b8
- Fix for CVE 2015-4645/4646
23b1b8
23b1b8
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.3-9
23b1b8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
23b1b8
23b1b8
* Sat Sep 13 2014 Bruno Wolff III <bruno@wolff.to> 4.3-8
23b1b8
- Fix for files >= 2gb rhbz #1141206
23b1b8
23b1b8
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.3-7
23b1b8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
23b1b8
23b1b8
* Fri Jun 13 2014 Bruno Wolff III <bruno@wolff.to> 4.3-6
23b1b8
- Apply a couple of upstream patches.
23b1b8
- Fixes issue issue with too much memory use under PAE kernels
23b1b8
23b1b8
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.3-5
23b1b8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
23b1b8
23b1b8
* Wed May 14 2014 Bruno Wolff III <bruno@wolff.to> 4.3-4
23b1b8
- Even more man page fixes
23b1b8
23b1b8
* Wed May 14 2014 Bruno Wolff III <bruno@wolff.to> 4.3-3
23b1b8
- More mksquashfs man page fixes
23b1b8
23b1b8
* Tue May 13 2014 Bruno Wolff III <bruno@wolff.to> 4.3-2
23b1b8
- Add missed option to the mksquashfs man page
23b1b8
23b1b8
* Tue May 13 2014 Bruno Wolff III <bruno@wolff.to> 4.3-1
23b1b8
- Update to real 4.3 release
23b1b8
- Added support for lz4 since the stable snapshot
23b1b8
- Added support for alternate zlib compression strategies
23b1b8
23b1b8
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.3-0.19.gitaae0aff4
23b1b8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
23b1b8
23b1b8
* Sat Jun 22 2013 Bruno Wolff III <bruno@wolff.to> - 4.3-0.18.gitaae0aff4
23b1b8
- Latest pre 4.3 stable snapshot
23b1b8
- A few minor bug fixes
23b1b8
- Improvements in getting status info while running unsquashfs
23b1b8
23b1b8
* Tue Jun 04 2013 Bruno Wolff III <bruno@wolff.to> - 4.3-0.17.git5c6f0024
23b1b8
- Latest pre 4.3 snapshot
23b1b8
- Includes fix for mksquashfs hangs
23b1b8
- Switch to get pre-release updates from the stable branch at kernel.org
23b1b8
23b1b8
* Thu May 23 2013 Bruno Wolff III <bruno@wolff.to> - 4.3-0.16.git84d8ae5c
23b1b8
- Latest pre 4.3 snapshot
23b1b8
- Fix for a rare race condition
23b1b8
23b1b8
* Sun May 19 2013 Bruno Wolff III <bruno@wolff.to> - 4.3-0.15.git27d7c14b
23b1b8
- Latest pre 4.3 snapshot
23b1b8
- queue fragment and empty file buffers directly to main thread
23b1b8
23b1b8
* Wed May 15 2013 Bruno Wolff III <bruno@wolff.to> - 4.3-0.14.git8ce5585e
23b1b8
- Latest pre 4.3 snapshot
23b1b8
- Includes upstream bugfix introduced with the sequential queue change
23b1b8
23b1b8
* Sat May 11 2013 Bruno Wolff III <bruno@wolff.to> - 4.3-0.13.gitc2362556
23b1b8
- Latest pre 4.3 snapshot
23b1b8
- Sequential queue change
23b1b8
23b1b8
* Mon May 06 2013 Bruno Wolff III <bruno@wolff.to> - 4.3-0.12.git9353c998
23b1b8
- Latest pre 4.3 snapshot
23b1b8
23b1b8
* Sun Mar 31 2013 Bruno Wolff III <bruno@wolff.to> - 4.3-0.11.git8228a3e8
23b1b8
- Latest pre 4.3 snapshot
23b1b8
- SIGQUIT now displays the file being squashed
23b1b8
23b1b8
* Wed Mar 06 2013 Bruno Wolff III <bruno@wolff.to> - 4.3-0.10.git6a103792
23b1b8
- Latest pre 4.3 snapshot
23b1b8
- Pick up some more error handling improvements
23b1b8
23b1b8
* Sun Mar 03 2013 Kyle McMartin <kmcmarti@redhat.com>
23b1b8
- Move mksquashfs to /usr/sbin, as per UsrMove.
23b1b8
23b1b8
* Sun Mar 03 2013 Kyle McMartin <kmcmarti@redhat.com>
23b1b8
- Add mksquashfs.1 and unsquashfs.1 manpages from Debian.
23b1b8
23b1b8
* Mon Feb 18 2013 Bruno Wolff III <bruno@wolff.to> - 4.3-0.9.git3ec9c8f7
23b1b8
- Latest pre 4.3 snapshot
23b1b8
- Better error handling when space runs out
23b1b8
23b1b8
* Wed Feb 13 2013 Bruno Wolff III <bruno@wolff.to> - 4.3-0.8.gitca6a1c90
23b1b8
- Latest pre 4.3 snapshot
23b1b8
- New option to display compression options used
23b1b8
- Some error message improvements
23b1b8
23b1b8
* Fri Feb 01 2013 Bruno Wolff III <bruno@wolff.to> - 4.3-0.7.gitb10063a9
23b1b8
- Latest pre 4.3 snapshot
23b1b8
- More checks for bad data
23b1b8
23b1b8
* Sun Jan 13 2013 Bruno Wolff III <bruno@wolff.to> - 4.3-0.6.git6c0f229d
23b1b8
- Latest pre 4.3 snapshot
23b1b8
- Quote and backslash parsing for lexical analyzer
23b1b8
23b1b8
* Mon Dec 31 2012 Bruno Wolff III <bruno@wolff.to> - 4.3-0.5.gitc11af515
23b1b8
- Latest pre 4.3 snapshot
23b1b8
- A few memory leak fixes
23b1b8
- Additional checks for handling bad data
23b1b8
23b1b8
* Sun Dec 23 2012 Bruno Wolff III <bruno@wolff.to> - 4.3-0.4.git99a009c8
23b1b8
- Better checking of data in psuedo files
23b1b8
23b1b8
* Fri Dec 21 2012 Bruno Wolff III <bruno@wolff.to> - 4.3-0.3.git7ec6bd7a
23b1b8
- Better checking of data in sort, extract and exclude files
23b1b8
23b1b8
* Thu Dec 13 2012 Bruno Wolff III <bruno@wolff.to> - 4.3-0.2.git54719971
23b1b8
- Pick up a few more changes to better handle bad data
23b1b8
23b1b8
* Sat Dec 01 2012 Bruno Wolff III <bruno@wolff.to> - 4.3-0.1.git0be606be
23b1b8
- Pre-release of 4.3 to get early testing
23b1b8
- This update includes a bit of internal code infrastructure changes
23b1b8
- There are lots of fixes to better handle bad data
23b1b8
- The final release is expected sometime in December
23b1b8
- Until the release only the README doc file is available
23b1b8
23b1b8
* Sun Nov 25 2012 Bruno Wolff III <bruno@wolff.to> - 4.2-5
23b1b8
- Backported fix for bz 842460 (CVE-2012-4025)
23b1b8
23b1b8
* Thu Nov 22 2012 Bruno Wolff III <bruno@wolff.to> - 4.2-4
23b1b8
- Backported fix for bz 842458 (CVE-2012-4024)
23b1b8
23b1b8
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2-3
23b1b8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
23b1b8
23b1b8
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2-2
23b1b8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
23b1b8
23b1b8
* Tue Mar 01 2011 Bruno Wolff III <bruno@wolff.to> - 4.2-1
23b1b8
- 4.2 is released.
23b1b8
- Bugfix for bad data causing crash.
23b1b8
- Include doc files added for release.
23b1b8
- Big endian patch is now upstream.
23b1b8
- Buildroot tag isn't needed any more.
23b1b8
- We can now specify CFLAGS on the make call.
23b1b8
- Compressor options are now passed with the make call.
23b1b8
23b1b8
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2-0.4.20101231
23b1b8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
23b1b8
23b1b8
* Tue Jan 11 2011 Dan Horák <dan[at]danny.cz> - 4.2-0.3.20101231
23b1b8
- Add fixes for big-endian machines
23b1b8
23b1b8
* Sat Jan 01 2011 Bruno Wolff III <bruno@wolff.to> - 4.2-0.2.20101231
23b1b8
- Pull latest upstream snapshot
23b1b8
- Includes check for matching compression type when adding to an existing image
23b1b8
- Sample cvs command now includes timezone and specifies when on the date to use for the snapshot
23b1b8
23b1b8
* Fri Dec 24 2010 Bruno Wolff III <bruno@wolff.to> - 4.2-0.1.20101223
23b1b8
- Switch to 4.2 development snapshot to get new XZ support
23b1b8
- LZMA and XZ (LZMA2) support are now different
23b1b8
23b1b8
* Wed Oct 27 2010 Bruno Wolff III <bruno@wolff.to> - 4.1-3
23b1b8
- Rebuild for xz soname bump
23b1b8
23b1b8
* Wed Sep 29 2010 jkeating - 4.1-2
23b1b8
- Rebuilt for gcc bug 634757
23b1b8
23b1b8
* Tue Sep 21 2010 Bruno Wolff III <bruno@wolff.to> - 4.1-1
23b1b8
- Update to 4.1 final.
23b1b8
- Byte swap patch is now upstream.
23b1b8
- LZO compression type is now supported.
23b1b8
23b1b8
* Mon Sep 6 2010 Dan Horák <dan[at]danny.cz> - 4.1-0.5.20100827
23b1b8
- Add fixes for big-endian machines
23b1b8
23b1b8
* Sat Aug 28 2010 Bruno Wolff III <bruno@wolff.to> - 4.1-0.4.20100827
23b1b8
- Rebase to latest upstream.
23b1b8
- The main reason is to pick up a fix for large xattr similar to the large inode fix. This doesn't need to get backported as 4.0 doesn't have xattr support.
23b1b8
- An option was added to build without xattr support.
23b1b8
- Various source cleanups have been done as well.
23b1b8
23b1b8
* Tue Aug 03 2010 Bruno Wolff III <bruno@wolff.to> - 4.1-0.3.20100803
23b1b8
- Rebase to latest upstream
23b1b8
- Prevent warning message for xattr for virtual directory
23b1b8
- Fix issue with large inodes - BZ 619020
23b1b8
23b1b8
* Tue Jul 27 2010 Bruno Wolff III <bruno@wolff.to> - 4.1-0.2.20100727
23b1b8
- Rebase to latest upstream devel state. Mostly xattr fixes and cleanup.
23b1b8
23b1b8
* Tue Jun 08 2010 Bruno Wolff III <bruno@wolff.to> - 4.1-0.1.20100607
23b1b8
- Rebase to 4.1 prerelease with xz wrapper
23b1b8
- Provides lzma compression as an option.
23b1b8
- squashfs-fix-unsquashing-v3.patch is part of the 4.1 prerelease
23b1b8
23b1b8
* Wed May 5 2010 Kyle McMartin <kyle@redhat.com> 4.0-4
23b1b8
- squashfs-fix-unsquashing-v3.patch: pull in fix from cvs. Thanks pkl!
23b1b8
  (rhbz#523504)
23b1b8
23b1b8
* Thu Feb 18 2010 Kyle McMartin <kyle@redhat.com> 4.0-3
23b1b8
- Update to release tarball as opposed to cvs snapshot.
23b1b8
- Add dist tag.
23b1b8
23b1b8
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0-2
23b1b8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
23b1b8
23b1b8
* Sun Apr 05 2009 Kyle McMartin <kyle@redhat.com> - 4.0-1
23b1b8
- Update to release 4.0
23b1b8
23b1b8
* Mon Mar 16 2009 Kyle McMartin <kyle@redhat.com> - 4.0-0.20090316
23b1b8
- update to cvs snap from 2009-03-16.
23b1b8
23b1b8
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0-0.20090126
23b1b8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
23b1b8
23b1b8
* Mon Jan 26 2009 Kyle McMartin <kyle@redhat.com> - 4.0-0.20090125
23b1b8
- update to cvs snap that should unbreak big endian machines creating
23b1b8
  little endian fs.
23b1b8
23b1b8
* Mon Jan 12 2009  <katzj@redhat.com> - 4.0-0.20090112
23b1b8
- update to cvs snap that generates v4.0 images
23b1b8
23b1b8
* Tue Sep 30 2008 Jeremy Katz <katzj@redhat.com> - 3.4-1
23b1b8
- update to 3.4
23b1b8
23b1b8
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 3.3-2
23b1b8
- Autorebuild for GCC 4.3
23b1b8
23b1b8
* Fri Dec 14 2007 Jeremy Katz <katzj@redhat.com> - 3.3-1
23b1b8
- Update to 3.3
23b1b8
23b1b8
* Wed Sep  5 2007 Jeremy Katz <katzj@redhat.com> - 3.2-2
23b1b8
- fixes from package review (#226430)
23b1b8
23b1b8
* Tue Mar 20 2007 Jeremy Katz <katzj@redhat.com> - 3.2-1
23b1b8
- update to 3.2r2
23b1b8
23b1b8
* Sun Oct 01 2006 Jesse Keating <jkeating@redhat.com> - 3.0-4
23b1b8
- rebuilt for unwind info generation, broken in gcc-4.1.1-21
23b1b8
23b1b8
* Mon Sep 18 2006 Jeremy Katz <katzj@redhat.com> - 3.0-3
23b1b8
- updated fragment size patch (#204638)
23b1b8
23b1b8
* Wed Aug 16 2006 Jeremy Katz <katzj@redhat.com> - 3.0-2
23b1b8
- add upstream patch for fragment size problem (#202663)
23b1b8
23b1b8
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 3.0-1.1
23b1b8
- rebuild
23b1b8
23b1b8
* Fri Jun 23 2006 Jeremy Katz <katzj@redhat.com> - 3.0-1
23b1b8
- update to 3.0
23b1b8
- include unsquashfs
23b1b8
23b1b8
* Tue May 16 2006 Jeremy Katz <katzj@redhat.com> 
23b1b8
- add BR on zlib-devel (Andreas Thienemann, #191880)
23b1b8
23b1b8
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 2.2r2-2.2.1
23b1b8
- bump again for double-long bug on ppc(64)
23b1b8
23b1b8
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 2.2r2-2.2
23b1b8
- rebuilt for new gcc4.1 snapshot and glibc changes
23b1b8
23b1b8
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
23b1b8
- rebuilt
23b1b8
23b1b8
* Thu Dec  1 2005 Jeremy Katz <katzj@redhat.com> - 2.2r2-1
23b1b8
- Initial build
23b1b8