From patchwork Wed Mar 6 05:45:41 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 159723 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp5783555jad; Tue, 5 Mar 2019 21:46:31 -0800 (PST) X-Google-Smtp-Source: APXvYqw5lalIodCHXxAVP4C7FI7fOC5IiMeLS2NQ6R5LntyI6Z0mT1iFwecDD9eXbBk5+8yzaXQp X-Received: by 2002:a17:902:e711:: with SMTP id co17mr5075419plb.171.1551851191667; Tue, 05 Mar 2019 21:46:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551851191; cv=none; d=google.com; s=arc-20160816; b=0bKBaMLQ9/JE6f0u4EHGkCUAn8cCHVunggK3psq+IrC4rMC1b0au8XJ1DYjANkzYIH 9DRAqXR55ibd1n1X3y3ND3Wb2cnBPVw4kDvchqXwJ0RrTO3C6mnoWPWJTRRAissiZ9Dh kizENg0aHzhdJjn0s5WAWxe/+lroW/HPKBidJ0HBQ0EovdTZnK3DPigUrq/lLxAjyvfG fAp7AGtBg9VEsxmjICbcXgFhNdDXyRBiBi2/kZrAJ0IZsIJ5E1doP58xx2eX4RUiiaTE n6E3OvaGL/cRJ3kclhXr1cRsFNL/HJ+172QbdSM2bP2LAWm2oRfO6IBES5uIJBozoWvE D9XA== 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=6XuBtEDErs2oeXvciu2XbJGD6RGzGe/GNTUY+vhxSSs=; b=OUCFrbbyRXIUlCwxNl4NVtG7FhORsY+waxYtChLaVTNcZ9NplCj+RjcH56/OPmJQ3M kAUt5J65xiR/ifbE2n8xeIDwnijUnepgDtDXogm+xAEPrfQAEAKIR0xPM/bi4504Iguf Pr4om8NdoWX1K1joHnmQGlvAc+Vm/JjF1mv0QNrQu6MwL69OXaUEgAnep8y4x+WeyOEH hSGrYUseUgtocTIFRsqsAMxbBfIHotFByhbwCIH4fN7oUqxtzn6bGKGMXaHinbwMIXk1 jcnlINNEo1J0gRpJ2aE+cRr9j6bFSNjWATb/jehH0KbbTQWTrP1zbvVLNUGTR+RgWtio r2eg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=cJkD8OQV; 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 89si653180pld.153.2019.03.05.21.46.31; Tue, 05 Mar 2019 21:46:31 -0800 (PST) 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=cJkD8OQV; 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 1D8FB7CCEB; Wed, 6 Mar 2019 05:46:11 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pg1-f172.google.com (mail-pg1-f172.google.com [209.85.215.172]) by mail.openembedded.org (Postfix) with ESMTP id B158A7C7D6 for ; Wed, 6 Mar 2019 05:45:57 +0000 (UTC) Received: by mail-pg1-f172.google.com with SMTP id j3so7424367pgm.11 for ; Tue, 05 Mar 2019 21:45:59 -0800 (PST) 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=RK79ibkvizPNsdyFAStiEMzFDvqDak9/tq9HZUQFyHU=; b=cJkD8OQVhNzmFH8tnksS8TzIgeo1llvsWIuSN420nLSGBO+iQp4ZqhfjDPPXZzcqOn usr3BDYlAYvKVhKPN9ThR5x9vCq0sZHxMnPtCzLkPlGfGjG56Iyh9ARmpRCQeessFpQx UGxi2+hqQjPIlyzukVpMW8Ch9izKlYErb5DRzPWsUzlGwla3OODdUjM4YG4E6cCO2uwL 4U0ZPUIz+d5LtTvpgoeUdiwhbF66SAH+UuKtYZYHV67t0UQVpHH/3yirSdYwwG1qvDCf nEp/l7Bmoa0PBpmahbGt0UNnGPhXa/19RSt4jss/mQZlDvUTZVZpltPybGv7d8Uw/8NV aAxw== 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=RK79ibkvizPNsdyFAStiEMzFDvqDak9/tq9HZUQFyHU=; b=hEc1jvx6H1p8D3pev7lyEPIQlvT8ty36DUr7GtPECHQIJYjSsleWAl6yuRF4WfXoId CN/adBvqL6+U5pLysygpSnCCxS5+YPstzYYBTKGEc2nlc8EvM1WJDE/UqC/nPr8KYRjQ pY+moNdUInqbop8WGghxCDdhJ0cLkDDhGFVys6zpQlbkRsYzxSkcWx6Me/p9E2GPkHtR 8apDTlRaq2MX2s4k2wZe3pGwfynIwV2hnpdrJ5C4aR4YLWGB4AsgVfGxXlEASOhV1r6b aEksur8XR4mrOohCdJePgb6FqSNIu8IRzqu90Zhea6k0ZWYv49Ziw71Ttu8rg46eFy/A V+Jg== X-Gm-Message-State: APjAAAXg7OwgqbBQgNfFugGxIGCU0RF/+IqRGeosiA7FDSNbQ9hxbT73 iS0b3mOk1pz315xuTp+1EzAaNPcy X-Received: by 2002:a63:1241:: with SMTP id 1mr4742061pgs.211.1551851158350; Tue, 05 Mar 2019 21:45:58 -0800 (PST) Received: from apollo.hsd1.ca.comcast.net ([2601:646:8500:6bc6::3401]) by smtp.gmail.com with ESMTPSA id m24sm1001144pgv.1.2019.03.05.21.45.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Mar 2019 21:45:57 -0800 (PST) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Tue, 5 Mar 2019 21:45:41 -0800 Message-Id: <20190306054548.16430-5-raj.khem@gmail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190306054548.16430-1-raj.khem@gmail.com> References: <20190306054548.16430-1-raj.khem@gmail.com> MIME-Version: 1.0 Subject: [oe] [meta-python][PATCH 05/12] python-grpcio: Upgrade to 1.19.0 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 Refresh patch to apply cleanly Fix build for RISC-V Signed-off-by: Khem Raj --- .../recipes-devtools/python/python-grpcio.inc | 6 ++++-- ....py-Do-not-mix-C-and-C-compiler-options.patch | 12 +++++------- .../python/python-grpcio/riscv64_support.patch | 16 ++++++++++++++++ ...-grpcio_1.17.1.bb => python-grpcio_1.19.0.bb} | 0 ...grpcio_1.17.1.bb => python3-grpcio_1.19.0.bb} | 0 5 files changed, 25 insertions(+), 9 deletions(-) create mode 100644 meta-python/recipes-devtools/python/python-grpcio/riscv64_support.patch rename meta-python/recipes-devtools/python/{python-grpcio_1.17.1.bb => python-grpcio_1.19.0.bb} (100%) rename meta-python/recipes-devtools/python/{python3-grpcio_1.17.1.bb => python3-grpcio_1.19.0.bb} (100%) -- 2.21.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.inc b/meta-python/recipes-devtools/python/python-grpcio.inc index 0cef0dda02..fd341f5de7 100644 --- a/meta-python/recipes-devtools/python/python-grpcio.inc +++ b/meta-python/recipes-devtools/python/python-grpcio.inc @@ -8,6 +8,7 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/python-grpcio:" SRC_URI_append_class-target = " file://0001-setup.py-Do-not-mix-C-and-C-compiler-options.patch \ file://ppc-boringssl-support.patch \ + file://riscv64_support.patch \ " RDEPENDS_${PN} = "${PYTHON_PN}-protobuf \ @@ -19,8 +20,9 @@ LICENSE = "BSD-3-Clause" LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/BSD-3-Clause;md5=550794465ba0ec5312d6919e203a55f9" inherit pypi -SRC_URI[md5sum] = "dd46d7270dfce713c03f45fae999cae3" -SRC_URI[sha256sum] = "fd6774bbb6c717f725b39394757445ead4f69c471118364933aadb81a4f16961" + +SRC_URI[md5sum] = "188565f150f34d1927b87e014f0f4b73" +SRC_URI[sha256sum] = "2ddbca16c2e7b3f2ffc6e34c7cfa6886fb01de9f156ad3f77b72ad652d632097" CLEANBROKEN = "1" 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 index 996597b146..f17f048de8 100644 --- 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 @@ -18,11 +18,9 @@ Signed-off-by: Khem Raj setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -Index: grpcio-1.14.1/setup.py -=================================================================== ---- grpcio-1.14.1.orig/setup.py -+++ grpcio-1.14.1/setup.py -@@ -123,7 +123,7 @@ ENABLE_DOCUMENTATION_BUILD = os.environ. +--- a/setup.py ++++ b/setup.py +@@ -145,7 +145,7 @@ ENABLE_DOCUMENTATION_BUILD = os.environ. EXTRA_ENV_COMPILE_ARGS = os.environ.get('GRPC_PYTHON_CFLAGS', None) EXTRA_ENV_LINK_ARGS = os.environ.get('GRPC_PYTHON_LDFLAGS', None) if EXTRA_ENV_COMPILE_ARGS is None: @@ -31,7 +29,7 @@ Index: grpcio-1.14.1/setup.py if 'win32' in sys.platform and sys.version_info < (3, 5): EXTRA_ENV_COMPILE_ARGS += ' -D_hypot=hypot' # We use define flags here and don't directly add to DEFINE_MACROS below to -@@ -135,7 +135,7 @@ if EXTRA_ENV_COMPILE_ARGS is None: +@@ -157,7 +157,7 @@ if EXTRA_ENV_COMPILE_ARGS is None: else: EXTRA_ENV_COMPILE_ARGS += ' -D_ftime=_ftime64 -D_timeb=__timeb64' elif "linux" in sys.platform: @@ -39,4 +37,4 @@ Index: grpcio-1.14.1/setup.py + EXTRA_ENV_COMPILE_ARGS += ' -fvisibility=hidden -fno-wrapv -fno-exceptions' elif "darwin" in sys.platform: EXTRA_ENV_COMPILE_ARGS += ' -fvisibility=hidden -fno-wrapv -fno-exceptions' - EXTRA_ENV_COMPILE_ARGS += ' -DPB_FIELD_16BIT' + EXTRA_ENV_COMPILE_ARGS += ' -DPB_FIELD_32BIT' diff --git a/meta-python/recipes-devtools/python/python-grpcio/riscv64_support.patch b/meta-python/recipes-devtools/python/python-grpcio/riscv64_support.patch new file mode 100644 index 0000000000..fef7d9e757 --- /dev/null +++ b/meta-python/recipes-devtools/python/python-grpcio/riscv64_support.patch @@ -0,0 +1,16 @@ +Add RISC-V 64bit support + +Upstream-Status: Pending +Signed-off-by: Khem Raj +--- a/third_party/boringssl/include/openssl/base.h ++++ b/third_party/boringssl/include/openssl/base.h +@@ -104,6 +104,9 @@ extern "C" { + #elif defined(__mips__) && defined(__LP64__) + #define OPENSSL_64_BIT + #define OPENSSL_MIPS64 ++#elif defined(__riscv) && defined(__riscv_xlen) ++#define OPENSSL_64_BIT ++#define OPENSSL_RISCV64 + #elif defined(__pnacl__) + #define OPENSSL_32_BIT + #define OPENSSL_PNACL diff --git a/meta-python/recipes-devtools/python/python-grpcio_1.17.1.bb b/meta-python/recipes-devtools/python/python-grpcio_1.19.0.bb similarity index 100% rename from meta-python/recipes-devtools/python/python-grpcio_1.17.1.bb rename to meta-python/recipes-devtools/python/python-grpcio_1.19.0.bb diff --git a/meta-python/recipes-devtools/python/python3-grpcio_1.17.1.bb b/meta-python/recipes-devtools/python/python3-grpcio_1.19.0.bb similarity index 100% rename from meta-python/recipes-devtools/python/python3-grpcio_1.17.1.bb rename to meta-python/recipes-devtools/python/python3-grpcio_1.19.0.bb