From patchwork Fri Jul 14 05:40:11 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 107732 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp455117qge; Thu, 13 Jul 2017 22:43:23 -0700 (PDT) X-Received: by 10.99.56.21 with SMTP id f21mr12831527pga.235.1500011003204; Thu, 13 Jul 2017 22:43:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1500011003; cv=none; d=google.com; s=arc-20160816; b=kaCVfp3nKfbV43y6UYuCT/eAQKkRSx6RkudCZu09bn/lgCZoUhpWO/Eb5jD7f6k0KR cVWXWXM/8soNzmYSAhuDVSklNzmfjwI6GsizzeJstZhuOHQOexmI7RqjpHXPvRh/vp3y KVS+yxP29wokTLcfkHH2+cpGPzXx8QeHqnG9vXX8EMXaakyXeTjxcV3jSaR2Oge0oG9l hNXvQNNnT8N51TTinoe9Hnuwaz2Z2yxLGDF7Zr22rwBHHvWj84ZWvxDy1xrkRxq/FfhQ TTPHWwTpNrpqQkwy/jlWoubXl9ImfYecJhizpblav09wJ4B2PW389qdwEJ2Efg5TFPTf gwEg== 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=MamPu4Ixax/d3qlPamj3GRuGXys0ZDlcdJvtBnj3Gpo=; b=cbYKSZRngBwE25HhqcDSdqtNRDkZsoiXpfQ8TIZ3E89Sebw2w5AyqtZrrUAjse17im puX+BvC/2baFl29QH8ItpiFQBFIc/V/2rAhDjBlisjQhiDwzroD5E3wENzmyN4U3WQVb AVt3QacBGjB3o61ZCIGGGhdvXSZPAegS677qzXOzNJEMQa9ioqs/dJiEEbXPe8ARF+6I atsTGb9NN1sIDqayMoEpoYQzhNXiym+W77MtiZknnDC7MCJ6GhwGkh/UQ0RBq1NVQ+pL 6exz/xV1MRL9W/57CeBqA6AfvU3eZpCHCCn8K40ERl7adPXeAlDePDTK1IKq05N8Z86K fD0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.b=M3RKlkxy; 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 g12si6166253plj.555.2017.07.13.22.43.22; Thu, 13 Jul 2017 22:43:23 -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.b=M3RKlkxy; 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 3EDE778254; Fri, 14 Jul 2017 05:41:47 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pg0-f68.google.com (mail-pg0-f68.google.com [74.125.83.68]) by mail.openembedded.org (Postfix) with ESMTP id 6CF9278152 for ; Fri, 14 Jul 2017 05:40:45 +0000 (UTC) Received: by mail-pg0-f68.google.com with SMTP id j186so9397089pge.1 for ; Thu, 13 Jul 2017 22:40:47 -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:in-reply-to:references; bh=XvlLMqRHLjboD0CmTcx97WLvWdj6KdMhdcwT+J8YnHY=; b=M3RKlkxycaG88H8NS2e0BI38oj6CTMF9IYhjvJJFnFyFwKQAJdyjHfWXbU+2pbvJqt HZxQlw+7vgZT01DUQ8Lzsvfs37+vB5MbZ6+o+LRsxzdS+9cyIdZgDV7uBSSXJqfU+9DJ 2aKHam+pduG7hUBMkU8W/iFTLSNEfPDMhdpph5mJlfIDx53ax4wnO2Gx9lLhpDPDJYc+ SwmvXzF+qOjchwYBVXbzdITwi3+zA00QUSa+QTt8yx6JqOgB5kTtVq+7N5mp+cQlz85R xbVuk8Bswg2hojLhiQlm3RpcoOewh5vLO+IJsldbOQ5K/8EmFQ86Fdc2B4mrRrIeCJ2L wKhg== 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; bh=XvlLMqRHLjboD0CmTcx97WLvWdj6KdMhdcwT+J8YnHY=; b=O38lMSq1TQtHT9iwM3pKPSqM8tsSy8oBXmPq5YLhosF6SKs53uGql3GosMy8Pa1uIv oNfIjXQhLlomWBikJ+OQdwTVnJReKfYVm0YYSmo4cW95CG1xc7OommRhdu342A/23lDp ag6Vm2iyQ9RsOdhjhiqpbYpO05eugkJ/HF9BsY0SmwhAxPZ1JNaFu11DjoGfy/Z0NSFo NfBKe47HuEJYGZ2F8Ekzt+5oFA4/XKgDW48nDydQi5wsCg329ki7MrvCQkOkA9DtfQGW ZHOpQrmKlFKqqAvmHlb8MGraie14x/mL2QUck56AAhWDioGDP8XuOUKdVpTbB2jtsgkK gpGw== X-Gm-Message-State: AIVw113TL7oZqz8uYOdoI0+EQUsPva3GKk+FcT0x+oOnsroN/fNNtSKO SF9eiChD269f+Ele X-Received: by 10.101.72.130 with SMTP id n2mr12908926pgs.198.1500010846747; Thu, 13 Jul 2017 22:40:46 -0700 (PDT) Received: from localhost.localdomain ([2601:646:8882:b8c::7028]) by smtp.gmail.com with ESMTPSA id z86sm17519420pfl.40.2017.07.13.22.40.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 13 Jul 2017 22:40:45 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Thu, 13 Jul 2017 22:40:11 -0700 Message-Id: <20170714054013.34458-16-raj.khem@gmail.com> X-Mailer: git-send-email 2.13.2 In-Reply-To: <20170714054013.34458-1-raj.khem@gmail.com> References: <20170714054013.34458-1-raj.khem@gmail.com> Subject: [oe] [meta-initramfs][PATCH 16/18] dracut: Upgrade to 045 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 Fix build on musl while here Signed-off-by: Khem Raj --- ...-util.h-include-sys-reg.h-when-libc-glibc.patch | 33 ++++++++++++++++++++++ .../recipes-devtools/dracut/dracut_git.bb | 19 +++++++++---- 2 files changed, 46 insertions(+), 6 deletions(-) create mode 100644 meta-initramfs/recipes-devtools/dracut/dracut/0001-util.h-include-sys-reg.h-when-libc-glibc.patch -- 2.13.2 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-initramfs/recipes-devtools/dracut/dracut/0001-util.h-include-sys-reg.h-when-libc-glibc.patch b/meta-initramfs/recipes-devtools/dracut/dracut/0001-util.h-include-sys-reg.h-when-libc-glibc.patch new file mode 100644 index 000000000..32714038b --- /dev/null +++ b/meta-initramfs/recipes-devtools/dracut/dracut/0001-util.h-include-sys-reg.h-when-libc-glibc.patch @@ -0,0 +1,33 @@ +From 06011ce55b1e892e863568a73d64eebc6389544f Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Thu, 13 Jul 2017 17:14:05 -0700 +Subject: [PATCH] util.h: include when libc != glibc + +For musl libc it is required to include to +have __WORDSIZE defined to e.g. 32 for arm*-musl. + +Taken from void-linux +https://github.com/voidlinux/void-packages/blob/master/srcpkgs/dracut/patches/musl-__wordsize.patch + +Signed-off-by: Khem Raj +--- + install/util.h | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/install/util.h b/install/util.h +index 2ad3254d..062626ec 100644 +--- a/install/util.h ++++ b/install/util.h +@@ -36,6 +36,9 @@ + #include + #include + #include ++#if !defined(__GLIBC__) ++#include ++#endif + + #include "macro.h" + +-- +2.13.2 + diff --git a/meta-initramfs/recipes-devtools/dracut/dracut_git.bb b/meta-initramfs/recipes-devtools/dracut/dracut_git.bb index b91f3fae2..09c86d0b7 100644 --- a/meta-initramfs/recipes-devtools/dracut/dracut_git.bb +++ b/meta-initramfs/recipes-devtools/dracut/dracut_git.bb @@ -5,13 +5,18 @@ LICENSE = "GPLv2" LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" PE = "1" -PV = "044+git${SRCREV}" +PV = "045+git${SRCREV}" -# v044 tag -SRCREV = "1bc3e733f96033a508841e97fe08da7a12851782" -SRC_URI = "git://git.kernel.org/pub/scm/boot/dracut/dracut.git;protocol=http" +# v045 tag +SRCREV = "39c9b67f86145953aa30def9d77c68597a4ccfe8" +SRC_URI = "git://git.kernel.org/pub/scm/boot/dracut/dracut.git;protocol=http \ + file://0001-util.h-include-sys-reg.h-when-libc-glibc.patch \ + " -inherit bash-completion +DEPENDS += "kmod" +DEPENDS_append_libc-musl = " fts" + +inherit bash-completion pkgconfig S = "${WORKDIR}/git" @@ -30,7 +35,9 @@ EXTRA_OECONF = "--prefix=${prefix} \ PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_unitdir}/system/,,,systemd" -EXTRA_OEMAKE += 'libdir=${prefix}/lib' +EXTRA_OEMAKE += 'libdir=${prefix}/lib LDLIBS="${LDLIBS}"' + +LDLIBS_append_libc-musl = " -lfts" do_configure() { ./configure ${EXTRA_OECONF}