[libxdiff/f18] - fix function on big-endian arches
Dan Horák
sharkcz at fedoraproject.org
Wed Jun 19 08:52:29 UTC 2013
commit 7ec5050415711a2dedcd7dc1283f7c514d304a7f
Author: Dan Horák <dan at danny.cz>
Date: Wed Jun 19 10:50:41 2013 +0200
- fix function on big-endian arches
libxdiff-1.0-big-endian.patch | 26 ++++++++++++++++++++++++++
libxdiff.spec | 7 ++++++-
2 files changed, 32 insertions(+), 1 deletions(-)
---
diff --git a/libxdiff-1.0-big-endian.patch b/libxdiff-1.0-big-endian.patch
new file mode 100644
index 0000000..47cec6d
--- /dev/null
+++ b/libxdiff-1.0-big-endian.patch
@@ -0,0 +1,26 @@
+From bf72f75b987616d5817a5df19193c989ae303074 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Dan=20Hor=C3=A1k?= <dan at danny.cz>
+Date: Wed, 19 Jun 2013 10:43:59 +0200
+Subject: [PATCH] use #if condition because XDL_FAST_HASH is always defined to
+ 0 or 1
+
+---
+ xutils.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/xutils.c b/xutils.c
+index b387fcd..8fa9c1f 100644
+--- a/xutils.c
++++ b/xutils.c
+@@ -278,7 +278,7 @@ static unsigned long xdl_hash_record_with_whitespace(char const **data,
+ return ha;
+ }
+
+-#ifdef XDL_FAST_HASH
++#if XDL_FAST_HASH
+
+ #define REPEAT_BYTE(x) ((~0ul / 0xff) * (x))
+
+--
+1.8.1.4
+
diff --git a/libxdiff.spec b/libxdiff.spec
index 70f68f0..45ca539 100644
--- a/libxdiff.spec
+++ b/libxdiff.spec
@@ -4,11 +4,12 @@
Name: libxdiff
Version: 1.0
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Basic functionality to create difference/patches in binary and text
License: LGPLv2+
URL: https://github.com/spotrh/libxdiff
Source0: https://github.com/spotrh/libxdiff/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz
+Patch0: %{name}-1.0-big-endian.patch
%description
The LibXDiff library implements basic and yet complete functionalities to
@@ -33,6 +34,7 @@ Development libraries and headers for libxdiff.
%prep
%setup -q -n %{name}-%{commit}
+%patch0 -p1 -b .big-endian
%build
%configure --disable-static
@@ -56,5 +58,8 @@ rm -rf %{buildroot}%{_libdir}/*.la
%{_libdir}/pkgconfig/libxdiff.pc
%changelog
+* Wed Jun 19 2013 Dan Horák <dan[at]danny.cz> - 1.0-2
+- fix function on big-endian arches
+
* Thu May 30 2013 Tom Callaway <spot at fedoraproject.org> - 1.0-1
- initial package
More information about the scm-commits
mailing list