From patchwork Sun Dec 15 05:09:35 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 181617 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp2770204ile; Sat, 14 Dec 2019 21:10:00 -0800 (PST) X-Google-Smtp-Source: APXvYqzhskUVUp+nnqY7gOxg1q8dXUoDPhpS6LwN+NPfR5laMVPo0QS0GhTeGuoJHdB73oGKYTbX X-Received: by 2002:a63:d802:: with SMTP id b2mr10140013pgh.414.1576386600053; Sat, 14 Dec 2019 21:10:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576386600; cv=none; d=google.com; s=arc-20160816; b=hp+2tTZhAYOzatbw603yCmyjw0F+THkMsLFxGHbUOJwXv1DoZmXAxZo0YNvz9rtYSD 55tGDyYACKUH+uPejq5A75NN/vNeUDnTjxrB0I715EA1QDJdySls4PuaTjkQEmAt8DV2 uCsO/iU4+J5JK69Z1AksPfCRaHyMrZY3XA9NZKs+mrQA26udAU3sMq+Wtfi2GNUi/30F 9C4E4ZCl4WK/wSZb1mbRaq3UjGZd5Ju0PwGrrZUbc6S0K6rsoe8wISQ94UuHRgS3djn2 EvShKxnvlGm3d7h6T4aZRyZdwzFqOENN9XNI/nWIrUEjS9BWhjol8rM19hS5oAbF2RYx M4vg== 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=VG0+PN8FhgcgIzXrTrc34nwRxeGwxR4J6IsPigrtzEw=; b=hZfY42yEru7j3Ewg/0cjYn1D5xiL541L3Ek0hqMZSBEhv937RGLheLmPLBc8HN85ml ZlQVnzRtE0rcDspMh8MiSF4tV3A2oX1aXG84to+mTNrvt7KurcXWUw6kkGK+wuYJ25Oj uW9mCu/iHeZAgQ4fMxQ2hywyLFZ/X/mKOW2kU9Ijut5uzsgh4Fluc1TlBVYopOXgGcHX kGda/byWMYScozNrl6zJDYSkfDmBEr+4DmzU3Syxdp4KmcivHwkgl1cJAJsAHCnKSIhV Kot18hfdpG/t2L9vHV4ynKfAi1CaM9KxWYuhgIWzhLWC2kYjiQMWrDNSUpdH2lYSUaSL B4qQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=J5tpd6sH; 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 t17si12906068pjr.44.2019.12.14.21.09.58; Sat, 14 Dec 2019 21:10:00 -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=J5tpd6sH; 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 7E0B47F51B; Sun, 15 Dec 2019 05:09:49 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pj1-f48.google.com (mail-pj1-f48.google.com [209.85.216.48]) by mail.openembedded.org (Postfix) with ESMTP id 889607D71A for ; Sun, 15 Dec 2019 05:09:47 +0000 (UTC) Received: by mail-pj1-f48.google.com with SMTP id r67so1532578pjb.0 for ; Sat, 14 Dec 2019 21:09:48 -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:mime-version :content-transfer-encoding; bh=ruBLTwxuHk7kZsIF54tRBq0+TYUZdwCxdiCK6iwOeAE=; b=J5tpd6sH3e3W+HyxjcNm+S0oF36yRUfK/IiunJqzI9QbrnzCXKw/3Hfp+ynEzIWZ6j 1QgscvQvAf1KW+4z5NhzXXRr0Iql1UUvGmG3+8QAGEDYtoryBKrMiSpsfjZWxjRGoDIw Syahum9lwQlGlaec0tJfyhbMYjHlJ2v+v98c4DqaFw4zjEV9S7crnCFL+05naBQwfqDd 1BmxZmtebUqh006K3Ucv8gMSU9EqUKqp1neg3ao1zhSeGPkkXgbB9e8bdnMYj0gzzBZO I8fJyKCHhEOrvyqMsv8RfWpb6VnGYSG4rWXIJnUaeLxSDWL9bj5TyC4139c3oRKzYwmx 8frg== 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=ruBLTwxuHk7kZsIF54tRBq0+TYUZdwCxdiCK6iwOeAE=; b=VUehaObZ5NabLlGTBSou+Ql+ymbobxDA6TaOgCA4hbEnhLFOef5i3x9U3YH5TNo2oA 1RamyHFRI/DvMLsl6xldeB+A/rLkhqfWJ0yCeaK+Orehmr55KkPbLZhQK7gHyMeLMbNI uVu/M+UP1aoZVwwgOk0BamNemPF/vBDpkilTTt6qTx4bAt+CtOC/RlhL0EUj+SfFdgLQ rJM3/FkE217bhYw1qG0MUuvUcM91XETyPmnZeoqHwgl/D6YIcGfYglKnpRr2b8ywKP8x tpjakw6W7QXl/VVabgI7GPil25mzQyQC/8xlAjOHi2qfSgh2PAqcID9eU78/j9rpspgm 15Rw== X-Gm-Message-State: APjAAAWEdcgwtp7nVurCtko6kxOn4IwGILCouRr1xYLT20E1ym3H9vpT gwZiDbY/YFmMOBerdtq/m7HfLnDa6Q4= X-Received: by 2002:a17:902:442:: with SMTP id 60mr9334826ple.0.1576386587856; Sat, 14 Dec 2019 21:09:47 -0800 (PST) Received: from apollo.hsd1.ca.comcast.net ([2601:646:9200:4e0::6563]) by smtp.gmail.com with ESMTPSA id c8sm16835575pfj.106.2019.12.14.21.09.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 Dec 2019 21:09:47 -0800 (PST) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Sat, 14 Dec 2019 21:09:35 -0800 Message-Id: <20191215050936.25027-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 Subject: [oe] [meta-networking][PATCH 1/2] rdma-core: Replace pthread_yield with sched_yield 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 Fixes /usr/src/debug/rdma-core/26.1-r0/git/librdmacm/rsocket.c:3041: undefined reference to `pthread_yield' collect2: error: ld returned 1 exit status Signed-off-by: Khem Raj Cc: Kai Kang --- ...sched_yield-instead-of-pthread_yield.patch | 30 +++++++++++++++++++ .../rdma-core/rdma-core_26.1.bb | 1 + 2 files changed, 31 insertions(+) create mode 100644 meta-networking/recipes-support/rdma-core/rdma-core/0001-librdmacm-Use-sched_yield-instead-of-pthread_yield.patch -- 2.24.1 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-networking/recipes-support/rdma-core/rdma-core/0001-librdmacm-Use-sched_yield-instead-of-pthread_yield.patch b/meta-networking/recipes-support/rdma-core/rdma-core/0001-librdmacm-Use-sched_yield-instead-of-pthread_yield.patch new file mode 100644 index 0000000000..80abd33139 --- /dev/null +++ b/meta-networking/recipes-support/rdma-core/rdma-core/0001-librdmacm-Use-sched_yield-instead-of-pthread_yield.patch @@ -0,0 +1,30 @@ +From 6ac9562d756d42592994aeaac7a5e7b2bbce5cab Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Sat, 14 Dec 2019 14:07:57 -0800 +Subject: [PATCH] librdmacm: Use sched_yield instead of pthread_yield + +glibc redirects pthread_yield to sched_yield additionally we get it +working with musl on linux + +Upstream-Status: Submitted [https://github.com/linux-rdma/rdma-core/pull/635] +Signed-off-by: Khem Raj +--- + librdmacm/rsocket.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/librdmacm/rsocket.c b/librdmacm/rsocket.c +index 89ae2139..7fc5b266 100644 +--- a/librdmacm/rsocket.c ++++ b/librdmacm/rsocket.c +@@ -3038,7 +3038,7 @@ static int rs_poll_enter(void) + pthread_mutex_lock(&mut); + if (suspendpoll) { + pthread_mutex_unlock(&mut); +- pthread_yield(); ++ sched_yield(); + return -EBUSY; + } + +-- +2.24.1 + diff --git a/meta-networking/recipes-support/rdma-core/rdma-core_26.1.bb b/meta-networking/recipes-support/rdma-core/rdma-core_26.1.bb index 1afe496c5a..87710bcf14 100644 --- a/meta-networking/recipes-support/rdma-core/rdma-core_26.1.bb +++ b/meta-networking/recipes-support/rdma-core/rdma-core_26.1.bb @@ -8,6 +8,7 @@ RDEPENDS_${PN} = "bash perl" BRANCH = "stable-v${@d.getVar('PV').split('.')[0]}" SRC_URI = "git://github.com/linux-rdma/rdma-core.git;branch=${BRANCH} \ file://0001-Remove-man-files-which-cant-be-built.patch \ + file://0001-librdmacm-Use-sched_yield-instead-of-pthread_yield.patch \ " SRCREV = "9f820de9ca7d6e315be92bc830d354afad3e7960" S = "${WORKDIR}/git" From patchwork Sun Dec 15 05:09:36 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 181618 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp2770755ile; Sat, 14 Dec 2019 21:10:46 -0800 (PST) X-Google-Smtp-Source: APXvYqxt2JtJSeFzpdNsWAwiiG7qK5ZiYI/bs5EHVkmpxMhNPhVmf26UTt5q2D8l0h8IOYa6Pixu X-Received: by 2002:a63:fd0a:: with SMTP id d10mr9713099pgh.197.1576386646622; Sat, 14 Dec 2019 21:10:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576386646; cv=none; d=google.com; s=arc-20160816; b=tmx66DYr1dfdYfVA8JjgO1FOo5h9LNzVOa1JL2vuPVd2PwUWqbPJFCEbSlY90OT5L3 fIgZRzkGoKlXkeLeeB747EeAg92fGQwe6ciX/XMz2HJHvjy/kogRlf69pd5zlS/1THqj V0ZTjByUJIxjtA2SUTjl6o5xL9Gl5jERsYXYJ0SEQ4tfTYVyp+aEfG+0agBQFeDww5Km i80pk8NTJjKddi02KBDhkM8SUpSznjk0bJlkHlHkJ1qWNgnfojrpdrysdsBEGjOm8ZKj 8DqX7m5DVOpsNusPwa2vtoC4S3XPfKThX5r4buWVmD5W0vPwgA+UNVqg6Np0GHZJuMXy B6+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:references:in-reply-to:message-id:date:to:from :dkim-signature:delivered-to; bh=aN9zICFvaRq3AQ6wgrO/Dael4m6dw4cTxsnYjSvZQ3M=; b=f0axX4buWJH+xyB6QF4sM7SgZ0ewcKTXzTYh5YIjhtxLiEDbCAwLAr1R3ru6USbDqj 8yV0LWWCIzyAW8ls8YcPBQHmQqxBvqvaHNXFxrXKQCqwikW1z3hhKOiAqDVdTcXdds89 Q8pDsuxbAioRHYqx1O2vaMNxtVwl6lxPr2xW06Q3hgvZiL69fcyZkWimU9kMXcYnVAsj UnDrWkbLXZEPARZqmspCXCylRNpar0Zf8KSQHxDazqntXGb2N3fBIZWSncuQp0Tww5pr ZPluxz6B8K/rrSGdyMnaMQBAC/fObEby/WuEL/qSJj9z5V0ORazWvpO4X4oLTtcjTKi5 +XBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=nkGIzpnY; 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 b5si14002780pgw.509.2019.12.14.21.10.46; Sat, 14 Dec 2019 21:10:46 -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=nkGIzpnY; 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 5A4647F639; Sun, 15 Dec 2019 05:10:43 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pg1-f179.google.com (mail-pg1-f179.google.com [209.85.215.179]) by mail.openembedded.org (Postfix) with ESMTP id 084EE7D71A for ; Sun, 15 Dec 2019 05:09:47 +0000 (UTC) Received: by mail-pg1-f179.google.com with SMTP id s64so1711473pgb.9 for ; Sat, 14 Dec 2019 21:09:49 -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=5cGLTrifvtkGahYF5X/p4TJtsCiU8f48cJwPuMAJg7c=; b=nkGIzpnY27pGvB4vJKfPq+LHzUxTf2bTm/GFKYGi6ofQg9SDb9kqUPEjhlJHzj6Q+h YX+wHc2CzW5gTtu893+aOT3eOjmSIMc4+JioPcg2boPWZyGkN5agS81mIA4h+U2ROhyP MlvquwH86sj5yuhRZX4/KZJ680sVytM1n2J2htRz1TxIA/S4XY74h5MDpe36y3NMCqtO l6vsON8HUtIrdStsXA8zJtPXQuk1v9nmsMcPmAN7ebPWzYaghSkI00fgUbNTUEIYAHlV 3qgcosL76BO6FEN/v1PqytgwGJXr3vTFgBcei4DCzcEOMszQ5P/IGvuR9AdcaxV8KbHt VPwg== 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=5cGLTrifvtkGahYF5X/p4TJtsCiU8f48cJwPuMAJg7c=; b=JROmlTSf0zM1lEwP+PUsiQwnIq300t2rR12tc/56qkkrkOkHVR13K+IcErkAAOSXlO M7pUx4AZWjK9MCwbzaRd/MBURj8HnZyevbKJ6nimFwSidd4JqR4XCohtlc7MUtrN7+Z1 1Z+WYGclEGrJQBQYJ8ZBLI6inQlytcpo/M+TmGa0VONSWAPGa/dvfkELLnH5ZMIQycTl 2vZcnZ5odhYoEGDZgqJTS0VYlEPsDbdgxrC0wJmuGP419NuW/nj9tSEtvJKzpM4pME8O vUR7DpcG+qJ14TjtlAQz5Ucg+9jAVweKCi9qrMCMyrXiT6Q2RK2ZdA3asR0yq9ZLT4RX ZDdw== X-Gm-Message-State: APjAAAVzX/mvo5vn+xdLrLQxsuKll8zzU+y4VeKyzJlVPNpx2fSBtJYk 9Fp+Ljieru/SdadJZ5w8BE4bmXG+G9g= X-Received: by 2002:a63:5d03:: with SMTP id r3mr10158870pgb.306.1576386588713; Sat, 14 Dec 2019 21:09:48 -0800 (PST) Received: from apollo.hsd1.ca.comcast.net ([2601:646:9200:4e0::6563]) by smtp.gmail.com with ESMTPSA id c8sm16835575pfj.106.2019.12.14.21.09.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 Dec 2019 21:09:48 -0800 (PST) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Sat, 14 Dec 2019 21:09:36 -0800 Message-Id: <20191215050936.25027-2-raj.khem@gmail.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20191215050936.25027-1-raj.khem@gmail.com> References: <20191215050936.25027-1-raj.khem@gmail.com> MIME-Version: 1.0 Subject: [oe] [meta-networking][PATCH 2/2] grpc: Define libdir and cmakedir in terms of multilib 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 This helps in avoiding packaging errors seen with distros enabling multilib Fixes ERROR: grpc-1.24.3-r0 do_package: QA Issue: grpc: Files/directories were installed but not shipped in any package: /usr/lib/libgrpc++.so.1.24.3 ... /usr/lib/cmake /usr/lib/cmake/grpc /usr/lib/cmake/grpc/gRPCConfigVersion.cmake /usr/lib/cmake/grpc/gRPCConfig.cmake /usr/lib/cmake/grpc/gRPCTargets-noconfig.cmake /usr/lib/cmake/grpc/gRPCTargets.cmake Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or de lete them within do_install. Signed-off-by: Khem Raj --- meta-networking/recipes-devtools/grpc/grpc_1.24.3.bb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- 2.24.1 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-networking/recipes-devtools/grpc/grpc_1.24.3.bb b/meta-networking/recipes-devtools/grpc/grpc_1.24.3.bb index 24072c0832..3cde6f79cc 100644 --- a/meta-networking/recipes-devtools/grpc/grpc_1.24.3.bb +++ b/meta-networking/recipes-devtools/grpc/grpc_1.24.3.bb @@ -36,6 +36,8 @@ EXTRA_OECMAKE = " \ -DgRPC_INSTALL=ON \ -DCMAKE_CROSSCOMPILING=ON \ -DBUILD_SHARED_LIBS=ON \ + -DgRPC_INSTALL_LIBDIR=${baselib} \ + -DgRPC_INSTALL_CMAKEDIR=${baselib}/cmake/${BPN} \ " do_configure_prepend_mipsarch() { @@ -48,6 +50,6 @@ do_configure_prepend_toolchain-clang_x86() { BBCLASSEXTEND = "native nativesdk" -SYSROOT_DIRS_BLACKLIST_append_class-target = "${libdir}/cmake/grpc" +SYSROOT_DIRS_BLACKLIST_append_class-target = "${baselib}/cmake/grpc" FILES_${PN}-dev += "${bindir}"