From patchwork Wed Aug 7 16:43:19 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 170763 Delivered-To: patch@linaro.org Received: by 2002:a92:512:0:0:0:0:0 with SMTP id q18csp7381706ile; Wed, 7 Aug 2019 09:43:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqxC3H/LObqZfGlerlNRU1cqwSlRM1kG8RmfnSZ8+TyGZAREIpjrhpk2xgpe5YswNNyQY0TV X-Received: by 2002:a17:90a:d791:: with SMTP id z17mr794228pju.40.1565196226380; Wed, 07 Aug 2019 09:43:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565196226; cv=none; d=google.com; s=arc-20160816; b=c40ncHAQiiagRdlGcyjKGhWtIiu7UMvKKyEh+mCNopMS3YPazMWHEXzYZcbUj4KYn6 9V0aDKftuKjxwZCs+UfoIJYr9vrCF1UNP4w8NsnICd4iSXW1Gm6P4V6c7WDPx15uHYQZ fiDn0u3bIZPVSK4CpRf0qyS2XSaKRIi4x5mQN6AXLTn51hwkeFg4y5XAflCm/ke8WBXv vEBXl6uGUv4jfI2oJjSeg7q5vf0lQwN1IAz0ONH0QZ40ZFUDycJPFUiKNdyX+rmbjaGQ SZbeAymDVM8GdWhxrxaPHocDQVMYt1lWHLHfJjMWRMtTLUYzha/RDa6C3meJjqH3hX3F us/g== 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=8QvTetJJ4UNbjSaXW/W4HSeJv7wcDTLm1k1BJrRXZdg=; b=0qZIXTSt9j4tMsceB20rnYkTEh94TXytU2Q7fHi1YY78rho4yC5Zk81AW51aO7EM9V 8KR/t4alte0IhW2dhs7XDxhPO4bsKmj38o/du5leTETyNMGC2X5tklf51JXfwQ+fQb7s UR7OoAG4qeFd1nl7IwsNIhqm50BgdMRKis1S6Avd3tw/2Pkm2spGuHDcbVMOc8Be1Tk4 YGPS9aP/KsakFa7Q4kBnOkk6XCimr/E5TYUcfL6CucG69uM18UfB/POtWJtDn9HvWz5j oJgKyxXZWmNdz6R1sGX+JWi3JGpjxBh7IG7KGUn+k3kP6KiME1Xh9u+g+IbXqfcWhEhv 6iuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=jtd1Nv9W; 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 a3si46787842pfb.171.2019.08.07.09.43.45; Wed, 07 Aug 2019 09:43:46 -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=jtd1Nv9W; 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 ABA3F7F340; Wed, 7 Aug 2019 16:43:37 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pl1-f171.google.com (mail-pl1-f171.google.com [209.85.214.171]) by mail.openembedded.org (Postfix) with ESMTP id 967007F37C for ; Wed, 7 Aug 2019 16:43:31 +0000 (UTC) Received: by mail-pl1-f171.google.com with SMTP id ay6so41682973plb.9 for ; Wed, 07 Aug 2019 09:43:33 -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=pxYpAfofj6oj+Pza2kT9Ibds9yE3iB86mSMHnDENSEE=; b=jtd1Nv9WXa1XPnhmhs3hokZQ3q4CTT7ZsLnfz8PLLJhnQVOy8NQ7hCaKkc3WywDXj0 7IxGQGmWbMOOEWXpq4szmFcJTLG9rwfW92wmPnk2ZCq5clI4DLMe5nDc+GhCnuSOq9Jt IGLRLJVJVubF+nTAcLO0Hc/S2s9EzBlNOf8mEk8FGsmG0nRnNfNm7p+PBYAVp7zfon7h YUWV9FvHrnvmjWM7H4POCw3DaT6VR/hUag1jUyIVUaMKZvQxV0pjeNY3SJXwmJu0Zyt4 bTqV/Z2owTVadyc+LZ9y9UqsOBJ7Qoj8vinph0D2iAi26mKd5g+8+2u2n1Se7uoRQRXb 1tkw== 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=pxYpAfofj6oj+Pza2kT9Ibds9yE3iB86mSMHnDENSEE=; b=dBoKFQv38FUunR4Qe8O/zNRZBr/65hr9JNCLl76yE4jXflL/fImtFQQ/tfxU/8YrFK kpb0w4TKQZ/cuu8QnraWFIhf3EgFb1+ykSaBCWoGSnx9PSS6G0jYdo5PAczSpk1z+eow a39y4ZAMD0L9sq2SRSU3mhu9FJjsS8ocrdRiPx3Db3KkZirP+o8WuNDc2GK5z59RVoiV 6fiMab28GJjzJW7TBxkgQUEPGdAmOJ2qVnlnfYxMs/LVmWuvKigFkvgbpoAqqjNJSjrr BriUhKoc8bxxfxvCnOu8w+E1bHHjIoge0Sj3odY+Rgagh8ILyWp/0/WoZytx8Ly0Nriz mP0g== X-Gm-Message-State: APjAAAV/2NQqgq1hLW+O1ZsCL9wsjcqVE7JncIRAEC7ymalAbKhL6Tsm F7zLtX86eiuN9CyRZXcmXmcaOhVOs6k= X-Received: by 2002:aa7:8711:: with SMTP id b17mr10416285pfo.234.1565196211997; Wed, 07 Aug 2019 09:43:31 -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 o11sm168735060pfh.114.2019.08.07.09.43.30 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 07 Aug 2019 09:43:31 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Wed, 7 Aug 2019 09:43:19 -0700 Message-Id: <20190807164321.44571-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 Subject: [oe] [meta-python][PATCH 1/3] python-grpcio: Use gettid API from glibc 2.30+ 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 --- .../recipes-devtools/python/python-grpcio.inc | 1 + .../python/python-grpcio/gettid.patch | 26 +++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python-grpcio/gettid.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-python/recipes-devtools/python/python-grpcio.inc b/meta-python/recipes-devtools/python/python-grpcio.inc index fd341f5de7..7d3675c455 100644 --- a/meta-python/recipes-devtools/python/python-grpcio.inc +++ b/meta-python/recipes-devtools/python/python-grpcio.inc @@ -9,6 +9,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 \ + file://gettid.patch \ " RDEPENDS_${PN} = "${PYTHON_PN}-protobuf \ diff --git a/meta-python/recipes-devtools/python/python-grpcio/gettid.patch b/meta-python/recipes-devtools/python/python-grpcio/gettid.patch new file mode 100644 index 0000000000..fb15cf7f96 --- /dev/null +++ b/meta-python/recipes-devtools/python/python-grpcio/gettid.patch @@ -0,0 +1,26 @@ +use glibc provided gettid API for glibc 2.30+ + +glibc 2.30 introduced this function see [1] +so it's best to detect it +and provide fallback only if it's not present + +[1] https://sourceware.org/bugzilla/show_bug.cgi?id=6399 + +Upstream-Status: Pending +Signed-off-by: Khem Raj +--- a/src/core/lib/gpr/log_linux.cc ++++ b/src/core/lib/gpr/log_linux.cc +@@ -40,7 +40,13 @@ + #include + #include + ++#if defined(__GLIBC__) ++#if !__GLIBC_PREREQ(2,29) + static long gettid(void) { return syscall(__NR_gettid); } ++#endif ++#else ++static long gettid(void) { return syscall(__NR_gettid); } ++#endif + + void gpr_log(const char* file, int line, gpr_log_severity severity, + const char* format, ...) {