Package: kadu
Version: 1.3-2
Severity: important
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu wily ubuntu-patch

Dear Maintainer,

Currently, kadu FTBFS with gcc5 with an error like:

plugins/jabber_protocol/3rdparty/libiris/src/xmpp/base64/base64.cpp:65:2: 
error: narrowing conversion of '-1' from 'int' to 'char' inside { } 
[-Wnarrowing]

I've applied the attached patch in Ubuntu to fix this error.  Thanks for 
considering it for Debian.

-- System Information:
Debian Release: jessie/sid
  APT prefers wily-updates
  APT policy: (500, 'wily-updates'), (500, 'wily-security'), (500, 'wily')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.1.0-2-generic (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
diff -Nru kadu-1.3/debian/patches/gcc5.patch kadu-1.3/debian/patches/gcc5.patch
--- kadu-1.3/debian/patches/gcc5.patch	1969-12-31 19:00:00.000000000 -0500
+++ kadu-1.3/debian/patches/gcc5.patch	2015-08-14 10:29:54.000000000 -0400
@@ -0,0 +1,13 @@
+Index: kadu-1.3/plugins/jabber_protocol/3rdparty/libiris/src/xmpp/base64/base64.cpp
+===================================================================
+--- kadu-1.3.orig/plugins/jabber_protocol/3rdparty/libiris/src/xmpp/base64/base64.cpp
++++ kadu-1.3/plugins/jabber_protocol/3rdparty/libiris/src/xmpp/base64/base64.cpp
+@@ -45,7 +45,7 @@ QByteArray Base64::decode(const QString&
+ 	// 64 specifies eof
+ 	// everything else specifies data
+ 
+-	char tbl[] = {
++	signed char tbl[] = {
+ 		-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 -Nru kadu-1.3/debian/patches/series kadu-1.3/debian/patches/series
--- kadu-1.3/debian/patches/series	2015-07-08 14:32:40.000000000 -0400
+++ kadu-1.3/debian/patches/series	2015-08-14 10:59:46.000000000 -0400
@@ -1,3 +1,4 @@
 01-external-themes.patch
 02-about-dialog.patch
 03-cmake-fix.patch
+gcc5.patch

Reply via email to