From bd533c635be95666be1bd0dddefdcc6206c0bfa0 Mon Sep 17 00:00:00 2001 From: leigh123linux Date: Aug 13 2018 13:48:42 +0000 Subject: Fix gcc-8 build issue --- diff --git a/fix_gcc8.patch b/fix_gcc8.patch new file mode 100644 index 0000000..0018b64 --- /dev/null +++ b/fix_gcc8.patch @@ -0,0 +1,20 @@ +--- a/src/YDialog.cc ++++ b/src/YDialog.cc +@@ -687,7 +687,7 @@ YDialog::showText( const std::string & text, bool useRichText ) + dialog->waitForEvent(); + dialog->destroy(); + } +- catch ( YUIException exception ) ++ catch ( const YUIException & exception ) + { + // Don't let the application die just because help couldn't be displayed. + +@@ -811,7 +811,7 @@ YDialog::showRelNotesText() + } + dialog->destroy(); + } +- catch ( YUIException exception ) ++ catch ( const YUIException & exception ) + { + // Don't let the application die just because RN couldn't be displayed. + diff --git a/libyui.spec b/libyui.spec index 2795462..8302876 100644 --- a/libyui.spec +++ b/libyui.spec @@ -15,12 +15,14 @@ Name: lib%{libsuffix} Version: 3.3.3 -Release: 3%{?dist} +Release: 4%{?dist} Summary: GUI-abstraction library License: (LGPLv2 or LGPLv3) and MIT URL: https://github.com/%{name}/%{name} Source0: %{url}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz +# Based on https://github.com/libyui/libyui/commit/b1f593cd99fd33cc3f0cf9b4f5151f672b68d96e +Patch0: fix_gcc8.patch BuildRequires: gcc-c++ BuildRequires: boost-devel @@ -150,6 +152,9 @@ popd %changelog +* Mon Aug 13 2018 Leigh Scott - 3.3.3-4 +- Fix gcc-8 build issue + * Fri Jul 13 2018 Fedora Release Engineering - 3.3.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild