From patchwork Mon Dec 19 03:05:57 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 88405 Delivered-To: patch@linaro.org Received: by 10.140.20.101 with SMTP id 92csp958362qgi; Sun, 18 Dec 2016 19:07:50 -0800 (PST) X-Received: by 10.99.65.65 with SMTP id o62mr25260122pga.73.1482116870045; Sun, 18 Dec 2016 19:07:50 -0800 (PST) Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id m26si16788821pfg.240.2016.12.18.19.07.49; Sun, 18 Dec 2016 19:07:50 -0800 (PST) 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; 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 dis=NONE) header.from=gmail.com Received: from review.yoctoproject.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id D443C731FC; Mon, 19 Dec 2016 03:07:39 +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 9975C73208 for ; Mon, 19 Dec 2016 03:06:15 +0000 (UTC) Received: by mail-pg0-f66.google.com with SMTP id g1so5066262pgn.0 for ; Sun, 18 Dec 2016 19:06:17 -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; bh=k707jF/N7hRIjpuP00MNWqCfLwjJzl4Cl8SUVurxcVg=; b=cKDlzwOe6OZpUcK+3ImLJeBZP+s9dKhyetIgGH9x1YSNDI650IoiVIYTMQDfx/bEa/ IXOSRxvVZylKXwBidDkRGjjKwhuasiZnB3RLtoTEjUKktdKR+G+EglSKhAQSaE0R9Hkk V9f3ulvObbnbnR1GpuwVkaizf9+UMT6JB7YH9fCQKGTvZy/zcuD31H1AAnq3SArz2BdF 5pYXQdz1nUKafSP8ZTNFlTwRgkLJehVCdM0xKALdBNk0yy3gMhKSaUNHmoyJJFHo/Pzr XZJ3qRjTwLeM6eLZYbmrOHhzt4GksdLV5moHE5XAanRkRhErRKxLtpZ6Ikvz5Hb1obbI yZXw== 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=k707jF/N7hRIjpuP00MNWqCfLwjJzl4Cl8SUVurxcVg=; b=PpVl9C+7uKydto7Mg/oWP9amHOXdUMNkUutPWTI6/roc8nBG4Lx6egDGdt03ZdDP1D EJOd8RPS1DQ4Qp0bN0P7LW6lDfloNyKr4d2c/7DVhJTu6n/eg4Af1CA4+rs2EPDdP7/7 2V8YwPRZo8fDGdW9Q4X5QtTndzjUKjtvjzmWNL56Rx7NXIXa0EjS7aD6eUDfsHmUw/TV HpNCnS9/eQufFK7sm6z00/NvhmTWr4jscAWs81IOXyF5zlxdTluXevcwH4SRlvaOL11t 82Gh2gFvyu0aa8HnzOLpTElWgh7++ZbP0sCgXJcJpGyE600iq0v7nBGruJbQSTAn1Kzp +8jg== X-Gm-Message-State: AKaTC011pbkX0vk1tRzfRcdgXaS/Oze8cvwH5phkt+P87ev7tA9SPkM1AUghY2S1e+3Cfg== X-Received: by 10.98.35.5 with SMTP id j5mr12926739pfj.91.1482116776865; Sun, 18 Dec 2016 19:06:16 -0800 (PST) Received: from localhost.localdomain (c-76-102-32-192.hsd1.ca.comcast.net. [76.102.32.192]) by smtp.gmail.com with ESMTPSA id 65sm26830276pfn.12.2016.12.18.19.06.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 18 Dec 2016 19:06:16 -0800 (PST) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Sun, 18 Dec 2016 19:05:57 -0800 Message-Id: <20161219030600.1284-5-raj.khem@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20161219030600.1284-1-raj.khem@gmail.com> References: <20161219030600.1284-1-raj.khem@gmail.com> Subject: [OE-core] [PATCH 5/8] mdadm: Fix build with glibc 2.25 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 --- ...ys-sysmacros.h-for-major-minor-defintions.patch | 48 ++++++++++++++++++++++ meta/recipes-extended/mdadm/mdadm_3.4.bb | 1 + 2 files changed, 49 insertions(+) create mode 100644 meta/recipes-extended/mdadm/files/0001-include-sys-sysmacros.h-for-major-minor-defintions.patch -- 2.11.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-extended/mdadm/files/0001-include-sys-sysmacros.h-for-major-minor-defintions.patch b/meta/recipes-extended/mdadm/files/0001-include-sys-sysmacros.h-for-major-minor-defintions.patch new file mode 100644 index 0000000000..acd64ada22 --- /dev/null +++ b/meta/recipes-extended/mdadm/files/0001-include-sys-sysmacros.h-for-major-minor-defintions.patch @@ -0,0 +1,48 @@ +From 943616e5dffb79f307e4bd9b249d316212998750 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Sun, 18 Dec 2016 08:30:51 +0000 +Subject: [PATCH] include for major/minor defintions + +glibc 2.25 is warning about it if applications depend on +sys/types.h for these macros, it expects to be included +from + +Fixes +| Grow.c:3534:13: error: In the GNU C Library, "minor" is defined +| by . For historical compatibility, it is +| currently defined by as well, but we plan to +| remove this soon. To use "minor", include +| directly. If you did not intend to use a system-defined macro +| "minor", you should undefine it after including . [-Werror] +| Query.c: In function 'Query': +| Query.c:105:13: error: In the GNU C Library, "makedev" is defined +| by . For historical compatibility, it is +| currently defined by as well, but we plan to +| remove this soon. To use "makedev", include +| directly. If you did not intend to use a system-defined macro +| "makedev", you should undefine it after including . [-Werror] +| makedev((unsigned)disc.major,(unsigned)disc.minor) == stb.st_rdev) +| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +Signed-off-by: Khem Raj +--- +Upstream-Status: Pending + + mdadm.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/mdadm.h b/mdadm.h +index 8c8f4d1..3ce13b5 100755 +--- a/mdadm.h ++++ b/mdadm.h +@@ -34,6 +34,7 @@ extern __off64_t lseek64 __P ((int __fd, __off64_t __offset, int __whence)); + #endif + + #include ++#include + #include + #include + #include +-- +1.9.1 + diff --git a/meta/recipes-extended/mdadm/mdadm_3.4.bb b/meta/recipes-extended/mdadm/mdadm_3.4.bb index d34b885076..7bf15b51be 100644 --- a/meta/recipes-extended/mdadm/mdadm_3.4.bb +++ b/meta/recipes-extended/mdadm/mdadm_3.4.bb @@ -21,6 +21,7 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/utils/raid/mdadm/${BPN}-${PV}.tar.xz \ file://run-ptest \ file://0001-raid6check-Fix-if-else-indentation.patch \ file://0001-mdadm.h-Undefine-dprintf-before-redefining.patch \ + file://0001-include-sys-sysmacros.h-for-major-minor-defintions.patch \ " SRC_URI[md5sum] = "04b8b21f637540350f8517c7e68d3c63" SRC_URI[sha256sum] = "27d0be4627d38a12ddcd1c1c3721d649d4e89e1093914497e22b57245cda8808"