From patchwork Sat Jul 27 20:06:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 169949 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp1655362ilk; Sat, 27 Jul 2019 13:07:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqz05ZIXLGO+eTw1hGDdz+ohXCodiscwCTt+AJsKOTusiy54VWNma8CDIwttuSm0Knaf4yp9 X-Received: by 2002:a62:82c1:: with SMTP id w184mr29300587pfd.8.1564258020231; Sat, 27 Jul 2019 13:07:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564258020; cv=none; d=google.com; s=arc-20160816; b=dCCQ5//tsBG5Bzjd/DhF3sldrOVDQSLK2iQpEXspzs7w/YX10kaS2efqyYGNYk9M+4 gb6tUk9A+RZuNYAj6DXL9aM4N4V3jwWLNt6GAZTGWJZywMNVn2W7xPwrlGgkFxd8K8ng qV9j+opHiJDY1j6L0a83YU+Bv3ImscC6Jo6EVwXI9Q853S4Z7fm38M4VzQnkkRo8ubL6 t4qmTAPvaUNuxbMMoC5bxqGheiiF0UKyxscqPFv7/hflh4db6019okNJHUltIFaOFdBy AjozJrgNfTHHArNOoizu2OHCiizrgvayGk5F7C+0aRIlbTbmIiZgz2YtccB0dGSoJfmi kGVQ== 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; bh=iRBUc7vdAFMoyg0K4AthR/hrWojXP8yOwRDB5vfNyN8=; b=Ec9rieqK5IKo17ONiVyTNYnNmld9lYxQlCoPtG6mZOC8LFfDJgWf1FDGlpUzyMxs/L wAacrbfkAcH7pSj0TQybiWLRp1ltfLEvtMOQxSINbbxYJdGgZy0wL835I+OSW0MdZ+Ce h21GptKyLOKJu8hXavbWgq28OBng9GLibQYBnNszdwKBVybZ8sHvCvbIdk5yiA+XGEF+ f1eoFn9ngohU5yqJhW0GJ1620RooX76usw0OwMOAPgtjnAAfysSmtl0lQSujxYOzqcX6 pAZpc78b26iuNRZ5XQ0BvwHPP/3DPhXc4Is581HC9uXRken8UFfbISFQtENenSULagE5 DZoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=AXWb+oqB; 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 f98si4096872plb.256.2019.07.27.13.06.59; Sat, 27 Jul 2019 13:07:00 -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=AXWb+oqB; 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 ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 0DE8E7F219; Sat, 27 Jul 2019 20:06:57 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pf1-f179.google.com (mail-pf1-f179.google.com [209.85.210.179]) by mail.openembedded.org (Postfix) with ESMTP id EA03E7F1E3 for ; Sat, 27 Jul 2019 20:06:23 +0000 (UTC) Received: by mail-pf1-f179.google.com with SMTP id r7so26069129pfl.3 for ; Sat, 27 Jul 2019 13:06:25 -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=BIw8drt8FfGvh93+urmRhNPW7U7XaJN62Dw+e8TXT8k=; b=AXWb+oqB9TvmRBz5zV06dyVOtUS9ZDjlzNMO5av55NY4jWVcdUWyNQlPkLN8EoA6up zGXe+eMKvliqsy/W0CzPP0x0+pTOnKC2GfrXi0UkMQhkDiIOkAstjYQMJ3lLoGTpSHDR SYHfYjUQ96Eb++9BwixH0XtTgTbqGbUuDTIf5sPC+gc5ZAtFaE5sJch4OsH9TMLChdX+ XzlpyYQ+/cDL2LtV8FHX6YnbyTakGfzdbf4wgi8v/A/BItLZpKtSnAUrG6ZZT5R3nvdF Kcn5nReUOVjEw1vZ/17OizhrYhHJ/ILJjsBgFicKS78EV3o3r85hQIZgll801HYBc2ig DKfA== 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=BIw8drt8FfGvh93+urmRhNPW7U7XaJN62Dw+e8TXT8k=; b=bvmJ8FTy13pNI32CPLMz2VE+VQOp24fNzd8UCYh/b/xr5Pt1rO+24NaaSt3JO1/dEf zCWvQ9+2LC/ji4XwCXiPe0yICKw7UPFFSWL+jGew0kruay5dK12k4EmE03sSJeTqhIcn lBrrmw5FN/Z0BIGK2NE/tWp2cBIwKiYtKF3Xq+kMFce2pppiYAgUYXtY2DVw6IoGE89L r6HvFBtSCuoNWM//USzKA9bgB7fbbR87KSxrBjdufmq4A19KOwrDylze13yAuAx91qUv waTuK7PmDofWrSObqgmPhCuCY2GFg2OaUQUKO9s0pVJ2LGr6SZrW9iopRVS6ZLn3rSBI EeGg== X-Gm-Message-State: APjAAAVzsRBVNhT1QZgjfHDRmqL3HuXYC9jOv2SsH8PIHziPkTF7EO7T w4bS6wLbJOFs25uhLItvT/ml+Sfc98Y= X-Received: by 2002:aa7:9531:: with SMTP id c17mr29807207pfp.130.1564257984505; Sat, 27 Jul 2019 13:06:24 -0700 (PDT) Received: from apollo.hsd1.ca.comcast.net (c-73-71-176-3.hsd1.ca.comcast.net. [73.71.176.3]) by smtp.gmail.com with ESMTPSA id q24sm50850554pjp.14.2019.07.27.13.06.23 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sat, 27 Jul 2019 13:06:23 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Sat, 27 Jul 2019 13:06:14 -0700 Message-Id: <20190727200614.5661-2-raj.khem@gmail.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190727200614.5661-1-raj.khem@gmail.com> References: <20190727200614.5661-1-raj.khem@gmail.com> MIME-Version: 1.0 Subject: [oe] [meta-oe][PATCH 2/2] pegtl: Fix build with clang/libc++ 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 Cc: Ayoub Zaki --- .../0001-add-missing-virtual-dtors.patch | 72 +++++++++++++++++++ meta-oe/recipes-extended/pegtl/pegtl_2.1.4.bb | 4 +- 2 files changed, 75 insertions(+), 1 deletion(-) create mode 100644 meta-oe/recipes-extended/pegtl/pegtl/0001-add-missing-virtual-dtors.patch -- 2.22.0 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-oe/recipes-extended/pegtl/pegtl/0001-add-missing-virtual-dtors.patch b/meta-oe/recipes-extended/pegtl/pegtl/0001-add-missing-virtual-dtors.patch new file mode 100644 index 0000000000..829c8ae5cb --- /dev/null +++ b/meta-oe/recipes-extended/pegtl/pegtl/0001-add-missing-virtual-dtors.patch @@ -0,0 +1,72 @@ +From 2c7cc8c669e513154e98762d6ed7c6d1bf338505 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Sat, 27 Jul 2019 12:54:49 -0700 +Subject: [PATCH] add missing virtual dtors + +Fixes clang warnings +/usr/include/c++/v1/memory:3710:5: error: destructor called on non-final 'examples::null_json' that has virtual functions but non-virtual destructor [-Werror,-Wdelete-non-abstract-non-virtual-dtor] +__data_.second().~_Tp(); +^ + +Signed-off-by: Khem Raj +Upstream-Status: Submitted [https://github.com/taocpp/PEGTL/pull/181] +--- + src/example/pegtl/json_classes.hpp | 7 ++++++- + 1 file changed, 6 insertions(+), 1 deletion(-) + +diff --git a/src/example/pegtl/json_classes.hpp b/src/example/pegtl/json_classes.hpp +index 7227870c..9ea66ce7 100644 +--- a/src/example/pegtl/json_classes.hpp ++++ b/src/example/pegtl/json_classes.hpp +@@ -58,6 +58,7 @@ namespace examples + : json_base( json_type::ARRAY ) + { + } ++ virtual ~array_json() {} + + std::vector< std::shared_ptr< json_base > > data; + +@@ -83,6 +84,7 @@ namespace examples + data( in_data ) + { + } ++ virtual ~boolean_json() {} + + bool data; + +@@ -99,7 +101,7 @@ namespace examples + : json_base( json_type::NULL_ ) + { + } +- ++ virtual ~null_json() {} + virtual void stream( std::ostream& o ) const override + { + o << "null"; +@@ -114,6 +116,7 @@ namespace examples + data( in_data ) + { + } ++ virtual ~number_json() {} + + long double data; + +@@ -179,6 +182,7 @@ namespace examples + data( in_data ) + { + } ++ virtual ~string_json() {} + + std::string data; + +@@ -195,6 +199,7 @@ namespace examples + : json_base( json_type::OBJECT ) + { + } ++ virtual ~object_json() {} + + std::map< std::string, std::shared_ptr< json_base > > data; + +-- +2.22.0 + diff --git a/meta-oe/recipes-extended/pegtl/pegtl_2.1.4.bb b/meta-oe/recipes-extended/pegtl/pegtl_2.1.4.bb index f41eef2a01..5cea295c5a 100644 --- a/meta-oe/recipes-extended/pegtl/pegtl_2.1.4.bb +++ b/meta-oe/recipes-extended/pegtl/pegtl_2.1.4.bb @@ -4,7 +4,9 @@ LICENSE="MIT" LIC_FILES_CHKSUM = "file://LICENSE;md5=80cb066ab204c7fe022f1cfe0c2c6818" SRCREV = "776fa4a1e8bda860008524f6dd9473967c8375b1" -SRC_URI = "git://git@github.com/taocpp/PEGTL.git;protocol=https;branch=master" +SRC_URI = "git://git@github.com/taocpp/PEGTL.git;protocol=https;branch=master \ + file://0001-add-missing-virtual-dtors.patch \ + " inherit cmake