SHA256
1
0
forked from pool/xmlrpc-c

Accepting request 415389 from home:Andreas_Schwab:Factory

- narrowing.patch: fix invalid narrowing conversion

OBS-URL: https://build.opensuse.org/request/show/415389
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/xmlrpc-c?expand=0&rev=74
This commit is contained in:
Martin Pluskal 2016-07-27 10:46:49 +00:00 committed by Git OBS Bridge
parent 07990f5dc4
commit b8da36b918
3 changed files with 21 additions and 1 deletions

13
narrowing.patch Normal file
View File

@ -0,0 +1,13 @@
Index: xmlrpc-c-1.33.18/src/cpp/base64.cpp
===================================================================
--- xmlrpc-c-1.33.18.orig/src/cpp/base64.cpp
+++ xmlrpc-c-1.33.18/src/cpp/base64.cpp
@@ -14,7 +14,7 @@ using namespace xmlrpc_c;
namespace {
-char const table_a2b_base64[] = {
+signed char const table_a2b_base64[] = {
-1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1,
-1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1,
-1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,62, -1,-1,-1,63,

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jul 27 10:16:05 UTC 2016 - schwab@suse.de
- narrowing.patch: fix invalid narrowing conversion
-------------------------------------------------------------------
Tue Nov 17 12:20:54 UTC 2015 - mpluskal@suse.com

View File

@ -1,7 +1,7 @@
#
# spec file for package xmlrpc-c
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -28,6 +28,7 @@ Url: http://xmlrpc-c.sourceforge.net/
#SVN-Clone: http://svn.code.sf.net/p/xmlrpc-c/code/stable/
#Snapshot: r2540
Source: http://sourceforge.net/projects/xmlrpc-c/files/Xmlrpc-c%20Super%20Stable/%{version}/%{name}-%{version}.tgz
Patch: narrowing.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gcc-c++
@ -194,6 +195,7 @@ package is used by XML-RPC clients and servers written in C and C++.
%prep
%setup -q
%patch -p1
%build
export CFLAGS_PERSONAL="%{optflags}"