[libcmis] Resolves: rhbz#1070691 test failing on big endians

David Tardon dtardon at fedoraproject.org
Fri Feb 28 16:54:42 UTC 2014


commit e846439c5fa4e135827c64b49359cad277cdbc99
Author: David Tardon <dtardon at redhat.com>
Date:   Fri Feb 28 17:55:09 2014 +0100

    Resolves: rhbz#1070691 test failing on big endians

 ...ool-confusion-on-big-endian-architectures.patch |   25 ++++++++++++++++++++
 libcmis.spec                                       |    9 +++++-
 2 files changed, 32 insertions(+), 2 deletions(-)
---
diff --git a/0001-Fix-int-bool-confusion-on-big-endian-architectures.patch b/0001-Fix-int-bool-confusion-on-big-endian-architectures.patch
new file mode 100644
index 0000000..8670bb2
--- /dev/null
+++ b/0001-Fix-int-bool-confusion-on-big-endian-architectures.patch
@@ -0,0 +1,25 @@
+From 433fad370ddd30c43df281b40ff468a842bc1c70 Mon Sep 17 00:00:00 2001
+From: Adam Conrad <adconrad at ubuntu.com>
+Date: Thu, 6 Feb 2014 09:13:32 +0100
+Subject: [PATCH] Fix int/bool confusion on big-endian architectures.
+
+---
+ qa/libcmis-c/test-document.cxx | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/qa/libcmis-c/test-document.cxx b/qa/libcmis-c/test-document.cxx
+index ccf2224..eb2c01c 100644
+--- a/qa/libcmis-c/test-document.cxx
++++ b/qa/libcmis-c/test-document.cxx
+@@ -43,7 +43,7 @@
+ 
+ using namespace std;
+ 
+-extern int isOutOfMemory;
++extern bool isOutOfMemory;
+ 
+ namespace
+ {
+-- 
+1.8.5.3
+
diff --git a/libcmis.spec b/libcmis.spec
index b610c67..c1d1da0 100644
--- a/libcmis.spec
+++ b/libcmis.spec
@@ -2,7 +2,7 @@
 
 Name: libcmis
 Version: 0.4.1
-Release: 2%{?dist}
+Release: 3%{?dist}
 Summary: A C++ client library for CM interfaces
 
 Group: System Environment/Libraries
@@ -16,6 +16,8 @@ BuildRequires: libcurl-devel
 BuildRequires: libxml2-devel
 BuildRequires: xmlto
 
+Patch0: 0001-Fix-int-bool-confusion-on-big-endian-architectures.patch
+
 %description
 LibCMIS is a C++ client library for working with CM (content management)
 interfaces. The primary supported interface (which gave the library its
@@ -42,7 +44,7 @@ The %{name}-tools package contains a tool for accessing CMIS from the
 command line.
 
 %prep
-%autosetup
+%autosetup -p1
 
 %build
 %configure --disable-silent-rules --disable-static --disable-werror \
@@ -88,6 +90,9 @@ make check
 %{_mandir}/man1/cmis-client.1*
 
 %changelog
+* Fri Feb 28 2014 David Tardon <dtardon at redhat.com> - 0.4.1-3
+- Resolves: rhbz#1070691 test failing on big endians
+
 * Thu Nov 21 2013 David Tardon <dtardon at redhat.com> - 0.4.1-2
 - disable tests on arm
 


More information about the scm-commits mailing list