From 217c4e644a0c5d8f437ec4ab1b5f9f8b29aca97d Mon Sep 17 00:00:00 2001 From: Orcan Ogetbil Date: Feb 17 2017 04:42:03 +0000 Subject: gcc7 fix --- diff --git a/Add64-gcc7.patch b/Add64-gcc7.patch new file mode 100644 index 0000000..3705ffc --- /dev/null +++ b/Add64-gcc7.patch @@ -0,0 +1,12 @@ +diff -rupN Add64-1.2.2.org/jackprocessor.cpp Add64-1.2.2/jackprocessor.cpp +--- Add64-1.2.2.org/jackprocessor.cpp 2011-08-07 07:35:20.000000000 -0400 ++++ Add64-1.2.2/jackprocessor.cpp 2017-02-16 23:31:14.464518833 -0500 +@@ -222,7 +222,7 @@ int JackProcessor::jack_callback(jack_nf + } + for (i1 = 0; i1 < 2; i1++) { + p[i1] = (jack_default_audio_sample_t *)(jack_port_get_buffer (jackOut[i1], nframes)); +- for (i2 = 0; i2 < abs(nframes); i2++) { ++ for (i2 = 0; i2 < nframes; i2++) { + p[i1][i2] = 1e-9 * model->buf[i1][i2]; + } + } diff --git a/Add64.spec b/Add64.spec index 02257b4..2191793 100644 --- a/Add64.spec +++ b/Add64.spec @@ -1,12 +1,14 @@ Summary: An additive synthesizer using JACK Name: Add64 Version: 1.2.2 -Release: 11%{?dist} +Release: 12%{?dist} URL: http://sourceforge.net/projects/add64 Source0: http://downloads.sourceforge.net/project/add64/%{name}-%{version}.tar.bz2 Source1: %{name}.desktop # icon taken from screenshot Source2: add64.png +# gcc7 fix +Patch0: Add64-gcc7.patch License: GPLv3 Group: Applications/Multimedia @@ -19,6 +21,7 @@ Add64 is an additive synthesizer using Qt and the JACK audio connection kit %prep %setup -q -n %{name}-%{version} +%patch0 -p1 -b .gcc7 sed -i -e 's|lib64|%{_lib}|' \ -e 's|$(QT_BASE_DIR)/bin|%{_qt4_libdir}/qt4/bin|' \ -e 's|-lm|-lm -lstdc++|' \ @@ -90,6 +93,9 @@ update-desktop-database &> /dev/null || : %{_datadir}/pixmaps/add64.png %changelog +* Thu Feb 16 2017 Orcan Ogetbil - 1.2.2-12 +- gcc7 fix + * Fri Feb 10 2017 Fedora Release Engineering - 1.2.2-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild