- Add fixes for big-endian machines
This commit is contained in:
parent
85f0ab998f
commit
80661ea156
12
squashfs-bigendian.patch
Normal file
12
squashfs-bigendian.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
diff -up squashfs-tools/xz_wrapper.c.bigendian squashfs-tools/xz_wrapper.c
|
||||||
|
--- squashfs-tools/xz_wrapper.c.bigendian 2011-01-11 14:16:43.000000000 +0100
|
||||||
|
+++ squashfs-tools/xz_wrapper.c 2011-01-11 14:16:48.000000000 +0100
|
||||||
|
@@ -214,7 +214,7 @@ static int xz_extract_options(int block_
|
||||||
|
dictionary_size = block_size;
|
||||||
|
flags = 0;
|
||||||
|
} else {
|
||||||
|
- SQUASHFS_INSWAP_COMP_OPTS(&comp_opts);
|
||||||
|
+ SQUASHFS_INSWAP_COMP_OPTS(comp_opts);
|
||||||
|
|
||||||
|
dictionary_size = comp_opts->dictionary_size;
|
||||||
|
flags = comp_opts->flags;
|
@ -2,7 +2,7 @@ Summary: Utility for the creation of squashfs filesystems
|
|||||||
Name: squashfs-tools
|
Name: squashfs-tools
|
||||||
Version: 4.2
|
Version: 4.2
|
||||||
%global cvsdate 20101231
|
%global cvsdate 20101231
|
||||||
Release: 0.2.%{cvsdate}%{?dist}
|
Release: 0.3.%{cvsdate}%{?dist}
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
URL: http://squashfs.sf.net
|
URL: http://squashfs.sf.net
|
||||||
@ -11,6 +11,8 @@ URL: http://squashfs.sf.net
|
|||||||
Source0: squashfs-%{version}-%{cvsdate}.bz2
|
Source0: squashfs-%{version}-%{cvsdate}.bz2
|
||||||
Patch0: squashfs-cflags.patch
|
Patch0: squashfs-cflags.patch
|
||||||
Patch1: squashfs-compressors.patch
|
Patch1: squashfs-compressors.patch
|
||||||
|
# https://sourceforge.net/tracker/?func=detail&aid=3155564&group_id=63835&atid=505343
|
||||||
|
Patch2: squashfs-bigendian.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
||||||
BuildRequires: zlib-devel
|
BuildRequires: zlib-devel
|
||||||
BuildRequires: xz-devel
|
BuildRequires: xz-devel
|
||||||
@ -25,6 +27,7 @@ contains the utilities for manipulating squashfs filesystems.
|
|||||||
%setup -q -n squashfs-%{version}-%{cvsdate}
|
%setup -q -n squashfs-%{version}-%{cvsdate}
|
||||||
%patch0 -p0
|
%patch0 -p0
|
||||||
%patch1 -p0
|
%patch1 -p0
|
||||||
|
%patch2 -p0
|
||||||
|
|
||||||
%build
|
%build
|
||||||
pushd squashfs-tools
|
pushd squashfs-tools
|
||||||
@ -47,6 +50,9 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{_sbindir}/unsquashfs
|
%{_sbindir}/unsquashfs
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Jan 11 2011 Dan Horák <dan[at]danny.cz> - 4.2-0.3.20101231
|
||||||
|
- Add fixes for big-endian machines
|
||||||
|
|
||||||
* Sat Jan 01 2011 Bruno Wolff III <bruno@wolff.to> - 4.2-0.2.20101231
|
* Sat Jan 01 2011 Bruno Wolff III <bruno@wolff.to> - 4.2-0.2.20101231
|
||||||
- Pull latest upstream snapshot
|
- Pull latest upstream snapshot
|
||||||
- Includes check for matching compression type when adding to an existing image
|
- Includes check for matching compression type when adding to an existing image
|
||||||
|
Loading…
Reference in New Issue
Block a user