From patchwork Thu Sep 27 15:09:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Giulio Benetti X-Patchwork-Id: 975765 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=micronovasrl.com Authentication-Results: ozlabs.org; dkim=fail reason="key not found in DNS" (0-bit key; unprotected) header.d=micronovasrl.com header.i=@micronovasrl.com header.b="tFK6LhIZ"; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42LdWn3F4kz9s3Z for ; Fri, 28 Sep 2018 01:09:40 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id B063087D4A; Thu, 27 Sep 2018 15:09:38 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id iuwSy5n+UJFd; Thu, 27 Sep 2018 15:09:38 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 366FE87D50; Thu, 27 Sep 2018 15:09:38 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 486261BFCC3 for ; Thu, 27 Sep 2018 15:09:37 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 4239A844AE for ; Thu, 27 Sep 2018 15:09:17 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MNe-I6fXNUNT for ; Thu, 27 Sep 2018 15:09:16 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail.micronovasrl.com (mail.micronovasrl.com [212.103.203.10]) by fraxinus.osuosl.org (Postfix) with ESMTP id 79D2F840BA for ; Thu, 27 Sep 2018 15:09:16 +0000 (UTC) Received: from mail.micronovasrl.com (mail.micronovasrl.com [127.0.0.1]) by mail.micronovasrl.com (Postfix) with ESMTP id 328D3B00AA4 for ; Thu, 27 Sep 2018 17:09:14 +0200 (CEST) Authentication-Results: mail.micronovasrl.com (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=micronovasrl.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=micronovasrl.com; h=x-mailer:message-id:date:date:subject:subject:to:from:from; s=dkim; t=1538060953; x=1538924954; bh=cKMOJG3jKYFRhL8SEKBSW4wb fLbhDZ2CaHGapx1n2IA=; b=tFK6LhIZcxl1c2E3JL2yl1a4FRoXiWZD6ypphJXn Wi1wWj0skAun38TOcrMZpScLf1OEqKaK8ANxrMSdVWT6cmDtWwWpe89+d3OlNTNE Xg5ZKwSg3BM6cU5w2t61riO/mPm1AqRFNdyGDUmaFP75I36kawWzCpVGm9LlBIAw /40= X-Virus-Scanned: Debian amavisd-new at mail.micronovasrl.com Received: from mail.micronovasrl.com ([127.0.0.1]) by mail.micronovasrl.com (mail.micronovasrl.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id LTT3Lz6CMYxm for ; Thu, 27 Sep 2018 17:09:13 +0200 (CEST) Received: from ubuntu.localdomain (78-134-29-36.v4.ngi.it [78.134.29.36]) by mail.micronovasrl.com (Postfix) with ESMTPSA id 0C0D0B0096C; Thu, 27 Sep 2018 17:09:13 +0200 (CEST) From: Giulio Benetti To: buildroot@buildroot.org Date: Thu, 27 Sep 2018 17:09:10 +0200 Message-Id: <20180927150910.17401-1-giulio.benetti@micronovasrl.com> X-Mailer: git-send-email 2.17.1 Subject: [Buildroot] [PATCH-2018.02.x] cramfs: fix minor()/major() build failure due to glibc 2.28 X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.24 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Thomas Petazzoni MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" glibc 2.28 no longer includes from , and therefore must be included explicitly when major()/minor() are used. This commit adds a patch to directly include into cramfsck.c and mkcramfs.c where minor() and major() macros are used. Fixes: http://autobuild.buildroot.net/results/8c5/8c5997017568f8be1d2f664998fb2fdc433a51d3/ http://autobuild.buildroot.net/results/fad/fad1553d45a8c35ba84c5c340410e99322e21c44/ Signed-off-by: Giulio Benetti --- ...smacros.h-to-compile-with-glibc-2.28.patch | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 package/cramfs/0004-Include-sysmacros.h-to-compile-with-glibc-2.28.patch diff --git a/package/cramfs/0004-Include-sysmacros.h-to-compile-with-glibc-2.28.patch b/package/cramfs/0004-Include-sysmacros.h-to-compile-with-glibc-2.28.patch new file mode 100644 index 0000000000..6096cf3625 --- /dev/null +++ b/package/cramfs/0004-Include-sysmacros.h-to-compile-with-glibc-2.28.patch @@ -0,0 +1,33 @@ +Fix minor()/major() build failure due to glibc 2.28 + +glibc 2.28 no longer includes from , +and therefore must be included explicitly when +major()/minor() are used. + +This commit directly includes into cramfsck.c and +mkcramfs.c files where minor() and major() macros are used. + +Signed-off-by: Giulio Benetti +--- +diff -urpN host-cramfs-1.1.orig/cramfsck.c host-cramfs-1.1/cramfsck.c +--- host-cramfs-1.1.orig/cramfsck.c 2018-09-27 16:48:09.704782201 +0200 ++++ host-cramfs-1.1/cramfsck.c 2018-09-27 16:49:12.841138657 +0200 +@@ -38,6 +38,7 @@ + + #define _GNU_SOURCE + #include ++#include + #include + #include + #include +diff -urpN host-cramfs-1.1.orig/mkcramfs.c host-cramfs-1.1/mkcramfs.c +--- host-cramfs-1.1.orig/mkcramfs.c 2018-09-27 16:48:09.712782246 +0200 ++++ host-cramfs-1.1/mkcramfs.c 2018-09-27 16:48:59.777064921 +0200 +@@ -24,6 +24,7 @@ + + #define _GNU_SOURCE + #include ++#include + #include + #include + #include