From patchwork Sun Jul 14 23:06:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Fontaine X-Patchwork-Id: 1131813 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=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="GpmVwRDA"; 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 45n2MZ0HLpz9sDQ for ; Mon, 15 Jul 2019 09:05:59 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 19068203A2; Sun, 14 Jul 2019 23:05:57 +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 2qD9tFY9iyhK; Sun, 14 Jul 2019 23:05:55 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 561512048C; Sun, 14 Jul 2019 23:05:55 +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 3BB801BF3F9 for ; Sun, 14 Jul 2019 23:05:54 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 3898685478 for ; Sun, 14 Jul 2019 23:05:54 +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 Hld4KBuPvh6U for ; Sun, 14 Jul 2019 23:05:53 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com [209.85.128.49]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 3D99F85466 for ; Sun, 14 Jul 2019 23:05:53 +0000 (UTC) Received: by mail-wm1-f49.google.com with SMTP id v15so13345312wml.0 for ; Sun, 14 Jul 2019 16:05:53 -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:mime-version :content-transfer-encoding; bh=r1fieXzHNFLOBYxWi7jAJk2g1mYX2TTce40jkbxvaEs=; b=GpmVwRDAqoIe5hu5d5QUDkIE+bDq7IB3gLoBwAr05/+edgr3SYztCToW4Ik6zP7iBz dAATuMSafijgSLuJHwzS2g1IAIRyYZowLAqfhhuEuTQ5dumP+MkjM2ABMrtQ3OBTd+/N +dJWeZjjGfE6HENIc0bYrwgOEgIbCD4H2kJK1zRaQ4B2frG6R3+dhv8oY4k6NUXCvOSt sf5S3Ml5nugrTn7QALUgTn5BNVemHpUHxm69LgoCH8l5Z+RlorTWUvA1c0y3gsklSAO+ kRUqp0HvEVr2XHIb0bktAX2s9PMA90DSh3kdEHntuCJT+nVGCjErTUWABbGVHcTqisbY HCdw== 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:mime-version :content-transfer-encoding; bh=r1fieXzHNFLOBYxWi7jAJk2g1mYX2TTce40jkbxvaEs=; b=uHwdh29NGzCVfuf+7faOVHBDQ9eB7zG42HE3+QhYtaPGJxHk1Hwz82xP+trInpBMgk eEeH7lkgTdyrY46QKyDyNAKTw6//U5eMx7X488eRrjRx5gbyaditOieFD3u7JYL5896l ek6RMKnl1Axk6PszuT4tMYOm7S3dJhy3+TYTrBvl7dvZoORMCp52NYpsMfViE17HpKHQ qJODmY6TQxYSozs0x2EXFtUoKtFyaYsfrcesZQwZ/Puj8L8+DheKRnr5ijTIikYUu84X GhG6g0tiZHPPTXe4YVjue8ejyu10KFh3mXakZOikX/QAf24HxKB8yfMnguw1GY7djQcA Y4YQ== X-Gm-Message-State: APjAAAW2wZgeJHuOKbPLKt73mzn4WHo773SK0/pR3b/XbrEY7In4UlhJ 5v7ABv5ZAqPqdcUK4+k98WyuGEZI X-Google-Smtp-Source: APXvYqz+JuCBFzC7vF8Q6VojSHjV/mw2hruFRDhSXyunmubcDdj03PG2OVfSoUxXzM0LG4VPwcYkDg== X-Received: by 2002:a7b:c776:: with SMTP id x22mr20316286wmk.55.1563145551506; Sun, 14 Jul 2019 16:05:51 -0700 (PDT) Received: from kali.home (lfbn-ren-1-605-248.w81-53.abo.wanadoo.fr. [81.53.181.248]) by smtp.gmail.com with ESMTPSA id c3sm15679095wrx.19.2019.07.14.16.05.50 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sun, 14 Jul 2019 16:05:50 -0700 (PDT) From: Fabrice Fontaine To: buildroot@buildroot.org Date: Mon, 15 Jul 2019 01:06:02 +0200 Message-Id: <20190714230602.8861-1-fontaine.fabrice@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/1] package/socketcand: fix build with kernel >= 5.2 X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fabrice Fontaine Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Fixes: - http://autobuild.buildroot.org/results/3112b1ad77e805cd3ca61bb79560e8e13a466589 Signed-off-by: Fabrice Fontaine Reviewed-by: Yegor Yefremov --- ...o-find-SIOCGSTAMP-with-latest-kernel.patch | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 package/socketcand/0001-fix-include-to-find-SIOCGSTAMP-with-latest-kernel.patch diff --git a/package/socketcand/0001-fix-include-to-find-SIOCGSTAMP-with-latest-kernel.patch b/package/socketcand/0001-fix-include-to-find-SIOCGSTAMP-with-latest-kernel.patch new file mode 100644 index 0000000000..5e7554733e --- /dev/null +++ b/package/socketcand/0001-fix-include-to-find-SIOCGSTAMP-with-latest-kernel.patch @@ -0,0 +1,54 @@ +From e6f21b0cd5a449c1bf7a4d2c6bc5ad278a2d4e8e Mon Sep 17 00:00:00 2001 +From: Fabrice Fontaine +Date: Mon, 15 Jul 2019 01:01:34 +0200 +Subject: [PATCH] fix include to find SIOCGSTAMP with latest kernel + +In linux kernel commit 0768e17073dc527ccd18ed5f96ce85f9985e9115 +the asm-generic/sockios.h header no longer defines SIOCGSTAMP. +Instead it provides only SIOCGSTAMP_OLD. + +The linux/sockios.h header now defines SIOCGSTAMP using either +SIOCGSTAMP_OLD or SIOCGSTAMP_NEW as appropriate. This linux only +header file is not pulled so we get a build failure. + +./state_bcm.c: In function 'state_bcm': +./state_bcm.c:91:16: error: 'SIOCGSTAMP' undeclared (first use in this function); did you mean 'SIOCGARP'? + if(ioctl(sc, SIOCGSTAMP, &tv) < 0) { + +Fixes: + - http://autobuild.buildroot.org/results/3112b1ad77e805cd3ca61bb79560e8e13a466589 + +Signed-off-by: Fabrice Fontaine +[Upstream status: https://github.com/dschanoeh/socketcand/pull/26] +--- + state_bcm.c | 1 + + state_isotp.c | 1 + + 2 files changed, 2 insertions(+) + +diff --git a/state_bcm.c b/state_bcm.c +index 0c980fa..d6bdd7e 100644 +--- a/state_bcm.c ++++ b/state_bcm.c +@@ -21,6 +21,7 @@ + #include + #include + #include ++#include + + #define RXLEN 128 + +diff --git a/state_isotp.c b/state_isotp.c +index 4005f94..7b515e7 100644 +--- a/state_isotp.c ++++ b/state_isotp.c +@@ -20,6 +20,7 @@ + #include + #include + #include ++#include + + int si = -1; + fd_set readfds; +-- +2.20.1 +