From patchwork Mon Apr 2 18:05:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 132675 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp2861187ljb; Mon, 2 Apr 2018 11:06:52 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+p5L33Yc9OCcXG+u2Pzt5M2vvw/yMamQF+0qLIZPmGjWbGFwNlO2N7xCs6A1nyWNoFVtv+ X-Received: by 10.98.103.199 with SMTP id t68mr8046537pfj.24.1522692412324; Mon, 02 Apr 2018 11:06:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522692412; cv=none; d=google.com; s=arc-20160816; b=oL9c2MePdcZWfR9r4VTI9Ua0TYNNj9vTCcvMQ1/t3jq7XfNkiEcOUXXIQOyl0c2bnl mJGj/Q42R3A9xl4BwL27+cu5VDael2nPMvt3B3mNSTS0db6QJeCyu9TsJyWj/FNj4+8P DpaGxOdnxkYR4JtjGfeFV/mFF4DWDaRyl0LiEaPYno3xOkvKVeEIww5koqbe8s7Nu+qJ TysUdvfSiqp7aI8zgGdJRrLXcV8IymwY42IaBCjdDozpnPKOBOiW0vitfFZqhGaxszaN 1qO/gV3dHJMtNbpdGx+NsjqXGEtQl7kAAWexGHNQ8jJejViZCsQlxtGFCAs7xX7R33+u lx+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=ZadTFwVhY1z9h+FMFfr8jmw1G+j6BhGbKDCdaTa+MJw=; b=frPoubbKwxnNmwuXdARHwYNdsfzDgVKoDgUAfjvEEHme8Nzph67Wavesq2xr/Hg2dz hkA7X93z2Uk+LVKGn1BX5W+frsZBNUyJpKZ8vySHcIFbd9MXhUkBWQZ2vh0nC/bxvT+t U2z/gZNeiqlLYwUw58p4ZQ+jvGhJdvfTmlzcWPffigulNipyUQRNpquWJqIO90itbtq6 Bvx3QdnIcMEvZAB0PMl0SqZdtXiPC9Qa8yz2aQ/myMS1tqUdaZeuaGKiGNZMJ4eJqPzX fZAmJDE+YAwPGirjeti8EVgy+hWgaU0Oh+r2NIdes7merwHNBzDgJUBUedRV6zD7Gnce Q/vQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=IgUBbIpw; 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 38-v6si592255plf.737.2018.04.02.11.06.52; Mon, 02 Apr 2018 11:06:52 -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=IgUBbIpw; 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 70BB474830; Mon, 2 Apr 2018 18:06:26 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pl0-f65.google.com (mail-pl0-f65.google.com [209.85.160.65]) by mail.openembedded.org (Postfix) with ESMTP id 9E26E747D8 for ; Mon, 2 Apr 2018 18:05:59 +0000 (UTC) Received: by mail-pl0-f65.google.com with SMTP id g20-v6so5106738plo.9 for ; Mon, 02 Apr 2018 11:06:01 -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; bh=z6cF6ZGVsVI+g240z2EPBi3FFSayguessnKZWZ2FjE8=; b=IgUBbIpwZLnNoL6R+YpFRFjEnP2hiM8KAd0ZOYTFhnLbKY7DowMorN7/bniDnYuRJs jz6SlJNaWOL3guNJmgphh/SFxGhd4m7NlZzIzzk8DziiQIlvgReqcxm1LquEVY92LBHC j1lBrIY6S4nBU2DgI5pOaSWdCKSKpLV1MwmamOYx3Cr5GvmDzO/47c1wiD8Zoa859HdM 5E5AZAnuReXuCggefwZmxFXDU6WYXMFoMC3m0FaJd6zolugdB56AywROq/N7qIrOC4GC n+H2euv87g9lbvLtlA6dCTO5qugSxee2A6fGuxYfDev2mPez+srjnvY09gqzyiLB+T9q 0dJA== 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; bh=z6cF6ZGVsVI+g240z2EPBi3FFSayguessnKZWZ2FjE8=; b=GgPMuL2mAC5s9yq0lyrleq0+IDP5X9fuTFkrdllM+ktMJ36bUZSti9s1vF7jx3sSL1 XOfj+tIvTGdhPtpOCgYysu/Z5m16KjcqiqXALST5V60sGW/nDoE+AH8H9Rc278Oi7PRt uAYewn94xS7U8BRkxJO4cPPPy3D/8iNHLTysH78br9Dz0v6fmoIxCH4UcF+t7QotYR26 1X/AmqF5AZfm2zYB8ODrsMeBb2VZtcO77kZwElwN5kAppFJr6PTR1Y2S8rB/EFzO/QSJ UMEQtfPhHcf41PoMM2Bfd0r3bKE+gNSLXSTtJpCf/tJl2j6sMoZshMUm+WRmVdYkTrMC dobA== X-Gm-Message-State: AElRT7GFfCC5vGuea4MsFlsBBBmmrb4GGGXfuF96HfKtt14Kb4003JPL X5cIWF9CcgzDcKTDGk9A2qlvwA== X-Received: by 2002:a17:902:6ac1:: with SMTP id i1-v6mr10585014plt.152.1522692360564; Mon, 02 Apr 2018 11:06:00 -0700 (PDT) Received: from localhost.localdomain ([2601:646:8880:466c:6245:cbff:fe64:591]) by smtp.gmail.com with ESMTPSA id e4sm1788778pfa.166.2018.04.02.11.05.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 02 Apr 2018 11:05:59 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Mon, 2 Apr 2018 11:05:45 -0700 Message-Id: <20180402180546.38078-5-raj.khem@gmail.com> X-Mailer: git-send-email 2.16.3 In-Reply-To: <20180402180546.38078-1-raj.khem@gmail.com> References: <20180402180546.38078-1-raj.khem@gmail.com> Subject: [oe] [meta-oe][PATCH 5/6] msgpack-c: Update to latest and 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: , MIME-Version: 1.0 Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org Signed-off-by: Khem Raj --- .../0001-Fix-Werror-class-memaccess.patch | 35 ++++++++++++++++++++++ .../recipes-devtools/msgpack/msgpack-c_2.1.5.bb | 3 +- 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 meta-oe/recipes-devtools/msgpack/msgpack-c/0001-Fix-Werror-class-memaccess.patch -- 2.16.3 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-oe/recipes-devtools/msgpack/msgpack-c/0001-Fix-Werror-class-memaccess.patch b/meta-oe/recipes-devtools/msgpack/msgpack-c/0001-Fix-Werror-class-memaccess.patch new file mode 100644 index 000000000..b0d772d93 --- /dev/null +++ b/meta-oe/recipes-devtools/msgpack/msgpack-c/0001-Fix-Werror-class-memaccess.patch @@ -0,0 +1,35 @@ +From a05d92ae85024d0648f69f95307a1d3e8e51109c Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Sun, 1 Apr 2018 19:55:38 -0700 +Subject: [PATCH] Fix -Werror=class-memaccess + +Casting to void* make gcc happy since its upset about +object types and rightly so + +Fixes + +'void* memcpy(void*, const void*, size_t)' copying an object of non-trivial type 'struct msgpack::v2::object' from an array of 'const msgpack_object' {aka 'const struct msgpack_object'} [-Werror=class-memaccess] + +Signed-off-by: Khem Raj +--- +Upstream-Status: Submitted [https://github.com/msgpack/msgpack-c/pull/659] + + include/msgpack/v1/object.hpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/include/msgpack/v1/object.hpp b/include/msgpack/v1/object.hpp +index 64da8c53..9721f705 100644 +--- a/include/msgpack/v1/object.hpp ++++ b/include/msgpack/v1/object.hpp +@@ -661,7 +661,7 @@ inline object::object(const msgpack_object& o) + inline void operator<< (msgpack::object& o, const msgpack_object& v) + { + // FIXME beter way? +- std::memcpy(&o, &v, sizeof(v)); ++ std::memcpy(static_cast(&o), &v, sizeof(v)); + } + + inline object::operator msgpack_object() const +-- +2.16.3 + diff --git a/meta-oe/recipes-devtools/msgpack/msgpack-c_2.1.5.bb b/meta-oe/recipes-devtools/msgpack/msgpack-c_2.1.5.bb index d9f695669..02c0cd296 100644 --- a/meta-oe/recipes-devtools/msgpack/msgpack-c_2.1.5.bb +++ b/meta-oe/recipes-devtools/msgpack/msgpack-c_2.1.5.bb @@ -9,9 +9,10 @@ LIC_FILES_CHKSUM = "file://NOTICE;md5=7a858c074723608e08614061dc044352 \ PV .= "+git${SRCPV}" -SRCREV = "7a98138f27f27290e680bf8fbf1f8d1b089bf138" +SRCREV = "208595b2620cf6260ce3d6d4cf8543f13b206449" SRC_URI = "git://github.com/msgpack/msgpack-c \ + file://0001-Fix-Werror-class-memaccess.patch \ " inherit cmake pkgconfig