From e4919979d26877d92c517f161b2236e522829526 Mon Sep 17 00:00:00 2001 From: Dominik 'Rathann' Mierzejewski Date: Wed, 6 Oct 2021 00:10:42 +0200 Subject: [PATCH] fix LTO warnings --- flite-2.2-lto.patch | 24 ++++++++++++++++++++++++ flite.spec | 3 +++ 2 files changed, 27 insertions(+) create mode 100644 flite-2.2-lto.patch diff --git a/flite-2.2-lto.patch b/flite-2.2-lto.patch new file mode 100644 index 0000000..ae6d341 --- /dev/null +++ b/flite-2.2-lto.patch @@ -0,0 +1,24 @@ +diff -up flite-2.2/lang/cmu_grapheme_lex/cmu_grapheme_lex.h.lto flite-2.2/lang/cmu_grapheme_lex/cmu_grapheme_lex.h +--- flite-2.2/lang/cmu_grapheme_lex/cmu_grapheme_lex.h.lto 2020-08-13 02:17:09.000000000 +0200 ++++ flite-2.2/lang/cmu_grapheme_lex/cmu_grapheme_lex.h 2021-10-06 00:06:41.891126362 +0200 +@@ -44,7 +44,7 @@ extern "C" { + cst_lexicon *cmu_grapheme_lex_init(void); + + extern const int num_unicode_sampa_mapping; +-extern const char * const unicode_sampa_mapping[16663][5]; ++extern const char * const unicode_sampa_mapping[16798][5]; + + #ifdef __cplusplus + } /* extern "C" */ +diff -up flite-2.2/lang/cmulex/cmu_lex.c.lto flite-2.2/lang/cmulex/cmu_lex.c +--- flite-2.2/lang/cmulex/cmu_lex.c.lto 2020-08-13 02:17:09.000000000 +0200 ++++ flite-2.2/lang/cmulex/cmu_lex.c 2021-10-06 00:05:48.817719935 +0200 +@@ -46,7 +46,7 @@ extern const int cmu_lex_entry[]; + extern const unsigned char cmu_lex_data[]; + extern const int cmu_lex_num_entries; + extern const int cmu_lex_num_bytes; +-extern const char * const cmu_lex_phone_table[54]; ++extern const char * const cmu_lex_phone_table[57]; + extern const char * const cmu_lex_phones_huff_table[]; + extern const char * const cmu_lex_entries_huff_table[]; + diff --git a/flite.spec b/flite.spec index 9f0bc25..a4d43a0 100644 --- a/flite.spec +++ b/flite.spec @@ -6,6 +6,7 @@ License: MIT URL: http://www.speech.cs.cmu.edu/flite/ Source0: https://github.com/festvox/flite/archive/v%{version}/flite-%{version}.tar.gz +Patch0: flite-2.2-lto.patch # texi2pdf # WARNING see explanation about PDF doc below. #BuildRequires: texinfo-tex @@ -34,6 +35,7 @@ Development files for Flite, a small, fast speech synthesis engine. %prep %setup -q +%patch0 -p1 -b .lto %build @@ -82,6 +84,7 @@ LD_LIBRARY_PATH=%{buildroot}%{_libdir} make -C testsuite do_thread_test - drop obsolete ldconfig_scriptlets macro - enable parallel make - use modern macros +- fix LTO warnings * Wed Jul 21 2021 Fedora Release Engineering - 1.3-38 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild