gcc7 fix
This commit is contained in:
parent
f948f4a5f5
commit
217c4e644a
2 changed files with 19 additions and 1 deletions
12
Add64-gcc7.patch
Normal file
12
Add64-gcc7.patch
Normal file
|
|
@ -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];
|
||||
}
|
||||
}
|
||||
|
|
@ -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 <oget[DOT]fedora[AT]gmail[DOT]com> - 1.2.2-12
|
||||
- gcc7 fix
|
||||
|
||||
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.2-11
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue