From fa59ad202d36159ccf32a2b1e33427f1f29b9b2c Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Tue, 8 Mar 2016 01:10:41 -0600 Subject: [PATCH] Fix FTBFS with GCC 6 (#1307307) --- adplug-2.1-gcc6.patch | 23 +++++++++++++++++++++++ adplug.spec | 8 +++++++- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 adplug-2.1-gcc6.patch diff --git a/adplug-2.1-gcc6.patch b/adplug-2.1-gcc6.patch new file mode 100644 index 0000000..79dc342 --- /dev/null +++ b/adplug-2.1-gcc6.patch @@ -0,0 +1,23 @@ +diff -upr a/src/s3m.cpp b/src/s3m.cpp +--- a/src/s3m.cpp 2006-07-02 00:27:00.000000000 -0500 ++++ b/src/s3m.cpp 2016-03-07 23:20:56.039017533 -0600 +@@ -25,7 +25,7 @@ + #include + #include "s3m.h" + +-const char Cs3mPlayer::chnresolv[] = // S3M -> adlib channel conversion ++const signed char Cs3mPlayer::chnresolv[] = // S3M -> adlib channel conversion + {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,0,1,2,3,4,5,6,7,8,-1,-1,-1,-1,-1,-1,-1}; + + const unsigned short Cs3mPlayer::notetable[12] = // S3M adlib note table +--- a/src/s3m.h 2006-05-13 00:36:42.000000000 -0500 ++++ b/src/s3m.h 2016-03-08 00:56:07.953972552 -0600 +@@ -90,7 +90,7 @@ class Cs3mPlayer: public CPlayer + unsigned char crow,ord,speed,tempo,del,songend,loopstart,loopcnt; + + private: +- static const char chnresolv[]; ++ static const signed char chnresolv[]; + static const unsigned short notetable[12]; + static const unsigned char vibratotab[32]; + diff --git a/adplug.spec b/adplug.spec index 1951fc9..e809968 100644 --- a/adplug.spec +++ b/adplug.spec @@ -4,7 +4,7 @@ %define adplugdbver 2006-07-07 Name: adplug Version: 2.1 -Release: 20%{?dist} +Release: 21%{?dist} Summary: A software library for AdLib (OPL2) emulation URL: http://adplug.sourceforge.net/ Group: Applications/Multimedia @@ -14,6 +14,8 @@ Patch0: adplug-1.5.1-texinfo.patch # Lifted from the debian patchset # http://ftp.de.debian.org/debian/pool/main/a/adplug/adplug_2.0.1-6.diff.gz Patch1: adplug-2.1-include.patch +# fix build with GCC 6 (#1307307) +Patch2: adplug-2.1-gcc6.patch License: LGPLv2+ BuildRequires: libbinio-devel >= 1.4 BuildRequires: pkgconfig @@ -48,6 +50,7 @@ This package contains development files for the AdPlug AdLib # This removes the version.texi dependency %patch0 -p1 %patch1 -p1 +%patch2 -p1 tar xvfz %{SOURCE1} # Include these by different name mv %{adplugdbver}/README README.adplugdb @@ -94,6 +97,9 @@ fi %{_infodir}/*.gz %changelog +* Tue Mar 08 2016 Yaakov Selkowitz - 2.1-21 +- Fix FTBFS with GCC 6 (#1307307) + * Wed Feb 03 2016 Fedora Release Engineering - 2.1-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild