[packages/libsidplay2] debian patch to fix build with gcc >= 6

atler atler at pld-linux.org
Thu Jan 21 18:47:54 CET 2021


commit 16400598c6b0a2383fedc43bdf191056ae427e89
Author: Jan Palus <atler at pld-linux.org>
Date:   Thu Jan 21 18:47:32 2021 +0100

    debian patch to fix build with gcc >= 6

 gcc6-fixes.patch | 22 ++++++++++++++++++++++
 libsidplay2.spec |  2 ++
 2 files changed, 24 insertions(+)
---
diff --git a/libsidplay2.spec b/libsidplay2.spec
index a36fbb2..0a0cd91 100644
--- a/libsidplay2.spec
+++ b/libsidplay2.spec
@@ -10,6 +10,7 @@ Source0:	http://downloads.sourceforge.net/sidplay2/sidplay-libs-%{version}.tar.g
 Patch0:		gcc4-fixes.patch
 Patch1:		configure-fixes.patch
 Patch2:		pkg-config.patch
+Patch3:		gcc6-fixes.patch
 URL:		http://sidplay2.sourceforge.net/
 BuildRequires:	autoconf >= 2.50
 BuildRequires:	automake
@@ -62,6 +63,7 @@ Ten pakiet zawiera statyczną wersję libsidplay.
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 
 %build
 cd libsidplay
diff --git a/gcc6-fixes.patch b/gcc6-fixes.patch
new file mode 100644
index 0000000..7cfac32
--- /dev/null
+++ b/gcc6-fixes.patch
@@ -0,0 +1,22 @@
+Description: explicit cast to int8_t
+ Fix FTBFS with GCC 6 due to narrowing conversions from 'char' to 'int8_t'.
+Author: Laszlo Boszormenyi (GCS) <gcs at debian.org>
+Forwarded: no
+Bug-Debian: https://bugs.debian.org/837378
+Last-Update: 2016-09-19
+
+---
+
+--- sidplay-libs-2.1.1.orig/libsidplay/src/xsid/xsid.cpp
++++ sidplay-libs-2.1.1/libsidplay/src/xsid/xsid.cpp
+@@ -96,8 +96,8 @@ const int8_t XSID::sampleConvertTable[16
+ */
+ const int8_t XSID::sampleConvertTable[16] =
+ {
+-    '\x80', '\x94', '\xa9', '\xbc', '\xce', '\xe1', '\xf2', '\x03',
+-    '\x1b', '\x2a', '\x3b', '\x49', '\x58', '\x66', '\x73', '\x7f'
++    (int8_t)'\x80', (int8_t)'\x94', (int8_t)'\xa9', (int8_t)'\xbc', (int8_t)'\xce', (int8_t)'\xe1', (int8_t)'\xf2', (int8_t)'\x03',
++    (int8_t)'\x1b', (int8_t)'\x2a', (int8_t)'\x3b', (int8_t)'\x49', (int8_t)'\x58', (int8_t)'\x66', (int8_t)'\x73', (int8_t)'\x7f'
+ };
+ 
+ const char *XSID::credit =
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libsidplay2.git/commitdiff/16400598c6b0a2383fedc43bdf191056ae427e89



More information about the pld-cvs-commit mailing list