Disable Werror to work around build failure with GCC 6 and glibmm

This commit is contained in:
Alexandru Gagniuc 2017-02-17 11:26:29 -08:00
parent 371242e35f
commit 2cdda3d868
1 changed files with 9 additions and 2 deletions

View File

@ -1,6 +1,6 @@
Name: pulseview
Version: 0.3.0
Release: 2%{?dist}
Release: 3%{?dist}
Summary: Signal acquisition and analysis GUI for sigrok
# Combined GPLv3+ (libsigrok and libsigrokdecode) and GPLv2+ (pulseview)
License: GPLv3+
@ -42,8 +42,12 @@ libraries under the hood.
%prep
%autosetup -p1
# Disable warnings as errors (-DDISABLE_WERROR=ON) as a TEMPORARY!!! workaround
# to glibmm header madness
# error: dynamic exception specifications are deprecated in C++11; use 'noexcept' instead [-Werror=deprecated]
# Once glibmm fixes their stuff, re-enable Werror!
%build
%cmake -DCMAKE_BUILD_TYPE=Release
%cmake -DCMAKE_BUILD_TYPE=Release -DDISABLE_WERROR=ON
make %{?_smp_mflags}
%install
@ -80,6 +84,9 @@ update-desktop-database > /dev/null 2>&1 || :
%{_datadir}/icons/hicolor/48x48/apps/sigrok-logo-notext.png
%changelog
* Fri Feb 17 2017 Alexandru Gagniuc <mr.nuke.me@gmail.com> - 0.3.0-3
- Work around build error with GCC6 due to crappy glibmm headers
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild