From patchwork Tue Sep 19 00:27:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 112950 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp4291259qgf; Mon, 18 Sep 2017 17:27:29 -0700 (PDT) X-Received: by 10.98.236.17 with SMTP id k17mr302633pfh.191.1505780848880; Mon, 18 Sep 2017 17:27:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505780848; cv=none; d=google.com; s=arc-20160816; b=yChw98H+J0Mz5F+qTo0zLE8LAWZpNpfPQJEZ6SxHNcP0lp0mT0DFnyP+0BZD6UzHn3 lNkyQPslUpebxqDKl/w015oSIDeBWUbb/cZlpoZI/e9tZE8JPJJk6fLvaoOu1iPVeA4q G4GVfvVvOmjvugVWttXe1/3iRF05COm/sP+zCUBeh/VjLR8woew1k4IerhRB+YDV2YUm F9uXbFTndK8uCec+f/S/LnVd7XJlXD8R0aVHiQATdsW4MuC/mnoFAQtmMqHLtBQVxCrt TX2Fa2xPLdcq7PkmJBcBl9woAXGYV1T572GFCOf+021D8dSZqUIOYqzBFmz9N0jx/JTI EHTg== 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:message-id:date:to:from:dkim-signature :delivered-to:arc-authentication-results; bh=jQgC9K0QMFaAnO4wEdvkolxP9gVN1QVyFaVLW2NP/N4=; b=KPJeVCtdguO6CXNDjOE/TZKrtIUDmU/Kl0I7HlrYBaZ4eTVBsSIab0vhcvnF772sLk Mb349VJCY6Qp+7uf+E3MWW3+ICm4y8+oYspVsT7h8TSoPWojbP244t1OVihUx7OFQjwn IEUt4GssBKd+Pta8RR7DFd/7Z4SASrltcjBIZKN8ngdCM8vPeSvtQiVZonZXr4TlBrnz ncPSIFPEAUCg/utXXB19JDHDTpyBcw7w6a6JaM0v7MMGPC9/k0b/3jQegeChJ9g6gz39 vumJwVSr0P7Xu3R+KsDZ/+hFl+aFxLYTCGaaX2u27gHH1x0u2IT8q/m2n+ySxgUO8/zj GjTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=Iw4ryXpS; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-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 m21si421789pgn.782.2017.09.18.17.27.28; Mon, 18 Sep 2017 17:27:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-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=Iw4ryXpS; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-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 8CF7578221; Tue, 19 Sep 2017 00:27:25 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pg0-f66.google.com (mail-pg0-f66.google.com [74.125.83.66]) by mail.openembedded.org (Postfix) with ESMTP id 0C83B781EE for ; Tue, 19 Sep 2017 00:27:23 +0000 (UTC) Received: by mail-pg0-f66.google.com with SMTP id v5so1085198pgn.4 for ; Mon, 18 Sep 2017 17:27:25 -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; bh=FcsiOdcNMn+yM5gV0ZRWbC/2oPH+BxPuhPCBcILdmtY=; b=Iw4ryXpSILuZjzRwdgX2UiYgV0SFIeh+EBgIqnvWjJcM88CxuPKLyfKKg4UzgRVxlZ wqz2RitesTxtEr1LfNnp3yp66g+in6F5X6wbZVR3/pLA+ciCitCFQsed8hOz5AiW7b0w WCX3sicLjs8aAIgEqVw8XsdLeSVQgaeJNlk8LU+JYY8Co389hCLAZydavNGBDme37YqQ An8h42NWyjwqM0KgtwhR20F6rDfp72sMb2D7c5FuBELS+eNpu3GhFASUNcVjKtmaAp7o QmB+o05sHjDcVzMAfTyEBg6jeKcN7j8XHlPrJ3PDSihnBjFTOou9DGwv8KJQY2iMwA2N OviA== 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; bh=FcsiOdcNMn+yM5gV0ZRWbC/2oPH+BxPuhPCBcILdmtY=; b=ajnyfnIWxrq2h9hEeeXCzEVsJswU/9yxQBTdA1d9+n/Ia0lZdTtIdI3aYjP9RnU67A Ve1cLwBy/F8X13Q8Re/k86x56TKzoFcgkkEIGNmYj2BgWz1qEcl1nl+6inZoXKN6aeCu mrlVyuBqKZzafwtLLhE0JKdzcNqPAtZU8DtMAc6c5eRhgT+kPdDfNoJQKTiS3ZyGFujc Fa0a2Jr0DRVGUGmNaYEHTd7iMlj5sI17396RJVXpZdNT8DswmK5E+keCjQkGTwFBogum sg7SKXnGG16PZ5yB/ebbPDvNdZzZ+hfrMQ3w4ZAbaWpjATNYrma7g7iIiQ1tOmqjLuok BdgQ== X-Gm-Message-State: AHPjjUidM5hPYYJNDWmevxlzIhJwZv7THAorHFBlppl/rK4fxwMXp2Y5 16cjVyyhDlnqOcOZ X-Google-Smtp-Source: AOwi7QCytQonEcS/E0PZsP2rhFh3XHTWlzYb/vHDGpkMPcpQT6QxPy/FHhrw+C7wDNdkD+avN6CVaQ== X-Received: by 10.99.185.86 with SMTP id v22mr352104pgo.236.1505780845228; Mon, 18 Sep 2017 17:27:25 -0700 (PDT) Received: from localhost.localdomain ([2601:646:8882:b8c::a20b]) by smtp.gmail.com with ESMTPSA id c7sm858487pfg.85.2017.09.18.17.27.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Sep 2017 17:27:24 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Mon, 18 Sep 2017 17:27:16 -0700 Message-Id: <20170919002716.44275-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.14.1 Subject: [OE-core] [PATCH] nspr: Fix build with musl/mips X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org Signed-off-by: Khem Raj --- .../nspr/nspr/0001-md-Fix-build-with-musl.patch | 31 ++++++++++++++++++++++ meta/recipes-support/nspr/nspr_4.16.bb | 1 + 2 files changed, 32 insertions(+) create mode 100644 meta/recipes-support/nspr/nspr/0001-md-Fix-build-with-musl.patch -- 2.14.1 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-support/nspr/nspr/0001-md-Fix-build-with-musl.patch b/meta/recipes-support/nspr/nspr/0001-md-Fix-build-with-musl.patch new file mode 100644 index 0000000000..f3cd670026 --- /dev/null +++ b/meta/recipes-support/nspr/nspr/0001-md-Fix-build-with-musl.patch @@ -0,0 +1,31 @@ +From 147f3c2acbd96d44025cec11800ded0282327764 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Mon, 18 Sep 2017 17:22:43 -0700 +Subject: [PATCH] md: Fix build with musl + +The MIPS specific header is not provided by musl +linux kernel headers provide which has same definitions + +Signed-off-by: Khem Raj +--- +Upstream-Status: Pending + + pr/include/md/_linux.cfg | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/pr/include/md/_linux.cfg b/pr/include/md/_linux.cfg +index 640b19c..31296a8 100644 +--- a/pr/include/md/_linux.cfg ++++ b/pr/include/md/_linux.cfg +@@ -499,7 +499,7 @@ + #elif defined(__mips__) + + /* For _ABI64 */ +-#include ++#include + + #ifdef __MIPSEB__ + #define IS_BIG_ENDIAN 1 +-- +2.14.1 + diff --git a/meta/recipes-support/nspr/nspr_4.16.bb b/meta/recipes-support/nspr/nspr_4.16.bb index a634afbf75..bb178fe712 100644 --- a/meta/recipes-support/nspr/nspr_4.16.bb +++ b/meta/recipes-support/nspr/nspr_4.16.bb @@ -11,6 +11,7 @@ SRC_URI = "http://ftp.mozilla.org/pub/nspr/releases/v${PV}/src/nspr-${PV}.tar.gz file://remove-srcdir-from-configure-in.patch \ file://0002-Add-nios2-support.patch \ file://0001-include-stdint.h-for-SSIZE_MAX-and-SIZE_MAX-definiti.patch \ + file://0001-md-Fix-build-with-musl.patch \ file://nspr.pc.in \ "