9c5bac8
Summary: Utility for the creation of squashfs filesystems
ba5d1d2
Name: squashfs-tools
8154855
Version: 4.3
570f29a
Release: 12%{?dist}
9c5bac8
License: GPLv2+
ba5d1d2
Group: System Environment/Base
e59d892
URL: http://squashfs.sourceforge.net/
e59d892
Source0: http://downloads.sourceforge.net/squashfs/squashfs%{version}.tar.gz
Kyle McMartin ba42ae1
# manpages from http://ftp.debian.org/debian/pool/main/s/squashfs-tools/squashfs-tools_4.2+20121212-1.debian.tar.xz
fdb126d
# The man pages have been modified for 4.3 for Fedora.
Kyle McMartin ba42ae1
Source1: mksquashfs.1
Kyle McMartin ba42ae1
Source2: unsquashfs.1
70f2446
# From master branch (55f7ba830d40d438f0b0663a505e0c227fc68b6b).
70f2446
# 32 bit process can use too much memory when using PAE or 64 bit kernels
70f2446
Patch0:  PAE.patch
70f2446
# From master branch (604b607d8ac91eb8afc0b6e3d917d5c073096103).
70f2446
# Prevent overflows when using the -mem option.
70f2446
Patch1:  mem-overflow.patch
e090326
# From squashfs-devel@lists.sourceforge.net by Guan Xin <guanx.bac@gmail.com>
e090326
# For https://bugzilla.redhat.com/show_bug.cgi?id=1141206
e68da29
Patch2:  2gb.patch
e68da29
# From https://github.com/gcanalesb/sasquatch/commit/6777e08cc38bc780d27c69c1d8c272867b74524f
e68da29
# Which is forked from Phillip's squashfs-tools, though it looks like 
e68da29
# the issue applies to us.
e68da29
Patch3:  cve-2015-4645.patch
af39337
# Update formats to match changes in cve-2015-4645.patch
ebcff94
Patch4:  local-cve-fix.patch
ba5d1d2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
d75a0d7
BuildRequires: zlib-devel
cf2602f
BuildRequires: xz-devel
8eb2b80
BuildRequires: lzo-devel
cf2602f
BuildRequires: libattr-devel
fdb126d
BuildRequires: lz4-devel
ba5d1d2
ba5d1d2
%description
ba5d1d2
Squashfs is a highly compressed read-only filesystem for Linux.  This package
ba5d1d2
contains the utilities for manipulating squashfs filesystems.
ba5d1d2
ba5d1d2
%prep
8154855
%setup -q -n squashfs%{version}
6d5b7b7
%patch0 -p1
6d5b7b7
%patch1 -p1
43b98eb
%patch2 -p0
e68da29
%patch3 -p1
af39337
%patch4 -p0
ba5d1d2
ba5d1d2
%build
ba5d1d2
pushd squashfs-tools
fdb126d
CFLAGS="%{optflags}" XZ_SUPPORT=1 LZO_SUPPORT=1 LZMA_XZ_SUPPORT=1 LZ4_SUPPORT=1 make %{?_smp_mflags}
ba5d1d2
ba5d1d2
%install
Kyle McMartin d20f0f2
mkdir -p %{buildroot}%{_sbindir} %{buildroot}%{_mandir}/man1
Kyle McMartin d20f0f2
install -m 755 squashfs-tools/mksquashfs %{buildroot}%{_sbindir}/mksquashfs
e59d892
install -m 755 squashfs-tools/unsquashfs %{buildroot}%{_sbindir}/unsquashfs
Kyle McMartin ba42ae1
install -m 644 %{SOURCE1} %{buildroot}%{_mandir}/man1/mksquashfs.1
Kyle McMartin ba42ae1
install -m 644 %{SOURCE2} %{buildroot}%{_mandir}/man1/unsquashfs.1
ba5d1d2
ba5d1d2
%clean
e59d892
rm -rf %{buildroot}
ba5d1d2
ba5d1d2
%files
ba5d1d2
%defattr(-,root,root,-)
fdb126d
%doc README ACKNOWLEDGEMENTS DONATIONS PERFORMANCE.README README-4.3 CHANGES pseudo-file.example COPYING
fdb126d
3370db3
%doc README
Kyle McMartin ba42ae1
%{_mandir}/man1/*
e427db3
Kyle McMartin d20f0f2
%{_sbindir}/mksquashfs
12105c5
%{_sbindir}/unsquashfs
ba5d1d2
ba5d1d2
%changelog
570f29a
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 4.3-12
570f29a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
570f29a
e68da29
* Tue Jun 23 2015 Bruno Wolff III <bruno@wolff.to> - 4.3-10
e68da29
- Fix for CVE 2015-4645/4646
e68da29
12f3ad4
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.3-9
12f3ad4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
12f3ad4
e090326
* Sat Sep 13 2014 Bruno Wolff III <bruno@wolff.to> 4.3-8
e090326
- Fix for files >= 2gb rhbz #1141206
e090326
9611b9a
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.3-7
9611b9a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
9611b9a
70f2446
* Fri Jun 13 2014 Bruno Wolff III <bruno@wolff.to> 4.3-6
70f2446
- Apply a couple of upstream patches.
70f2446
- Fixes issue issue with too much memory use under PAE kernels
70f2446
37fe4db
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.3-5
37fe4db
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
37fe4db
dbf7edc
* Wed May 14 2014 Bruno Wolff III <bruno@wolff.to> 4.3-4
dbf7edc
- Even more man page fixes
dbf7edc
e4f806b
* Wed May 14 2014 Bruno Wolff III <bruno@wolff.to> 4.3-3
e4f806b
- More mksquashfs man page fixes
e4f806b
7cc74b6
* Tue May 13 2014 Bruno Wolff III <bruno@wolff.to> 4.3-2
7cc74b6
- Add missed option to the mksquashfs man page
7cc74b6
fdb126d
* Tue May 13 2014 Bruno Wolff III <bruno@wolff.to> 4.3-1
fdb126d
- Update to real 4.3 release
fdb126d
- Added support for lz4 since the stable snapshot
fdb126d
- Added support for alternate zlib compression strategies
fdb126d
bb23ad8
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.3-0.19.gitaae0aff4
bb23ad8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
bb23ad8
6523e5d
* Sat Jun 22 2013 Bruno Wolff III <bruno@wolff.to> - 4.3-0.18.gitaae0aff4
6523e5d
- Latest pre 4.3 stable snapshot
6523e5d
- A few minor bug fixes
6523e5d
- Improvements in getting status info while running unsquashfs
6523e5d
fe8f808
* Tue Jun 04 2013 Bruno Wolff III <bruno@wolff.to> - 4.3-0.17.git5c6f0024
fe8f808
- Latest pre 4.3 snapshot
fe8f808
- Includes fix for mksquashfs hangs
fe8f808
- Switch to get pre-release updates from the stable branch at kernel.org
fe8f808
8d87acb
* Thu May 23 2013 Bruno Wolff III <bruno@wolff.to> - 4.3-0.16.git84d8ae5c
8d87acb
- Latest pre 4.3 snapshot
8d87acb
- Fix for a rare race condition
8d87acb
38f1ef5
* Sun May 19 2013 Bruno Wolff III <bruno@wolff.to> - 4.3-0.15.git27d7c14b
38f1ef5
- Latest pre 4.3 snapshot
38f1ef5
- queue fragment and empty file buffers directly to main thread
38f1ef5
952b11a
* Wed May 15 2013 Bruno Wolff III <bruno@wolff.to> - 4.3-0.14.git8ce5585e
952b11a
- Latest pre 4.3 snapshot
952b11a
- Includes upstream bugfix introduced with the sequential queue change
952b11a
28a70ab
* Sat May 11 2013 Bruno Wolff III <bruno@wolff.to> - 4.3-0.13.gitc2362556
28a70ab
- Latest pre 4.3 snapshot
28a70ab
- Sequential queue change
28a70ab
4342cbb
* Mon May 06 2013 Bruno Wolff III <bruno@wolff.to> - 4.3-0.12.git9353c998
4342cbb
- Latest pre 4.3 snapshot
4342cbb
db21c58
* Sun Mar 31 2013 Bruno Wolff III <bruno@wolff.to> - 4.3-0.11.git8228a3e8
db21c58
- Latest pre 4.3 snapshot
db21c58
- SIGQUIT now displays the file being squashed
db21c58
ec1b7e7
* Wed Mar 06 2013 Bruno Wolff III <bruno@wolff.to> - 4.3-0.10.git6a103792
ec1b7e7
- Latest pre 4.3 snapshot
ec1b7e7
- Pick up some more error handling improvements
ec1b7e7
Kyle McMartin ba42ae1
* Sun Mar 03 2013 Kyle McMartin <kmcmarti@redhat.com>
Kyle McMartin d20f0f2
- Move mksquashfs to /usr/sbin, as per UsrMove.
Kyle McMartin d20f0f2
Kyle McMartin d20f0f2
* Sun Mar 03 2013 Kyle McMartin <kmcmarti@redhat.com>
Kyle McMartin ba42ae1
- Add mksquashfs.1 and unsquashfs.1 manpages from Debian.
Kyle McMartin ba42ae1
37237f0
* Mon Feb 18 2013 Bruno Wolff III <bruno@wolff.to> - 4.3-0.9.git3ec9c8f7
37237f0
- Latest pre 4.3 snapshot
37237f0
- Better error handling when space runs out
37237f0
0332bae
* Wed Feb 13 2013 Bruno Wolff III <bruno@wolff.to> - 4.3-0.8.gitca6a1c90
0332bae
- Latest pre 4.3 snapshot
0332bae
- New option to display compression options used
0332bae
- Some error message improvements
0332bae
0140fd3
* Fri Feb 01 2013 Bruno Wolff III <bruno@wolff.to> - 4.3-0.7.gitb10063a9
0140fd3
- Latest pre 4.3 snapshot
0140fd3
- More checks for bad data
0140fd3
90d789e
* Sun Jan 13 2013 Bruno Wolff III <bruno@wolff.to> - 4.3-0.6.git6c0f229d
90d789e
- Latest pre 4.3 snapshot
90d789e
- Quote and backslash parsing for lexical analyzer
90d789e
528da1d
* Mon Dec 31 2012 Bruno Wolff III <bruno@wolff.to> - 4.3-0.5.gitc11af515
528da1d
- Latest pre 4.3 snapshot
528da1d
- A few memory leak fixes
528da1d
- Additional checks for handling bad data
528da1d
4efedcd
* Sun Dec 23 2012 Bruno Wolff III <bruno@wolff.to> - 4.3-0.4.git99a009c8
4efedcd
- Better checking of data in psuedo files
4efedcd
8793829
* Fri Dec 21 2012 Bruno Wolff III <bruno@wolff.to> - 4.3-0.3.git7ec6bd7a
8793829
- Better checking of data in sort, extract and exclude files
8793829
2094639
* Thu Dec 13 2012 Bruno Wolff III <bruno@wolff.to> - 4.3-0.2.git54719971
2094639
- Pick up a few more changes to better handle bad data
2094639
8154855
* Sat Dec 01 2012 Bruno Wolff III <bruno@wolff.to> - 4.3-0.1.git0be606be
8154855
- Pre-release of 4.3 to get early testing
8154855
- This update includes a bit of internal code infrastructure changes
8154855
- There are lots of fixes to better handle bad data
8154855
- The final release is expected sometime in December
3370db3
- Until the release only the README doc file is available
8154855
038e2d1
* Sun Nov 25 2012 Bruno Wolff III <bruno@wolff.to> - 4.2-5
038e2d1
- Backported fix for bz 842460 (CVE-2012-4025)
038e2d1
9e856d0
* Thu Nov 22 2012 Bruno Wolff III <bruno@wolff.to> - 4.2-4
90e6c51
- Backported fix for bz 842458 (CVE-2012-4024)
90e6c51
5794813
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2-3
5794813
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
5794813
cf32ff7
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2-2
cf32ff7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
cf32ff7
e59d892
* Tue Mar 01 2011 Bruno Wolff III <bruno@wolff.to> - 4.2-1
e59d892
- 4.2 is released.
e59d892
- Bugfix for bad data causing crash.
e59d892
- Include doc files added for release.
e59d892
- Big endian patch is now upstream.
e59d892
- Buildroot tag isn't needed any more.
e59d892
- We can now specify CFLAGS on the make call.
b479322
- Compressor options are now passed with the make call.
e59d892
2738394
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2-0.4.20101231
2738394
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
2738394
80661ea
* Tue Jan 11 2011 Dan Horák <dan[at]danny.cz> - 4.2-0.3.20101231
80661ea
- Add fixes for big-endian machines
80661ea
5719b8c
* Sat Jan 01 2011 Bruno Wolff III <bruno@wolff.to> - 4.2-0.2.20101231
5719b8c
- Pull latest upstream snapshot
5719b8c
- Includes check for matching compression type when adding to an existing image
5719b8c
- Sample cvs command now includes timezone and specifies when on the date to use for the snapshot
5719b8c
293af14
* Fri Dec 24 2010 Bruno Wolff III <bruno@wolff.to> - 4.2-0.1.20101223
1900dde
- Switch to 4.2 development snapshot to get new XZ support
1900dde
- LZMA and XZ (LZMA2) support are now different
293af14
b903ba1
* Wed Oct 27 2010 Bruno Wolff III <bruno@wolff.to> - 4.1-3
7f94f03
- Rebuild for xz soname bump
7f94f03
Jesse Keating aa8305f
* Wed Sep 29 2010 jkeating - 4.1-2
Jesse Keating aa8305f
- Rebuilt for gcc bug 634757
Jesse Keating aa8305f
e771877
* Tue Sep 21 2010 Bruno Wolff III <bruno@wolff.to> - 4.1-1
e771877
- Update to 4.1 final.
e771877
- Byte swap patch is now upstream.
e771877
- LZO compression type is now supported.
e771877
88bb463
* Mon Sep 6 2010 Dan Horák <dan[at]danny.cz> - 4.1-0.5.20100827
88bb463
- Add fixes for big-endian machines
88bb463
dd38da4
* Sat Aug 28 2010 Bruno Wolff III <bruno@wolff.to> - 4.1-0.4.20100827
dd38da4
- Rebase to latest upstream.
dd38da4
- 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.
dd38da4
- An option was added to build without xattr support.
dd38da4
- Various source cleanups have been done as well.
dd38da4
dd38da4
* Tue Aug 03 2010 Bruno Wolff III <bruno@wolff.to> - 4.1-0.3.20100803
24c1618
- Rebase to latest upstream
24c1618
- Prevent warning message for xattr for virtual directory
24c1618
- Fix issue with large inodes - BZ 619020
24c1618
9e856d0
* Tue Jul 27 2010 Bruno Wolff III <bruno@wolff.to> - 4.1-0.2.20100727
99bdf78
- Rebase to latest upstream devel state. Mostly xattr fixes and cleanup.
99bdf78
9e856d0
* Tue Jun 08 2010 Bruno Wolff III <bruno@wolff.to> - 4.1-0.1.20100607
cf2602f
- Rebase to 4.1 prerelease with xz wrapper
cf2602f
- Provides lzma compression as an option.
cf2602f
- squashfs-fix-unsquashing-v3.patch is part of the 4.1 prerelease
cf2602f
42f8852
* Wed May 5 2010 Kyle McMartin <kyle@redhat.com> 4.0-4
42f8852
- squashfs-fix-unsquashing-v3.patch: pull in fix from cvs. Thanks pkl!
42f8852
  (rhbz#523504)
42f8852
40812b6
* Thu Feb 18 2010 Kyle McMartin <kyle@redhat.com> 4.0-3
40812b6
- Update to release tarball as opposed to cvs snapshot.
40812b6
- Add dist tag.
40812b6
252c97d
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0-2
252c97d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
252c97d
12105c5
* Sun Apr 05 2009 Kyle McMartin <kyle@redhat.com> - 4.0-1
12105c5
- Update to release 4.0
12105c5
9e856d0
* Mon Mar 16 2009 Kyle McMartin <kyle@redhat.com> - 4.0-0.20090316
d811a95
- update to cvs snap from 2009-03-16.
d811a95
7458f10
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0-0.20090126
7458f10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
7458f10
964cd18
* Mon Jan 26 2009 Kyle McMartin <kyle@redhat.com> - 4.0-0.20090125
964cd18
- update to cvs snap that should unbreak big endian machines creating
964cd18
  little endian fs.
964cd18
3e671c2
* Mon Jan 12 2009  <katzj@redhat.com> - 4.0-0.20090112
3e671c2
- update to cvs snap that generates v4.0 images
3e671c2
8386392
* Tue Sep 30 2008 Jeremy Katz <katzj@redhat.com> - 3.4-1
8386392
- update to 3.4
8386392
ff2e478
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 3.3-2
ff2e478
- Autorebuild for GCC 4.3
ff2e478
171345c
* Fri Dec 14 2007 Jeremy Katz <katzj@redhat.com> - 3.3-1
171345c
- Update to 3.3
171345c
f6796b7
* Wed Sep  5 2007 Jeremy Katz <katzj@redhat.com> - 3.2-2
f6796b7
- fixes from package review (#226430)
f6796b7
4c7dd36
* Tue Mar 20 2007 Jeremy Katz <katzj@redhat.com> - 3.2-1
4c7dd36
- update to 3.2r2
4c7dd36
d34521d
* Sun Oct 01 2006 Jesse Keating <jkeating@redhat.com> - 3.0-4
d34521d
- rebuilt for unwind info generation, broken in gcc-4.1.1-21
d34521d
9700cba
* Mon Sep 18 2006 Jeremy Katz <katzj@redhat.com> - 3.0-3
9700cba
- updated fragment size patch (#204638)
9700cba
1e4afd7
* Wed Aug 16 2006 Jeremy Katz <katzj@redhat.com> - 3.0-2
1e4afd7
- add upstream patch for fragment size problem (#202663)
1e4afd7
ad560d0
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 3.0-1.1
ad560d0
- rebuild
ad560d0
1f2de82
* Fri Jun 23 2006 Jeremy Katz <katzj@redhat.com> - 3.0-1
1f2de82
- update to 3.0
1f2de82
- include unsquashfs
1f2de82
d75a0d7
* Tue May 16 2006 Jeremy Katz <katzj@redhat.com> 
d75a0d7
- add BR on zlib-devel (Andreas Thienemann, #191880)
d75a0d7
48d899d
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 2.2r2-2.2.1
48d899d
- bump again for double-long bug on ppc(64)
48d899d
ab4168f
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 2.2r2-2.2
ab4168f
- rebuilt for new gcc4.1 snapshot and glibc changes
ab4168f
37b1ca6
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
37b1ca6
- rebuilt
37b1ca6
ba5d1d2
* Thu Dec  1 2005 Jeremy Katz <katzj@redhat.com> - 2.2r2-1
ba5d1d2
- Initial build
ba5d1d2