!9 fix build error caused by GCC upgrade to 10
From: @lipingEmmaSiguyi Reviewed-by: @small_leek Signed-off-by: @small_leek
This commit is contained in:
commit
f685aebf2f
@ -1,10 +1,11 @@
|
|||||||
Name: espeak-ng
|
Name: espeak-ng
|
||||||
Version: 1.49.2
|
Version: 1.49.2
|
||||||
Release: 6
|
Release: 7
|
||||||
Summary: eSpeak NG is an open source speech synthesizer
|
Summary: eSpeak NG is an open source speech synthesizer
|
||||||
License: GPLv3+ and Apache-2.0
|
License: GPLv3+ and Apache-2.0
|
||||||
URL: https://github.com/espeak-ng/espeak-ng
|
URL: https://github.com/espeak-ng/espeak-ng
|
||||||
Source0: https://github.com/espeak-ng/espeak-ng/archive/%{version}.tar.gz
|
Source0: https://github.com/espeak-ng/espeak-ng/archive/%{version}.tar.gz
|
||||||
|
Patch0: gcc-10.patch
|
||||||
BuildRequires: make autoconf automake libtool pkgconfig rubygem-ronn-ng rubygem-kramdown pcaudiolib-devel
|
BuildRequires: make autoconf automake libtool pkgconfig rubygem-ronn-ng rubygem-kramdown pcaudiolib-devel
|
||||||
Provides: espeak-ng-vim = %{version}-%{release}
|
Provides: espeak-ng-vim = %{version}-%{release}
|
||||||
Obsoletes: espeak-ng-vim < %{version}-%{release}
|
Obsoletes: espeak-ng-vim < %{version}-%{release}
|
||||||
@ -32,7 +33,7 @@ Obsoletes: espeak-ng-doc < %{version}-%{release}
|
|||||||
Documentation for espeak-ng.
|
Documentation for espeak-ng.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n espeak-ng-%{version}
|
%autosetup -n espeak-ng-%{version} -p1
|
||||||
rm -rf src/include/compat/endian.h src/compat/getopt.c android/
|
rm -rf src/include/compat/endian.h src/compat/getopt.c android/
|
||||||
%build
|
%build
|
||||||
./autogen.sh
|
./autogen.sh
|
||||||
@ -73,6 +74,9 @@ ESPEAK_DATA_PATH=`pwd` LD_LIBRARY_PATH=src:${LD_LIBRARY_PATH} src/espeak-ng ...
|
|||||||
%{_mandir}/man1/{speak-ng.1.gz,espeak-ng.1.gz}
|
%{_mandir}/man1/{speak-ng.1.gz,espeak-ng.1.gz}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Aug 03 2021 liping <liping136@huawei.com> - 1.49.2-7
|
||||||
|
- fix by upgrade to GCC-10
|
||||||
|
|
||||||
* Sun Feb 07 2020 huanghaitao <huanghaitao8@huawei.com> - 1.49.2-6
|
* Sun Feb 07 2020 huanghaitao <huanghaitao8@huawei.com> - 1.49.2-6
|
||||||
- Swith rubygem-ronn-ng to drop rubygem-ronn
|
- Swith rubygem-ronn-ng to drop rubygem-ronn
|
||||||
|
|
||||||
|
|||||||
11
gcc-10.patch
Normal file
11
gcc-10.patch
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--- a/src/espeak-ng.c 2021-08-03 20:34:16.970088987 +0800
|
||||||
|
+++ b/src/espeak-ng.c 2021-08-03 20:34:06.581921729 +0800
|
||||||
|
@@ -115,7 +115,7 @@ static const char *help_text =
|
||||||
|
"\t If <language> is omitted, then list all voices.\n"
|
||||||
|
"-h, --help Show this help.\n";
|
||||||
|
|
||||||
|
-int samplerate;
|
||||||
|
+static int samplerate;
|
||||||
|
int quiet = 0;
|
||||||
|
unsigned int samples_total = 0;
|
||||||
|
unsigned int samples_split = 0;
|
||||||
Loading…
x
Reference in New Issue
Block a user