From b8da36b9186cbbf95ed33de8d3e3c91ecf9e3fba67ff89bfb7f073002f5adc99 Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Wed, 27 Jul 2016 10:46:49 +0000 Subject: [PATCH] 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 --- narrowing.patch | 13 +++++++++++++ xmlrpc-c.changes | 5 +++++ xmlrpc-c.spec | 4 +++- 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 narrowing.patch diff --git a/narrowing.patch b/narrowing.patch new file mode 100644 index 0000000..f9c117a --- /dev/null +++ b/narrowing.patch @@ -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, diff --git a/xmlrpc-c.changes b/xmlrpc-c.changes index 43d71c5..7370d34 100644 --- a/xmlrpc-c.changes +++ b/xmlrpc-c.changes @@ -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 diff --git a/xmlrpc-c.spec b/xmlrpc-c.spec index 82ae539..1d84695 100644 --- a/xmlrpc-c.spec +++ b/xmlrpc-c.spec @@ -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}"