[squashfs-tools] - Add fixes for big-endian machines

Dan Horák sharkcz at fedoraproject.org
Tue Jan 11 13:23:46 UTC 2011


commit 80661ea156bf0d95385dc1d30f8c9b5aefdb16c6
Author: Dan Horák <dan at danny.cz>
Date:   Tue Jan 11 14:23:33 2011 +0100

    - Add fixes for big-endian machines

 squashfs-bigendian.patch |   12 ++++++++++++
 squashfs-tools.spec      |    8 +++++++-
 2 files changed, 19 insertions(+), 1 deletions(-)
---
diff --git a/squashfs-bigendian.patch b/squashfs-bigendian.patch
new file mode 100644
index 0000000..952f523
--- /dev/null
+++ b/squashfs-bigendian.patch
@@ -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;
diff --git a/squashfs-tools.spec b/squashfs-tools.spec
index df63a6d..0605eb5 100644
--- a/squashfs-tools.spec
+++ b/squashfs-tools.spec
@@ -2,7 +2,7 @@ Summary: Utility for the creation of squashfs filesystems
 Name: squashfs-tools
 Version: 4.2
 %global cvsdate 20101231
-Release: 0.2.%{cvsdate}%{?dist}
+Release: 0.3.%{cvsdate}%{?dist}
 License: GPLv2+
 Group: System Environment/Base
 URL: http://squashfs.sf.net
@@ -11,6 +11,8 @@ URL: http://squashfs.sf.net
 Source0: squashfs-%{version}-%{cvsdate}.bz2
 Patch0: squashfs-cflags.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
 BuildRequires: zlib-devel
 BuildRequires: xz-devel
@@ -25,6 +27,7 @@ contains the utilities for manipulating squashfs filesystems.
 %setup -q -n squashfs-%{version}-%{cvsdate}
 %patch0 -p0
 %patch1 -p0
+%patch2 -p0
 
 %build
 pushd squashfs-tools
@@ -47,6 +50,9 @@ rm -rf $RPM_BUILD_ROOT
 %{_sbindir}/unsquashfs
 
 %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 at wolff.to> - 4.2-0.2.20101231
 - Pull latest upstream snapshot
 - Includes check for matching compression type when adding to an existing image


More information about the scm-commits mailing list