From patchwork Mon Mar 23 07:48:28 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Fontaine X-Patchwork-Id: 1259887 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.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.a=rsa-sha256 header.s=20161025 header.b=UVwxhcJ1; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48m60n4js8z9sR4 for ; Mon, 23 Mar 2020 18:47:19 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 6BA7D86A9E; Mon, 23 Mar 2020 07:47:16 +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 QFoaE40qHOC5; Mon, 23 Mar 2020 07:47:15 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id EE359869E4; Mon, 23 Mar 2020 07:47:14 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 656261BF2C9 for ; Mon, 23 Mar 2020 07:47:14 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 5ED89203E3 for ; Mon, 23 Mar 2020 07:47:14 +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 rf4FBLyeXCVF for ; Mon, 23 Mar 2020 07:47:13 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f66.google.com (mail-wr1-f66.google.com [209.85.221.66]) by silver.osuosl.org (Postfix) with ESMTPS id 5B3E6203B4 for ; Mon, 23 Mar 2020 07:47:13 +0000 (UTC) Received: by mail-wr1-f66.google.com with SMTP id t7so10933081wrw.12 for ; Mon, 23 Mar 2020 00:47:13 -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=lnxaRQzqXtoTFyhtTwtNISxnq0wLSijtWEXb0uOPajo=; b=UVwxhcJ1+RoA/kdznC20tKi5PLEZg4JBE/2ELFYgKtLO6Bjmx2Xv8NcH3QZJ2VGKB9 9k0pZSa0WfD3Saikl/Eug3oGrsf4t3It8kEN2Qhl2ZeoTqDXjHZfK4OEMDoFCReUdmkb qHgnSN3/lIF43air6zHzUMuUnlYwQP1Glu9Vpq1AjGv1rxBDrXYBUM82kU4Px7tD9+eT H71aoPFC7WnoRvBRiR4k4xSBgZbmfo7qJtaSwEeMOZuHxmuKPfZHsdW0yxFgBI5CY5yI QxtXCoVjsE8XZIsw2qSRr6Qqla1jrshzBJoFe52IAunRip6s20nNtPXsAx7I4Jph9k+M kmgA== 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=lnxaRQzqXtoTFyhtTwtNISxnq0wLSijtWEXb0uOPajo=; b=ud9/5WYc4bFlmO65KGekED1SCUJdiiW6hPDqeXKpTko2RjPN6turComw3u0kHpjFPh 4wJg189dS3hA7db0cIb/fitm9Z6SBSeDezxIqqVfUWiK32k96m01c9QqQdHqb2O/s/yX BFktV+dULZ3AfeVNU+PROUJnHqxcH6Rs0nbRordy0wtVnVo0UgUzd89uZt5DoDKF52Ah oqwaR+hT+9dTi5w6QVIugE4d89GUBkmY8BiBVJgqXBZ0PmKawEsBEZpbco4On0pCkHwt DtaeBy9mx/bvap8L6MhrSIhJ9cRncTHPzP+h6lLXhK3ezp299aPai5UvnAFyDhComQxO RyWw== X-Gm-Message-State: ANhLgQ3MgTBxykpmlr1a5DHzPU48QYUL2KqfGGITkwE5jMgmLU+c4kZF 52vcvHKH+ysY0U1jrdqwkS+X1AcK X-Google-Smtp-Source: ADFU+vsg8PWaMOMzR00ZcURQ890Jlb2AvZI6TulMe6fEmMhv1ysFjji0TMW4op7kX/1g78KVnezfCw== X-Received: by 2002:adf:e611:: with SMTP id p17mr27801326wrm.212.1584949631426; Mon, 23 Mar 2020 00:47:11 -0700 (PDT) Received: from kali.home (lfbn-ren-1-403-35.w2-10.abo.wanadoo.fr. [2.10.23.35]) by smtp.gmail.com with ESMTPSA id 195sm20544481wmb.8.2020.03.23.00.47.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Mar 2020 00:47:10 -0700 (PDT) From: Fabrice Fontaine To: buildroot@buildroot.org Date: Mon, 23 Mar 2020 08:48:28 +0100 Message-Id: <20200323074828.44084-1-fontaine.fabrice@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/1] package/tslib: fix build with headers < 4.16 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: Martin Kepplinger , Fabrice Fontaine Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Commit fedaa28079489b308f77d80a0cac8698d776df23 fixed build with headers >= 4.16 but as a side effect, build with headers < 4.16 is now failing so add an upstream patch Fixes: - http://autobuild.buildroot.org/results/594cd1a0d9e6286eca62b575fd1ba2d3a5e01234 Signed-off-by: Fabrice Fontaine --- ...-with-input_event_sec-for-old-kernel.patch | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 package/tslib/0002-Fix-build-error-with-input_event_sec-for-old-kernel.patch diff --git a/package/tslib/0002-Fix-build-error-with-input_event_sec-for-old-kernel.patch b/package/tslib/0002-Fix-build-error-with-input_event_sec-for-old-kernel.patch new file mode 100644 index 0000000000..5dca3a009c --- /dev/null +++ b/package/tslib/0002-Fix-build-error-with-input_event_sec-for-old-kernel.patch @@ -0,0 +1,28 @@ +From 050bf24c16e95f63a76e13156346a072035d45b4 Mon Sep 17 00:00:00 2001 +From: Evan Harvey +Date: Thu, 19 Mar 2020 01:32:03 -0700 +Subject: [PATCH] Fix build error with input_event_sec for old kernel + +[Retrieved from: +https://github.com/libts/tslib/commit/050bf24c16e95f63a76e13156346a072035d45b4] +Signed-off-by: Fabrice Fontaine +--- + tools/ts_uinput.c | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/tools/ts_uinput.c b/tools/ts_uinput.c +index 1832a07..9c40bb3 100644 +--- a/tools/ts_uinput.c ++++ b/tools/ts_uinput.c +@@ -51,6 +51,11 @@ + #include + #endif + ++#ifndef input_event_sec ++#define input_event_sec time.tv_sec ++#define input_event_usec time.tv_usec ++#endif ++ + #define RESET "\033[0m" + #define RED "\033[31m" + #define GREEN "\033[32m"