From patchwork Tue Aug 8 21:47:58 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 109683 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp31190qge; Tue, 8 Aug 2017 14:49:12 -0700 (PDT) X-Received: by 10.98.129.197 with SMTP id t188mr5840268pfd.318.1502228951997; Tue, 08 Aug 2017 14:49:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1502228951; cv=none; d=google.com; s=arc-20160816; b=cCV9UD+iJKFU/EAgZwgKG8NOrCVMCUa1cEzDcxKTHZQRqIuoXPRT2JDjvQo/H5xhdc ptMwY5TP5qgqHRLZg3nU2VLcfdqq8TSaqOrPjAvRRpSGkAQHyo4+ET6u9OsGkBeHB7Hh qrTM6eNlRS6H7xnt+6x0cufD8vvejtebcKUvet3iJ9mYxEM+cK87WevCjN6YZ/njZd1x oUv7zkDHmUEMzdhd/47XyOnMasYsn7T9sNcuVtx3POkqYsRRAW1Ji9RiKNJyOjCrckyw M3Jp1naGNe7A5zwIbzk3/X4VKZmZZ4nRRdgtMudvB2KAbmrBpUOKlTgBoVMRte1GwFvB 8aJA== 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=amdqtbzheZtlBZ4Ydq2iNhVSmAP00TohlMP3sm7Q810=; b=T6ANGY3phONPRMRIFyflFFPlo88NOXDlJrnnJmP6ot8UMmLQBK14YxvAxe2WYWnB9H oNgcRYPNYYd8/YHpdxqVL/a5NF6Zbq3IvP/23XZziL3pAefUT01HJPOviTwubkg0w9G8 t/aDrzIQBTT7ILxoK6bChYXUU2BsCiGMBBpdmpRsQIQEfbY9CjTvweVmpYX+2OpbxjU4 +V3tLN5KgQLcYy57pA3MvjY68BIy6kio7U7Wvg0sWTcJjAw8vmXe/7OqzgGILvkQhOtI C5Yj79VClMObKJ2Of33wzWeMTV3McD2nxfl2gImjoPjLVrnchSd9Texd1asSQDVQboTd ZL/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=cN1AMtS+; 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=NONE 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 v26si1353747pgc.87.2017.08.08.14.49.11; Tue, 08 Aug 2017 14:49:11 -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=cN1AMtS+; 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=NONE dis=NONE) header.from=gmail.com Received: from review.yoctoproject.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id B2A7677D67; Tue, 8 Aug 2017 21:48:25 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pf0-f173.google.com (mail-pf0-f173.google.com [209.85.192.173]) by mail.openembedded.org (Postfix) with ESMTP id 8EF6077BB1 for ; Tue, 8 Aug 2017 21:48:19 +0000 (UTC) Received: by mail-pf0-f173.google.com with SMTP id o86so19592993pfj.1 for ; Tue, 08 Aug 2017 14:48:21 -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=XebsINcA7a1E1Tqa1/KlOUCydXEpsbR7nKQR9slcEgE=; b=cN1AMtS+QGGn5jDAerKRF5sw8mxehR/dHC0Oqv7IkHdTAF2JQSe0Mipw5cqXK+I4W1 crw6bauQ8EGJNbEXYVJosQ0F7M0gNvSt8KusaMxgJiX8H1u3eYY/NpTj/IySn1vwB58e nQhFzyytDnWaGkyea+rJi0KlOVKobfZvh07GNO1DI7dGWAurjIXEmRqO9M30TNNuXGO4 0irtV+KNyhVI561jqPGEfgYhzF1mzazXaT87PF1KuZf7MbTTaN2asfztJ0dtS9tGNzkj /Tv1qzAUlWM9TCzzsr70U4PMgM3fRuOLcqXN/XeDd/SooTrSjFCyDWjuCUAYDEMVqx8Z qzJQ== 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=XebsINcA7a1E1Tqa1/KlOUCydXEpsbR7nKQR9slcEgE=; b=F+6qiuxkI1yE8BFeyKPoWk9chfuKzVNouuSJU2MP00GhYA2XY8N0qr1mTnh0/AKO0B +4dd/3X796t1fMY8Q1QaOnSFiu4Hvpc++KVE7PwM5I8qBbggRnehDM1wuuNqKf1+RKrc wBvBMU5C8CKo5AAWL4XBNOgTJ1ZhJRkHxFLpIfqEbX96Ek1NymDzIA7P2HKotxTLnUvf hIX9fis/y5shyyXLN/lVc72FsyXY0hCWRr8lU1uixWrxLvv7g3Y42Df3Q7XgWMJLwcjE 6RhN48h79xJiWhJ9zl2bxvlOsT8Py7tFd7kEGkGbqD61cChdyAM7jYqVsHaKMzijEFUP 4w6g== X-Gm-Message-State: AHYfb5hgGnir/ndEbiQf2yF1kvH2jm+feYXpWMVMOHeI0/wi6Q+ioLAJ zSolzvGZfsPjLZ7F X-Received: by 10.98.63.83 with SMTP id m80mr5881179pfa.161.1502228900947; Tue, 08 Aug 2017 14:48:20 -0700 (PDT) Received: from localhost.localdomain ([2601:646:8882:b8c::f213]) by smtp.gmail.com with ESMTPSA id d135sm2768713pga.6.2017.08.08.14.48.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 08 Aug 2017 14:48:20 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Tue, 8 Aug 2017 14:47:58 -0700 Message-Id: <20170808214800.39621-7-raj.khem@gmail.com> X-Mailer: git-send-email 2.14.0 In-Reply-To: <20170808214800.39621-1-raj.khem@gmail.com> References: <20170808214800.39621-1-raj.khem@gmail.com> Subject: [oe] [meta-python][PATCH 7/9] python-grpcio: Do not hardcode compiler -std options 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 --- ...up.py-Do-not-mix-C-and-C-compiler-options.patch | 36 ++++++++++++++++++++++ .../recipes-devtools/python/python-grpcio_1.4.0.bb | 2 ++ 2 files changed, 38 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python-grpcio/0001-setup.py-Do-not-mix-C-and-C-compiler-options.patch -- 2.14.0 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-python/recipes-devtools/python/python-grpcio/0001-setup.py-Do-not-mix-C-and-C-compiler-options.patch b/meta-python/recipes-devtools/python/python-grpcio/0001-setup.py-Do-not-mix-C-and-C-compiler-options.patch new file mode 100644 index 000000000..3686144b3 --- /dev/null +++ b/meta-python/recipes-devtools/python/python-grpcio/0001-setup.py-Do-not-mix-C-and-C-compiler-options.patch @@ -0,0 +1,36 @@ +From b02be74a2eff8abc612ef84f30e0fbce6a7f65f5 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Fri, 4 Aug 2017 09:04:07 -0700 +Subject: [PATCH] setup.py: Do not mix C and C++ compiler options + +EXTRA_ENV_COMPILE_ARGS is used both with CC and CXX +so using -std=c++11 or -std=gnu99 together will cause +build time errors espcially with clang + +error: invalid argument '-std=gnu99' not allowed with 'C++' + +gcc7 ( defaults are -std=gnu11 and -std=gnu++14 ) + as well clang default to these standards mode or newer +anyway + +Signed-off-by: Khem Raj +--- + setup.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/setup.py b/setup.py +index cb85273..f79878d 100644 +--- a/setup.py ++++ b/setup.py +@@ -116,7 +116,7 @@ if EXTRA_ENV_COMPILE_ARGS is None: + elif 'win32' in sys.platform: + EXTRA_ENV_COMPILE_ARGS += ' -D_PYTHON_MSVC' + elif "linux" in sys.platform: +- EXTRA_ENV_COMPILE_ARGS += ' -std=c++11 -std=gnu99 -fvisibility=hidden -fno-wrapv' ++ EXTRA_ENV_COMPILE_ARGS += ' -fvisibility=hidden -fno-wrapv' + elif "darwin" in sys.platform: + EXTRA_ENV_COMPILE_ARGS += ' -fvisibility=hidden -fno-wrapv' + +-- +2.13.4 + diff --git a/meta-python/recipes-devtools/python/python-grpcio_1.4.0.bb b/meta-python/recipes-devtools/python/python-grpcio_1.4.0.bb index 5412e0243..2446411a1 100644 --- a/meta-python/recipes-devtools/python/python-grpcio_1.4.0.bb +++ b/meta-python/recipes-devtools/python/python-grpcio_1.4.0.bb @@ -4,6 +4,8 @@ SECTION = "devel/python" DEPENDS = "python-protobuf" +SRC_URI += "file://0001-setup.py-Do-not-mix-C-and-C-compiler-options.patch \ + " RDEPENDS_${PN} = "python-enum34 \ python-futures \ python-protobuf \