diff options
author | Khem Raj <raj.khem@gmail.com> | 2018-04-15 23:01:33 -0700 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2018-05-01 18:13:55 -0700 |
commit | de21729a76518eaf639151964a8e7dc056113eda (patch) | |
tree | fd9f117ecf10d721b4e0e3141d981b93de61f016 /meta-oe/recipes-graphics | |
parent | 9a170f1b6268afb56fb71fb1dc0161ff31f4cecd (diff) | |
download | meta-openembedded-de21729a76518eaf639151964a8e7dc056113eda.tar.gz |
libyui: Fix build with gcc8
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'meta-oe/recipes-graphics')
-rw-r--r-- | meta-oe/recipes-graphics/libyui/libyui/0001-Fix-GCC-8-warning.patch | 48 | ||||
-rw-r--r-- | meta-oe/recipes-graphics/libyui/libyui_git.bb | 1 |
2 files changed, 49 insertions, 0 deletions
diff --git a/meta-oe/recipes-graphics/libyui/libyui/0001-Fix-GCC-8-warning.patch b/meta-oe/recipes-graphics/libyui/libyui/0001-Fix-GCC-8-warning.patch new file mode 100644 index 000000000..c1ba42eee --- /dev/null +++ b/meta-oe/recipes-graphics/libyui/libyui/0001-Fix-GCC-8-warning.patch | |||
@@ -0,0 +1,48 @@ | |||
1 | From 1e6d40fec16a94d1a4bd40634405267200b7e969 Mon Sep 17 00:00:00 2001 | ||
2 | From: marxin <mliska@suse.cz> | ||
3 | Date: Tue, 10 Apr 2018 15:21:40 +0200 | ||
4 | Subject: [PATCH] Fix GCC 8 warning: | ||
5 | MIME-Version: 1.0 | ||
6 | Content-Type: text/plain; charset=UTF-8 | ||
7 | Content-Transfer-Encoding: 8bit | ||
8 | |||
9 | /home/marxin/Programming/libyui/src/YDialog.cc: In static member function ‘static void YDialog::showText(const string&, bool)’: | ||
10 | /home/marxin/Programming/libyui/src/YDialog.cc:690:26: error: catching polymorphic type ‘class YUIException’ by value [-Werror=catch-value=] | ||
11 | catch ( YUIException exception ) | ||
12 | ^~~~~~~~~ | ||
13 | /home/marxin/Programming/libyui/src/YDialog.cc: In static member function ‘static bool YDialog::showRelNotesText()’: | ||
14 | /home/marxin/Programming/libyui/src/YDialog.cc:814:26: error: catching polymorphic type ‘class YUIException’ by value [-Werror=catch-value=] | ||
15 | catch ( YUIException exception ) | ||
16 | ^~~~~~~~~ | ||
17 | --- | ||
18 | Upstream-Status: Submitted [https://github.com/libyui/libyui/pull/122] | ||
19 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
20 | |||
21 | src/YDialog.cc | 4 ++-- | ||
22 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
23 | |||
24 | diff --git a/src/YDialog.cc b/src/YDialog.cc | ||
25 | index 92e5031..8ecff90 100644 | ||
26 | --- a/src/YDialog.cc | ||
27 | +++ b/src/YDialog.cc | ||
28 | @@ -687,7 +687,7 @@ YDialog::showText( const std::string & text, bool useRichText ) | ||
29 | dialog->waitForEvent(); | ||
30 | dialog->destroy(); | ||
31 | } | ||
32 | - catch ( YUIException exception ) | ||
33 | + catch ( YUIException &exception ) | ||
34 | { | ||
35 | // Don't let the application die just because help couldn't be displayed. | ||
36 | |||
37 | @@ -811,7 +811,7 @@ YDialog::showRelNotesText() | ||
38 | } | ||
39 | dialog->destroy(); | ||
40 | } | ||
41 | - catch ( YUIException exception ) | ||
42 | + catch ( YUIException &exception ) | ||
43 | { | ||
44 | // Don't let the application die just because RN couldn't be displayed. | ||
45 | |||
46 | -- | ||
47 | 2.17.0 | ||
48 | |||
diff --git a/meta-oe/recipes-graphics/libyui/libyui_git.bb b/meta-oe/recipes-graphics/libyui/libyui_git.bb index 92d96044e..e46e365b2 100644 --- a/meta-oe/recipes-graphics/libyui/libyui_git.bb +++ b/meta-oe/recipes-graphics/libyui/libyui_git.bb | |||
@@ -6,6 +6,7 @@ LIC_FILES_CHKSUM = "file://COPYING.gpl-3;md5=d32239bcb673463ab874e80d47fae504 \ | |||
6 | " | 6 | " |
7 | 7 | ||
8 | SRC_URI = "git://github.com/libyui/libyui.git \ | 8 | SRC_URI = "git://github.com/libyui/libyui.git \ |
9 | file://0001-Fix-GCC-8-warning.patch \ | ||
9 | " | 10 | " |
10 | 11 | ||
11 | PV = "3.3.3+git" | 12 | PV = "3.3.3+git" |