From patchwork Thu Dec 14 17:36:29 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 121998 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp7105580qgn; Thu, 14 Dec 2017 09:36:46 -0800 (PST) X-Google-Smtp-Source: ACJfBov45GF9f75V3PopTkImYGfLbQ35gHdrCIreZQbaAUroRztm60UEmZYKyS5fBaG6bQgsn9xM X-Received: by 10.84.194.163 with SMTP id h32mr10003952pld.335.1513273006678; Thu, 14 Dec 2017 09:36:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513273006; cv=none; d=google.com; s=arc-20160816; b=nRS61qy2bPxdaBEBbmdG+iN2ctWS8FP4szG8FwxIT7EVP/7u0klKkaB9tgiIWBIOje Pz8EQ+MAIODD1H1tH5sjqJV9b0hKnMweRlxAJcbH+b2xizpeAugRQEzxwYyWaEjQ+U9C 0oIxclpYhD24PY9oA2qkEICTmRWaDm3NfwyK/QdL4GChAuYJj0xJK+doIZF1SJv9k8aK Eo1yiU/l35GLjsPsBWnDqJwSU1fGp+RJBKDDsvSqURNK2cBM7xLl8fKN3c7cLCneX1AO oCFk1nwIcTuRiqFPyBIRpMsA+UAWt2R4AsGSTOgn+ZTTHzTqJQyrjgJpIImGOA5863f2 wLow== 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=hwnrkiY7beQmzIeQB75pOs9QwVgrEJ1M/1yAeWmJXPo=; b=W2OqdOr8xAYzhHmEuviLEILZCSkm2WD8mDQAAVfmgHUJEUyqRxQdQk2dOZXfZUEeXz Cn6ZMwbObekqV0wnGtBgX8GMrvsT2XNxqZUZjZHStrUQENfgLJGOxJRYUkGRenHI9Cak T4QfWBAnIVTc0ve26vKeGHKSghiEO7QHJNeDAiDNzdPM9UJdlgxH/iVOIIacN0sDOOnU D1ipUPV+m72TOErQvHZ8qqNA4PBbAp8SWP66PiE6/Ka/3qR4qQUjhITjhukHqh9Fv85v iBjztK0+2GwHXjUpdYjqqwWEfxCUy7d74tJADnKBQgOMflbUmSLiw1yVC8qDYKaad7Nm EWLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=MzDl7t34; 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 91si3448070ply.766.2017.12.14.09.36.46; Thu, 14 Dec 2017 09:36: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=MzDl7t34; 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 8250078836; Thu, 14 Dec 2017 17:36:43 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pf0-f172.google.com (mail-pf0-f172.google.com [209.85.192.172]) by mail.openembedded.org (Postfix) with ESMTP id 9604571D79 for ; Thu, 14 Dec 2017 17:36:42 +0000 (UTC) Received: by mail-pf0-f172.google.com with SMTP id p84so4110198pfd.3 for ; Thu, 14 Dec 2017 09:36:43 -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; bh=1Z4rSFaDIPfXLPELhWl1mCagryf1sL7GxOhgHaxqbvM=; b=MzDl7t34zVh/KikMRMJPaC/6yAcsY07dgb5K/6ZcElBH06V2LP6XHJTuenuz1w23Kl yFYiFGdBD3HWPP5lJh7UO6dXXG8Fn4I7RSLC9439+y8v8IqJAEN3h9qplyD+5Z4P+0/k AABwbEFFKt2BPvjFgQl0oFXxJdrBX/jACLM2ItOuLjkhHiEQRNiLaI7pq3Lpz74/4UIV nQ2zF0es+pA2wQYZeElNEtEM85MAYJ9YHe89j9HN5nZcB4jb4C8aVtZFbuDHHs3nMZXQ RyuAh7hSBBogCTmpnownkqslSUQnmrn2eQ8pChWvuE2VmUUydGsN9CM+maxTsVbkTsDQ hWdw== 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=1Z4rSFaDIPfXLPELhWl1mCagryf1sL7GxOhgHaxqbvM=; b=BMB51RibfEgL9DphLaL5orIDsOxswRuZa+aYM0d6UCKpZ7OU09hYuARA46Qo6HpOnj JvFTBkQrEsFsVIjaogsh7cmzauXMZ0/1wEMm11q7vi8E7RtsHdGq2RrcSAaP0n0HHaPC 6Vao9bBdqGjPsX2Z3FUWbhEgHppbfypguSNOvmJcwyskeHND+lo81SkG2xlLujIhaB++ i6dn97eJJRBPvRxdTKkeoLkGzsOxUSYBfd6xoTI7DH7NoL0K/uYWIthBenuygEhmrubS Maj5Joa9ShPYgX1U+qyPKNcYaflE+IQ8ka6Hj50gIEPA/klzxtnUDVBDWeCYIkJFLtkH XANQ== X-Gm-Message-State: AKGB3mLIvlwmi35kcsIOFi2VJMU99CDNwXD6TfVL5ZcVrHzbIzbllYLc 98Cv+B99K3yaWlEP1bm8KZNmwQ== X-Received: by 10.159.254.8 with SMTP id r8mr9755539pls.291.1513273003158; Thu, 14 Dec 2017 09:36:43 -0800 (PST) Received: from localhost.localdomain ([2601:646:8880:466c::c579]) by smtp.gmail.com with ESMTPSA id l14sm7437748pgn.9.2017.12.14.09.36.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Dec 2017 09:36:42 -0800 (PST) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Thu, 14 Dec 2017 09:36:29 -0800 Message-Id: <20171214173633.16405-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.15.1 Subject: [oe] [meta-networking][PATCH 1/5] open-isns: Fix build with musl 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 --- ....h-endian.h-is-available-on-musl-on-linux.patch | 38 ++++++++++++++++++++++ .../recipes-support/open-isns/open-isns_0.97.bb | 6 ++-- 2 files changed, 41 insertions(+), 3 deletions(-) create mode 100644 meta-networking/recipes-support/open-isns/open-isns/0001-util.h-endian.h-is-available-on-musl-on-linux.patch -- 2.15.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/open-isns/open-isns/0001-util.h-endian.h-is-available-on-musl-on-linux.patch b/meta-networking/recipes-support/open-isns/open-isns/0001-util.h-endian.h-is-available-on-musl-on-linux.patch new file mode 100644 index 000000000..825e2bf6a --- /dev/null +++ b/meta-networking/recipes-support/open-isns/open-isns/0001-util.h-endian.h-is-available-on-musl-on-linux.patch @@ -0,0 +1,38 @@ +From e0d86318227a23f00cf0f6639a6685bb9f5771a1 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Tue, 12 Dec 2017 09:42:19 -0800 +Subject: [PATCH] util.h: endian.h is available on musl on linux + +just checking for glibc alone is not enough since +it excludes musl, therefore check for platform +being linux as well + +Fixes build issues + +include/libisns/util.h:114:12: fatal error: sys/endian.h: No such file or directory + # include + ^~~~~~~~~~~~~~ + +Signed-off-by: Khem Raj +--- +Upstream-Status: Submitted + + include/libisns/util.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/include/libisns/util.h b/include/libisns/util.h +index 9a2bd13..6cc1a1b 100644 +--- a/include/libisns/util.h ++++ b/include/libisns/util.h +@@ -100,7 +100,7 @@ enum { + * There's no htonll yet + */ + #ifndef htonll +-# ifdef __GLIBC__ ++# if defined(__GLIBC__) || defined(__linux__) + # include + # include + # if __BYTE_ORDER == __BIG_ENDIAN +-- +2.15.1 + diff --git a/meta-networking/recipes-support/open-isns/open-isns_0.97.bb b/meta-networking/recipes-support/open-isns/open-isns_0.97.bb index 9ee1f87c8..abfa7510e 100644 --- a/meta-networking/recipes-support/open-isns/open-isns_0.97.bb +++ b/meta-networking/recipes-support/open-isns/open-isns_0.97.bb @@ -13,9 +13,9 @@ SECTION = "net" DEPENDS = "openssl" -SRC_URI = " \ - git://github.com/open-iscsi/open-isns \ -" +SRC_URI = "git://github.com/open-iscsi/open-isns \ + file://0001-util.h-endian.h-is-available-on-musl-on-linux.patch \ + " SRCREV ?= "09954404e948e41eb0fce8e28836018b4ce3d20d"