diff --git a/aspell-0.60.6.1-gcc8-workaround.patch b/aspell-0.60.6.1-gcc8-workaround.patch new file mode 100644 index 0000000..57bb881 --- /dev/null +++ b/aspell-0.60.6.1-gcc8-workaround.patch @@ -0,0 +1,14 @@ +diff --git a/Makefile.in b/Makefile.in +index 730e26b..952460f 100644 +--- a/Makefile.in ++++ b/Makefile.in +@@ -1914,6 +1914,9 @@ uninstall-am: uninstall-binPROGRAMS uninstall-binSCRIPTS \ + uninstall-pkgdataSCRIPTS uninstall-pspell_includeHEADERS + + ++# workaround GCC 8 bug triggered by -O2 ++modules/speller/default/language.lo: CXXFLAGS += -O1 ++ + # settings.h added as a dependency so it will get recreated if + # the COMPILE_IN_FILTERS option changes + gen/static_filters.src.cpp: ${static_optfiles} gen/mk-static-filter.pl gen/settings.h diff --git a/aspell.spec b/aspell.spec index 53acc35..af33785 100644 --- a/aspell.spec +++ b/aspell.spec @@ -1,7 +1,7 @@ Summary: Spell checker Name: aspell Version: 0.60.6.1 -Release: 24%{?dist} +Release: 25%{?dist} Epoch: 12 # LGPLv2+ .. common/gettext.h # LGPLv2 .. modules/speller/default/phonet.hpp, @@ -28,6 +28,8 @@ Patch6: aspell-0.60.6.1-aarch64.patch Patch7: aspell-0.60.6.1-gcc7-fixes.patch # resolves: #1562364 Patch8: aspell-0.60.6.1-fix-back-on-empty-vector.patch +# resolves: #1603421 +Patch9: aspell-0.60.6.1-gcc8-workaround.patch BuildRequires: gcc-c++ BuildRequires: chrpath, gettext, ncurses-devel, pkgconfig, perl-interpreter @@ -63,6 +65,7 @@ and header files needed for Aspell development. %patch6 -p1 -b .aarch64 %patch7 -p1 -b .gcc7-fixes %patch8 -p1 -b .back-empty-vector +%patch9 -p1 -b .gcc8-workaround iconv -f iso-8859-2 -t utf-8 < manual/aspell.info > manual/aspell.info.aux mv manual/aspell.info.aux manual/aspell.info @@ -128,6 +131,10 @@ rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/aspell-import.1 %{_mandir}/man1/pspell-config.1* %changelog +* Mon Feb 04 2019 Nikola Forró - 12:0.60.6.1-25 +- resolves: #1603421 + workaround GCC 8 bug triggered by -O2 + * Thu Jul 12 2018 Fedora Release Engineering - 12:0.60.6.1-24 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild