From 3e7c8f6fb50f424d9a1bcdbee6662c56edd4cf2d Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Feb 15 2016 22:33:45 +0000 Subject: build: fix for gcc 6.0.0 Per kdudka's comment: From https://bugzilla.redhat.com/show_bug.cgi?id=1306162#c5: GCC upstream explains why this is a bug in openjade's code: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69534#c9 As fixing the code would be non-trivial, using the -fno-lifetime-dse compilation flag sounds like a good enough solution to this bug. Resolves: rhbz#1306162 Version: 1.3.2-51 --- diff --git a/openjade.spec b/openjade.spec index 42daf41..7732569 100644 --- a/openjade.spec +++ b/openjade.spec @@ -1,7 +1,7 @@ Summary: A DSSSL implementation Name: openjade Version: 1.3.2 -Release: 50%{?dist} +Release: 51%{?dist} Requires: sgml-common URL: http://openjade.sourceforge.net/ Source: http://download.sourceforge.net/openjade/openjade-%{version}.tar.gz @@ -55,7 +55,7 @@ XML, RTF, TeX, MIF (FrameMaker), SGML, or XML. %build cp -p %{SOURCE2} %{SOURCE3} config/ # more info: rhbz#1306162 -export CXXFLAGS="%optflags -fno-tree-dse" +export CXXFLAGS="%optflags -fno-lifetime-dse" %configure --disable-static --datadir=%{_datadir}/sgml/%{name}-%{version} \ --enable-splibdir=%{_libdir} make @@ -109,6 +109,9 @@ rm -rf $RPM_BUILD_ROOT %{_datadir}/sgml/%{name}-%{version} %changelog +* Mon Feb 15 2016 Pavel Raiskup - 1.3.2-51 +- using -fno-lifetime-dse instead of -ftree-dse (rhbz#1306162) + * Thu Feb 11 2016 Pavel Raiskup - 1.3.2-50 - temporarily disable -ftree-dse optimization (rhbz#1306162)