From patchwork Mon Apr 16 06:01:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 133430 Delivered-To: patch@linaro.org Received: by 10.46.84.18 with SMTP id i18csp3205460ljb; Sun, 15 Apr 2018 23:02:36 -0700 (PDT) X-Google-Smtp-Source: AIpwx49ZxnA1f2TBFkl5QKUgngkTe03tVISSFXfGbfX8Bou0lTacRM/BO6ABXDpq5/sz8KxYTyOh X-Received: by 10.98.212.67 with SMTP id u3mr20191232pfl.58.1523858556848; Sun, 15 Apr 2018 23:02:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523858556; cv=none; d=google.com; s=arc-20160816; b=pY32JywVHIHXOdLh0udh3ulnlbzbJ7l9Evbm+GCOT7Qqg6ONbfWHXoWx/LSnFq+bGp N7alP2Ngb8EiGvr89zpOq0l2B0uS1W1bP3kKNS5AqNcnmAlTGIo+Z2Y1rCsgqS4XKDNF cSxEPHXWEiqwYAFwN35R3nOGpxGk4cP760P3XZytXKB0M9tjtTBNPx0OGfB7yyrA6IuN UyI8zwks1kCTQtEtUVJ3NaKGLxObZWg6DLmZxsBxycGcdmvRFTqblxXaXUMmTDaBBdvi gHuQkenTFWuYwcfMlz2BFyOF6SZF5Y3NruAWeirDAPD2YcjR4nQX6GYJVlPpw4x8n/Yq Y5qQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature:delivered-to:arc-authentication-results; bh=AplUtlieywuNxh2uH4HqTFq3RrXaHx5Sdu8o1Y/2q94=; b=hjRbWvsKA+3fXPMLdW6R/q0Dzh6J9OcADi+j9y4kn7lYbBHcyWLclbsBCXMQAxEbW7 odvC2EIZlcj+ejWlhuFRG1ax9Usd0IyF2fThC3kWZCDQ8qajc43QltckcdICgkau+4XZ WDsW/spdMM6DywESv//6YcMYag7e/2+8OfGNWCTLbaMr3DCZinqCcVcHSAIm1nnsB5JO u1kVKmuQ4Gy6YLvYaqtiVDOt2nCgBlgUWDkTZafYI71zmuvsWqKhRPfMu33edM/NCTcr YAEl4FVUOnd3h1Ab1JWu6rQplJfJKPwX4Um2Nh6oeEpKN2tfQEQlMKp6/6Du668uJM9E Cpxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=nwmaZCmL; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id d9si8695581pgo.687.2018.04.15.23.02.36; Sun, 15 Apr 2018 23:02:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=nwmaZCmL; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from layers.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id B87E37453E; Mon, 16 Apr 2018 06:02:19 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pg0-f54.google.com (mail-pg0-f54.google.com [74.125.83.54]) by mail.openembedded.org (Postfix) with ESMTP id 58AE560685 for ; Mon, 16 Apr 2018 06:01:45 +0000 (UTC) Received: by mail-pg0-f54.google.com with SMTP id p10so3317975pgn.1 for ; Sun, 15 Apr 2018 23:01:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=IE2AMrgVmcW8FDJ3YOhwEA7rrxfCKo0VDMfJ0kKXPAc=; b=nwmaZCmLQFjtmnKXVq42hikOwjhrbvoJeA/NF5QV+IpZZJJBXuPAMdE1rcvZCeZRD2 d041D9uY7J+nRosVxNVAVxjwX0aK7vWf+ia9yVHJjaMmCCp+Lb19H7QX2JJOhJOak1jp z86KifoE5z17ZlMy3LqTF/XbvlZdfjxuxDSlqlGfTp+gf3sHrB25zvrYx79kDPAncxka Xj7iWXazrU4dBrIcAT5YYXksrNOUfBGO42eb2KbQbnqq9GF6jvJmDTo96zKe+ubE3XuT WrXHieiCJTSo8yHVngq+WgoxGXOUlk0p+iSM7ROgQFpCwyZKki3Reu5NW4FOICeeQiVD xeVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=IE2AMrgVmcW8FDJ3YOhwEA7rrxfCKo0VDMfJ0kKXPAc=; b=hZJXFBYV7lSIrwYmhetCXz5YrKfCWIZtGTK7c9XrQH8Caiq5dxOhBRluOpXxHVqYED fLyHtXbn27EmZWxpW3n+1p35cDB2/v2jcw8C+ghK+raM94PcwvxtsaxjtP4rJVSlJMFJ JKyDJOBKRnSAroPcugwCN+RzSwsjpjI+aVhd48W3MA6h5lBB7jzKjoAxhxpPZ2yy3ABo rtOYyJjSsph5CjFYGl3XlzrXMe3yiDkJzI+Q1aZKy9K6zkiEblQRsRB+Ajay47GiWeF8 aAEjjiwhksiD1DzQ24eCiEwf6fVjlPgaeVjcDhAK8GWo7gSec85EXRycyUOI2pP6ZP3g v9Fg== X-Gm-Message-State: ALQs6tC6Cq8bKZDHfNkBkh1QrwYW/MY/ehJUZpeTrFVmc3v9/PesLTNa fMTrgcTVwRts64FZqIC8HECR5Q== X-Received: by 10.98.7.152 with SMTP id 24mr20333558pfh.94.1523858506552; Sun, 15 Apr 2018 23:01:46 -0700 (PDT) Received: from localhost.localdomain ([2601:646:8880:466c::487b]) by smtp.gmail.com with ESMTPSA id 75sm22412103pfx.71.2018.04.15.23.01.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 15 Apr 2018 23:01:45 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Sun, 15 Apr 2018 23:01:33 -0700 Message-Id: <20180416060134.26291-5-raj.khem@gmail.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180416060134.26291-1-raj.khem@gmail.com> References: <20180416060134.26291-1-raj.khem@gmail.com> MIME-Version: 1.0 Subject: [oe] [meta-oe][PATCH 5/6] libyui: Fix build with gcc8 X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org Signed-off-by: Khem Raj --- .../libyui/0001-Fix-GCC-8-warning.patch | 48 +++++++++++++++++++ meta-oe/recipes-graphics/libyui/libyui_git.bb | 1 + 2 files changed, 49 insertions(+) create mode 100644 meta-oe/recipes-graphics/libyui/libyui/0001-Fix-GCC-8-warning.patch 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 @@ +From 1e6d40fec16a94d1a4bd40634405267200b7e969 Mon Sep 17 00:00:00 2001 +From: marxin +Date: Tue, 10 Apr 2018 15:21:40 +0200 +Subject: [PATCH] Fix GCC 8 warning: +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +/home/marxin/Programming/libyui/src/YDialog.cc: In static member function ‘static void YDialog::showText(const string&, bool)’: +/home/marxin/Programming/libyui/src/YDialog.cc:690:26: error: catching polymorphic type ‘class YUIException’ by value [-Werror=catch-value=] + catch ( YUIException exception ) + ^~~~~~~~~ +/home/marxin/Programming/libyui/src/YDialog.cc: In static member function ‘static bool YDialog::showRelNotesText()’: +/home/marxin/Programming/libyui/src/YDialog.cc:814:26: error: catching polymorphic type ‘class YUIException’ by value [-Werror=catch-value=] + catch ( YUIException exception ) + ^~~~~~~~~ +--- +Upstream-Status: Submitted [https://github.com/libyui/libyui/pull/122] +Signed-off-by: Khem Raj + + src/YDialog.cc | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/YDialog.cc b/src/YDialog.cc +index 92e5031..8ecff90 100644 +--- 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 ( 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 ( YUIException &exception ) + { + // Don't let the application die just because RN couldn't be displayed. + +-- +2.17.0 + 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 \ " SRC_URI = "git://github.com/libyui/libyui.git \ + file://0001-Fix-GCC-8-warning.patch \ " PV = "3.3.3+git"