From patchwork Mon Jun 17 05:24:38 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 166966 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp2403973ilk; Sun, 16 Jun 2019 22:24:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqwUpjJDW5OQLl4AGXzyLul6fkHmzHeoz3Q0Apxw4Pd9BiA14PiRAZEcUaZGk+Pb6doxLzhj X-Received: by 2002:a17:90a:2190:: with SMTP id q16mr23543095pjc.23.1560749095587; Sun, 16 Jun 2019 22:24:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560749095; cv=none; d=google.com; s=arc-20160816; b=PYSh3du2nO5uiAVLVTgSoHaZIWf9NVT3A9TkeUfITS0lvOhnfY7EL5VCOBbv4upj/k +bfNxWVKUCcdON7x1a8+re+kwuXVUE7/h8qniAox0oiv0mywe3Lea1fdFF/buUh4fMY8 d944csMFcWjIGlj1kVuExGXr5v1IZkRk6sk0m4GtNeSp6eIcvYy9KqW6NRjmkc6iyxPq Tz70KrSSWdaFswhmndu5i8WsJi/Sxjk1P1yfHk5G2EQUT/t3rXNNBS+ooDOcJpkc8p+w ZK+ysgIaTCYm4Bckk9OWR08nysGFt8/2xl3dPbbjt/rRQAWklyRdBwcwAZqVip8iz7QF zZWQ== 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:message-id:date:to:from:dkim-signature:delivered-to; bh=FeCjNTW8ZLiWsOU4FCknZVXhmrwEbIleQafr9kQsUpI=; b=ilTofzKCV0UwC2g+1eToLPtHGBDaRTERUcxlVSPJ1w7tZMyumhk7shoKADJM9Z0LA+ h3CDvtqGKMxMUuFJKLyhntynIYae5tm/b/llOQ6+QqUmeyh5A4zltkMkSQF3LApQGpBp HW4gLZBns90wrXOEMtd+hn1gw0GLqmO4ldclxxescMT3WW9q1LPgBu+uOQX0Hswsg/sw DwFWz+vpqFMnRkfbyKOGiZWm7WW5j4ojakFJ7Wx2J/AcrFTtyd00+fJ0Sap51yp+PAa5 P1gfw6ehduEIWqjWzbQfPXl0hfcoWH96tiWX6FaUQ+vr7dQtD3n911CUTpS/N5GtnYTv NDrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=WQoG+ayK; 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 f187si1730876pgc.516.2019.06.16.22.24.54; Sun, 16 Jun 2019 22:24:55 -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=WQoG+ayK; 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 64E627D084; Mon, 17 Jun 2019 05:24:50 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pg1-f175.google.com (mail-pg1-f175.google.com [209.85.215.175]) by mail.openembedded.org (Postfix) with ESMTP id B80B77E508 for ; Mon, 17 Jun 2019 05:24:48 +0000 (UTC) Received: by mail-pg1-f175.google.com with SMTP id p10so5119047pgn.1 for ; Sun, 16 Jun 2019 22:24:49 -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:mime-version :content-transfer-encoding; bh=MoQGfpULCP3fk5EDxhQYJrRP5foSydwG7g277HRuqFo=; b=WQoG+ayKgJIgFZivddz1ynEedruhDGBdtBWMm5TK+BfnXUY307gbm1y5BDP3v2fpqb QDBRlwAAsG4Vrl+jRFZvVznrEw8p28gppGgVjPPDkbfQ3jFpRRFtmBdvKRRm/PXjejX7 T7N9h36mQA8KdGm9la4JQ7FnRpHHOCOVrPPzWGEV/VYmDoPFXaT8/jaXUN/21EIVdkGL CtMzvdLDUHEFk+gJBCFsYwAGdg45b8EnZV9op61KUDl9dNwe/etElbK5gGUWPaiHO22N q+SAqK0UYQZP3Z9l/OO1v8o9m8es08Jfigd2Ni9pYhfgs569gULnFFnAnGMvfJ/ErAUH mhcw== 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:mime-version :content-transfer-encoding; bh=MoQGfpULCP3fk5EDxhQYJrRP5foSydwG7g277HRuqFo=; b=NPkHzVWZw3QTW5FZmaonTQwoSL0A3/BBE0xhZ6E7ktSNIwzP2nrHUUAkECQEsO6j3s C/2f9Psj27Pkk+FB3cctCaaxv0jiUNkjK8pqDopXRXLNPVKMnhGgVUcBMh6aQOvx0la1 ooPeXVb2bGOwzWmqF2UfwTdjs58f3NjHuoDOH4CJbnH2fSSH6JgLOEMOGaajIzgsr5Qx TfAOCqJza+TX+BqmLQ7HDrErFErcgAdyPz8/+J5mrhIWcujocnF0w+8TST5RQ82RdNRn GPKayZe6cfRznQ3UA5lVboMhEm+8G8TvesB4UOEEue5JZ9mpiEVTIsJ+6K9ueRL68jZ6 3Naw== X-Gm-Message-State: APjAAAXvwT5B+ikv1jq8txgllmiZqlqVxEMkZZxDzSNdipRWfh1dscV2 GjfMtDOq37bzcqVoSQZpQOFCGE7pj1w= X-Received: by 2002:a65:6102:: with SMTP id z2mr1700455pgu.194.1560749088999; Sun, 16 Jun 2019 22:24:48 -0700 (PDT) Received: from apollo.hsd1.ca.comcast.net ([2601:646:8500:6bc6::3c7b]) by smtp.gmail.com with ESMTPSA id c124sm10156911pfa.115.2019.06.16.22.24.48 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sun, 16 Jun 2019 22:24:48 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Sun, 16 Jun 2019 22:24:38 -0700 Message-Id: <20190617052440.18958-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 Subject: [oe] [meta-oe][PATCH 1/3] stressapptest: Fix build with 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 when using libc++ instead of libstdc++, __gnu_cxx namespace is not available Signed-off-by: Khem Raj --- .../stressapptest/libcplusplus-compat.patch | 28 +++++++++++++++++++ .../stressapptest/stressapptest_1.0.9.bb | 4 ++- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 meta-oe/recipes-benchmark/stressapptest/stressapptest/libcplusplus-compat.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-benchmark/stressapptest/stressapptest/libcplusplus-compat.patch b/meta-oe/recipes-benchmark/stressapptest/stressapptest/libcplusplus-compat.patch new file mode 100644 index 0000000000..f5e7da359d --- /dev/null +++ b/meta-oe/recipes-benchmark/stressapptest/stressapptest/libcplusplus-compat.patch @@ -0,0 +1,28 @@ +Fix compile on sytems using libc++ instead of libstdc++ + +libc++ does not really implement __gnu_cxx namespace and it +compiles fine without this namespace, therefore detect libc++ +and if it is used them exclude this namespace + +See https://github.com/stressapptest/stressapptest/issues/47 + +Fixes + +./sattypes.h:33:17: error: expected namespace name +using namespace __gnu_cxx; //NOLINT + +Upstream-Status: Pending +Signed-off-by: Khem Raj + +--- stressapptest-1.0.9.orig/src/sattypes.h ++++ stressapptest-1.0.9/src/sattypes.h +@@ -30,7 +30,9 @@ + #include "stressapptest_config_android.h" // NOLINT + #else + #include "stressapptest_config.h" // NOLINT ++#ifndef _LIBCPP_VERSION + using namespace __gnu_cxx; //NOLINT ++#endif // _LIBCPP_VERSION + #endif // __ANDROID__ + using namespace std; + diff --git a/meta-oe/recipes-benchmark/stressapptest/stressapptest_1.0.9.bb b/meta-oe/recipes-benchmark/stressapptest/stressapptest_1.0.9.bb index 3e5748a3a1..679201c528 100644 --- a/meta-oe/recipes-benchmark/stressapptest/stressapptest_1.0.9.bb +++ b/meta-oe/recipes-benchmark/stressapptest/stressapptest_1.0.9.bb @@ -9,7 +9,9 @@ SECTION = "benchmark" LICENSE = "Apache-2.0" LIC_FILES_CHKSUM = "file://COPYING;md5=55ea9d559f985fb4834317d8ed6b9e58" -SRC_URI = "https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz" +SRC_URI = "https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz \ + file://libcplusplus-compat.patch \ + " SRC_URI[md5sum] = "d3a526c174c049dd7a1068dc74a62be2" SRC_URI[sha256sum] = "2ba470587ad4f6ae92057d427c3a2a2756e5f10bd25cd91e62eaef55a40b30a1"