From patchwork Sat Sep 15 12:58:56 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Giulio Benetti X-Patchwork-Id: 970229 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.136; helo=silver.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="aseosacm"; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42CCBg1dbBz9sCW for ; Sat, 15 Sep 2018 22:59:06 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 8ACD722D51; Sat, 15 Sep 2018 12:59:05 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uhJIFlS-Jmfq; Sat, 15 Sep 2018 12:59:04 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id A011922BC9; Sat, 15 Sep 2018 12:59:04 +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 DCBA31C0A2D for ; Sat, 15 Sep 2018 12:59:02 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id D7CB8867EC for ; Sat, 15 Sep 2018 12:59:02 +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 T0f-nSTWkwJX for ; Sat, 15 Sep 2018 12:59:01 +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 7357B867C3 for ; Sat, 15 Sep 2018 12:59:01 +0000 (UTC) Received: from mail.micronovasrl.com (mail.micronovasrl.com [127.0.0.1]) by mail.micronovasrl.com (Postfix) with ESMTP id 2A6C7B00980 for ; Sat, 15 Sep 2018 14:58:59 +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=1537016338; x=1537880339; bh=Ke+2POrf+0yvF70V7USG5/kQ 7OP6mH2MS0EharhVykE=; b=aseosacmlFJVwgBXlVv3MiDuP76Hj/FJAW/SSpVB 8FHmAW9tF9jAenlIrJlDIrv08h2itPx12E9MGvc5DFWeugXIw2klVSNmxRWhy1bs bk00HcS7TofQ2dGAtDpLBSOQ3YhIoIHDdc/sTvN056ck0RWKZ+4ZUGjoaDv8i9gA IuU= 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 N7aAWkXL5mrf for ; Sat, 15 Sep 2018 14:58:58 +0200 (CEST) Received: from ubuntu.localdomain (5-157-103-91.v4.ngi.it [5.157.103.91]) by mail.micronovasrl.com (Postfix) with ESMTPSA id 20A6EB007CE; Sat, 15 Sep 2018 14:58:58 +0200 (CEST) From: Giulio Benetti To: buildroot@buildroot.org Date: Sat, 15 Sep 2018 14:58:56 +0200 Message-Id: <20180915125856.82310-1-giulio.benetti@micronovasrl.com> X-Mailer: git-send-email 2.17.1 Subject: [Buildroot] [PATCH] gpm: fix 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: Giulio Benetti , Julien Boibessot 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() is used. This commit adds a patch to directly include into open_console.c file where major() macro is used. Fixes: http://autobuild.buildroot.net/results/f53/f5373a567de619375746f1dcfe312971b85bb810/ http://autobuild.buildroot.net/results/227/227a7edf9304d85645d3e7fa0f930fe2e9b6e752/ Signed-off-by: Giulio Benetti --- ...ix-major-build-failure-due-to-glibc-.patch | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 package/gpm/0005-open_console.c-fix-major-build-failure-due-to-glibc-.patch diff --git a/package/gpm/0005-open_console.c-fix-major-build-failure-due-to-glibc-.patch b/package/gpm/0005-open_console.c-fix-major-build-failure-due-to-glibc-.patch new file mode 100644 index 0000000000..310503e332 --- /dev/null +++ b/package/gpm/0005-open_console.c-fix-major-build-failure-due-to-glibc-.patch @@ -0,0 +1,32 @@ +From 6463cdec7e784c3c963fae867f50c2708e21e8f7 Mon Sep 17 00:00:00 2001 +From: Giulio Benetti +Date: Sat, 15 Sep 2018 14:37:37 +0200 +Subject: [PATCH] open_console.c: fix major() build failure due to glibc 2.28 + +glibc 2.28 no longer includes from , +and therefore must be included explicitly when +major() is used. + +This commit adds a patch to directly include into +open_console.c file where major() macro is used. + +Signed-off-by: Giulio Benetti +--- + src/daemon/open_console.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/daemon/open_console.c b/src/daemon/open_console.c +index 98297c9..d7acd40 100644 +--- a/src/daemon/open_console.c ++++ b/src/daemon/open_console.c +@@ -22,6 +22,7 @@ + #include /* open and co. */ + #include /* stat() */ + #include /* ioctl */ ++#include + + /* Linux specific (to be outsourced in gpm2 */ + #include /* for serial console check */ +-- +2.17.1 +