SHA256
1
0
forked from pool/cmis-client

Accepting request 224674 from devel:libraries:c_c++

- 433fad3-Fix-int-bool-confusion-on-big-endian-architectures.patch
  Fix problem with big endian architectures. bnc#866716 (forwarded request 224660 from cbosdonnat)

OBS-URL: https://build.opensuse.org/request/show/224674
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cmis-client?expand=0&rev=11
This commit is contained in:
Stephan Kulow 2014-03-06 10:53:13 +00:00 committed by Git OBS Bridge
commit 216fa05ec9
3 changed files with 37 additions and 1 deletions

View File

@ -0,0 +1,25 @@
From 433fad370ddd30c43df281b40ff468a842bc1c70 Mon Sep 17 00:00:00 2001
From: Adam Conrad <adconrad@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.2

View File

@ -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 Mon Dec 30 10:58:01 UTC 2013 - tchvatal@suse.com

View File

@ -1,7 +1,7 @@
# #
# spec file for package cmis-client # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # 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++ Group: Development/Libraries/C and C++
Url: http://sourceforge.net/projects/libcmis/ Url: http://sourceforge.net/projects/libcmis/
Source0: %{_name}-%{version}.tar.gz Source0: %{_name}-%{version}.tar.gz
# Upstream patches
Patch0: 433fad3-Fix-int-bool-confusion-on-big-endian-architectures.patch
BuildRequires: boost-devel >= 1.42 BuildRequires: boost-devel >= 1.42
BuildRequires: docbook2X BuildRequires: docbook2X
BuildRequires: gcc-c++ BuildRequires: gcc-c++
@ -79,6 +83,7 @@ This allows C applications to connect to any CMIS-enabled repositories. It is on
%prep %prep
%setup -q -n %{_name}-%{version} %setup -q -n %{_name}-%{version}
%patch0 -p1
%build %build
export CFLAGS="%{optflags} -D_GNU_SOURCE $(getconf LFS_CFLAGS)" export CFLAGS="%{optflags} -D_GNU_SOURCE $(getconf LFS_CFLAGS)"