diff --git a/433fad3-Fix-int-bool-confusion-on-big-endian-architectures.patch b/433fad3-Fix-int-bool-confusion-on-big-endian-architectures.patch new file mode 100644 index 0000000..9488625 --- /dev/null +++ b/433fad3-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 +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.2 + diff --git a/cmis-client.changes b/cmis-client.changes index 6e6d13c..0b65bcf 100644 --- a/cmis-client.changes +++ b/cmis-client.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Mar 4 13:46:50 UTC 2014 - cbosdonnat@suse.com + +- 433fad3-Fix-int-bool-confusion-on-big-endian-architectures.patch + Fix problem with big endian architectures. bnc#866716 + ------------------------------------------------------------------- Mon Dec 30 10:58:01 UTC 2013 - tchvatal@suse.com diff --git a/cmis-client.spec b/cmis-client.spec index 3a0b769..0da70ec 100644 --- a/cmis-client.spec +++ b/cmis-client.spec @@ -1,7 +1,7 @@ # # spec file for package cmis-client # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -27,6 +27,10 @@ License: MPL-1.1 or GPL-2.0+ or LGPL-2.1+ Group: Development/Libraries/C and C++ Url: http://sourceforge.net/projects/libcmis/ Source0: %{_name}-%{version}.tar.gz + +# Upstream patches +Patch0: 433fad3-Fix-int-bool-confusion-on-big-endian-architectures.patch + BuildRequires: boost-devel >= 1.42 BuildRequires: docbook2X BuildRequires: gcc-c++ @@ -79,6 +83,7 @@ This allows C applications to connect to any CMIS-enabled repositories. It is on %prep %setup -q -n %{_name}-%{version} +%patch0 -p1 %build export CFLAGS="%{optflags} -D_GNU_SOURCE $(getconf LFS_CFLAGS)"