From patchwork Sat Jan 27 03:24:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Armin Kuster X-Patchwork-Id: 126021 Delivered-To: patch@linaro.org Received: by 10.46.84.92 with SMTP id y28csp783327ljd; Fri, 26 Jan 2018 19:28:37 -0800 (PST) X-Google-Smtp-Source: AH8x2242DWmbmkrRh2X5cQMzadThyXKaYfMwvHqHZySDO5RSCis+f8++WMMN6lSJzpPNUeNp6TV5 X-Received: by 2002:a17:902:23:: with SMTP id 32-v6mr16353274pla.350.1517023717792; Fri, 26 Jan 2018 19:28:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517023717; cv=none; d=google.com; s=arc-20160816; b=K32K90sxyc3gTVZul9MXYQbfWjF/yI6OOZnrXV1gJ93aA+4JlrF6B9mZxJKUmEuMxz juO0+bE/Uo/7fpmRH1/JraXOTwNmRbpkrIhlrjqLYXxyw/lqDLgXqEgURMKYfTN9Nr8t wjSG7AIA8Z+XJKll6jHF2YiTtrPga7+8w/qgvbXcqmVAr8VdaBIUGY9sSwkyiOwFb0Ls 4a5LEfSGbLFnHZMLRblC9B/DckICbg8CO3lEblOBHX+pJazaESrOgxhqC/riF8r410PD nyu+uUXRzZOuvtAkbtfx/cV/+24x34j64CMMGR/jrqANke6nXx2KgkFvHF/1hgL5ZUT0 E8rQ== 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:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=Id0uuIsuPYXr4aKq0ja3Cp8ocH9RhgD32MmbxojgyMU=; b=jv/cbEV5t/xCESBGnUCrzxkijZa074GtRid9uWxhl6NJqbIG3EcnNgUgcq2jb8BRAo g1gmGKOlIM7Stn4P0qAsoJZuQWJx5RwCjdGwS/Yk8QwqFi95S4NquyXV29GQWBXx/Lye SICVghN7vQARE1doETvX6rJPawBAmwHgTJEQOc5DX25RIRGq5f4QiYj632BxEmfgAnDb KmXoWo8VhroXEhsJa3w0VNZIQ3HHVHI9C/bf1sflovST+gRxXh83KVQbAIxRKW05LilR JzSEBVe+AI1EOiLLiqPZpTKFi4BHmy4xBLwdaVWhKC+BqQOX8BCnnYIDZylxvffJkS5b u/cg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=sAkOU12t; 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 x75si7376524pfa.144.2018.01.26.19.28.37; Fri, 26 Jan 2018 19:28:37 -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=sAkOU12t; 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 layers.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 1725978953; Sat, 27 Jan 2018 03:25:43 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pl0-f65.google.com (mail-pl0-f65.google.com [209.85.160.65]) by mail.openembedded.org (Postfix) with ESMTP id 3F31E78889 for ; Sat, 27 Jan 2018 03:25:04 +0000 (UTC) Received: by mail-pl0-f65.google.com with SMTP id 36so167097ple.13 for ; Fri, 26 Jan 2018 19:25:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references; bh=h0E358ZbzVmba2tQEE5E5suAFoMzVj4oZ5HgcA5amcE=; b=sAkOU12tlRKh/Afb7NtT39sBvGUTH5yxOJsFLidJn+eVxlphZ8bEypzxbgPOZbTb3A qjz1A/8DVqvuoeOLCVqrChdL96D0UxGdM/LNxcTc1Gz1JWvqlMxthJ6qDS6JbqNVZZdT MIlK3h2ZuekkZFrDbXBZE1Tn7c0L3tX8muSO/T8waeQrcdM71lSgQv0b+IjJdFf8919J AkszexA+crQ0Rqfn9P+7ceX7TfMLL3RslJwvUylYNM5pNsJpZ6aiukHv+rk4AJl/9Dzu GTS498vuCjNGdHhOH/Q8ntTosM/473dkkQhVqPPJ4P237Kp6MDmxVJ+tvcRZoqzifS8j AB9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=h0E358ZbzVmba2tQEE5E5suAFoMzVj4oZ5HgcA5amcE=; b=cbV2SKPYjCtW/JtPlEeubfKNzN++hfevfm+Z1UAE3kMGaLtgqXf8nE+wIKTT/X+/OM JjFpre+iqXDtQodMKg8w0Y0b9SXuyoD72SThp8yRuN7c+lbx2ajQxtVlDsl0gY50TBJZ mUSd2Hj4Guhd6FV3S+M6EFNwpz0dXhvvBA/5IeZxNm4SWEvuXjivqCJm1Jv0lG4pO9wz t46w0VbEC+LlQLQm1ujUlkIIGj9dLMuu6tQhLS7J4J5mqj25c33Kz8cqNEL67hiRjyy9 DbGpgzYePxeUJC7VE2PTE6JBjgoqrWcpWoOyQX/jz5UJqD1I3Rz45pRIeElBuivbdgCh yTOQ== X-Gm-Message-State: AKwxytfN4Sx3wz4mijkJaXrUo8IwOWrzhxcDTFm7RSwVeA4gC8t6fJqP fs8v0hY7j+NMumjlAfogiXXvFA== X-Received: by 2002:a17:902:5902:: with SMTP id o2-v6mr15826626pli.79.1517023506524; Fri, 26 Jan 2018 19:25:06 -0800 (PST) Received: from akuster-ThinkPad-T460s.mvista.com ([2601:202:4000:1184:2999:2a82:b9b6:e74c]) by smtp.gmail.com with ESMTPSA id v22sm6692206pfa.158.2018.01.26.19.25.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 26 Jan 2018 19:25:06 -0800 (PST) From: Armin Kuster To: akuster@mvista.com, openembedded-devel@lists.openembedded.org Date: Fri, 26 Jan 2018 19:24:28 -0800 Message-Id: X-Mailer: git-send-email 2.7.4 In-Reply-To: References: Subject: [oe] [PATCH 28/36] 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 From: Khem Raj Signed-off-by: Khem Raj Signed-off-by: Armin Kuster Signed-off-by: Joe MacDonald (cherry picked from commit 43d2d966b957886bc54d7f15e6632211c41114c3) Signed-off-by: Armin Kuster --- ....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.7.4 -- _______________________________________________ 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 0000000..825e2bf --- /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 420ef5b..cc2959e 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 systemd" -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"