From patchwork Sun Dec 1 18:46:16 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 180544 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp4275677ile; Sun, 1 Dec 2019 10:47:33 -0800 (PST) X-Google-Smtp-Source: APXvYqwJC17HNJ31jJ7urNTJ9dHLJbrv8k8qfmX2+9VvW4DQlsvuGXvirr43AY2vDIeIh8W3Ln0w X-Received: by 2002:a17:902:8f96:: with SMTP id z22mr11585914plo.11.1575226053576; Sun, 01 Dec 2019 10:47:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575226053; cv=none; d=google.com; s=arc-20160816; b=KqILh4LRZmhX1YBRyR2WC8sbeTKzzpjSd6H25SD1F/gUz6Zo38rEUYl501H0Fqv3Fh 9q18zXzuOtvEz49yMWTHBIY/qE/K9osUCIHA5PrgH0ecCTRPKyWbPp/PxIABok3i25nL rhblY1IeO26pOCTfKuRioCkf41Jeh4Uj+2LRQt6bfD/4nF9Vc7nTeei2Tqn9PKqsFhcZ hCLxcvJW2KSNYpl3IfF9FbALqElhkpKZarIlHh5FCOPl7HqtxZIzTPvq7abioxTHahfK PSa3FN2AKHYDnuatOuBlzlz1b/mgPtI2wSZjkwLb9gOJ3McBxiM1BUkVqvCe4+PhyD7c vTUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature:delivered-to; bh=9f9Hbh3+ACXGrs5C+5JTMMckJ5icItP/bzl9zN/fH+k=; b=YLFg/mO9q675CowYgX/RpHOUqKzzngW4nv9l1rn0LJ4ddZh39y0ZWSk9ItYZRudluu gU/OOFHNG/89GLVvpr+quXSVoJkB+iTj8Q2ZkiDx5NsuxO5A3NOX+4K6BP1UNVCwlk2b iGcnB1omMrVsAU3ys1WQVOpVAgVL4v8iXk+DBvVzpvUGwZRWyIHNmY7hc546QGeTRjJq eeaEn3+Y2fgI5qmh/wOuNCzeTLkGuhc1tK/UhI3WwjDegmswICbQGP8wjQMpo4kH4iSV Lq6qW+YsYZJduQIW5HRlqKTtCARQaXfy9SSUl0gxwpglRjKP2gAkpTcFYk7MUrdQuAE1 unRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=OZEr+DKE; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id h3si29020182pfb.86.2019.12.01.10.47.33; Sun, 01 Dec 2019 10:47:33 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of openembedded-devel-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 header.s=20161025 header.b=OZEr+DKE; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 36CFD7F59D; Sun, 1 Dec 2019 18:47:25 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pf1-f195.google.com (mail-pf1-f195.google.com [209.85.210.195]) by mail.openembedded.org (Postfix) with ESMTP id CD00B6BE2A for ; Sun, 1 Dec 2019 18:46:35 +0000 (UTC) Received: by mail-pf1-f195.google.com with SMTP id h14so7142076pfe.10 for ; Sun, 01 Dec 2019 10:46:37 -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 :mime-version:content-transfer-encoding; bh=DKzpBKto+y5qke9BVQ46RJGj5KykD/d49l7RpIbPLzw=; b=OZEr+DKEv0x7HuNdNhKMxE3faGTYKLTNk3CvPov9ZcVgJZlQc33uAyxfb8ftjSCtm1 ag1e8EwC9L8L9uKMOpJnH/H+Q7j8MQ7BSEIU4fkOKfDT29VqYW1O8fIMF1cHF0CRa/kg 4nFZ6F52Z5SXqlQEoz5ulM99LbEf0Rqa08xb3UAlO0QZDO+fTQioCn7T/XL0r8XnXtvG HWHVtuRWkj0JkqQZIo0yQ+TKy3WGH+ZegjiUs7OMNb3gr9uY3Ob4+wtWGaXkQsJDOC2B og3U357Ft/TplBOsQniJKVgcjW8xn/wNuFTLiNwbIbUGJ15VpOak8rDFAbAspPyn0Jvq gZhA== 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:mime-version:content-transfer-encoding; bh=DKzpBKto+y5qke9BVQ46RJGj5KykD/d49l7RpIbPLzw=; b=a3nLwH2KcHmY1DiM2KO6zQ6kLffqo7iWQq0BFKLPiAJ3FAz4EqT91gKoP6exwShA0C b+O0yJFFYhimFR9Y4CletH4hvNXBnX2xVoUw53BUkUEwQvHocKv3xvL5EHjDBkmvlZLx TciUOCh7f1p/QmysuYIZPg9xExbxh4PHHtrO7BDOUDy6QIhe+Ro9oSieiNcxnX/Llums wn8cxk3hdIJUjMuLZ26T7MCW4wUI3bbhNCwOddannKpY/iRsJURv8lVqGfhiY4d/VXoc O+EY32TuaQj5DC3imztJyVRVkjLU2mRmPu2Yv8CyncNNWr7z0ysl8NfA27JRDru2rUFJ T8yQ== X-Gm-Message-State: APjAAAXB89tTQzSlzZ6v9q32W9XQ0mIXD7W5w2GqyS4q0GD0TwwVVqXv S3u0Polt1UnQAqqEh7JhNcQehBSEUfg= X-Received: by 2002:a63:a511:: with SMTP id n17mr27337132pgf.338.1575225996403; Sun, 01 Dec 2019 10:46:36 -0800 (PST) Received: from apollo.localdomain ([2601:646:8500:1c20:55f2:e19b:8d5e:a884]) by smtp.gmail.com with ESMTPSA id y24sm33916800pfr.116.2019.12.01.10.46.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 01 Dec 2019 10:46:35 -0800 (PST) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Sun, 1 Dec 2019 10:46:16 -0800 Message-Id: <20191201184622.889513-3-raj.khem@gmail.com> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191201184622.889513-1-raj.khem@gmail.com> References: <20191201184622.889513-1-raj.khem@gmail.com> MIME-Version: 1.0 Subject: [oe] [meta-oe][PATCH 3/9] evtest: Fix build for 32bit arches with 64bit time_t X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org Signed-off-by: Khem Raj --- ...ld-on-32bit-arches-with-64bit-time_t.patch | 41 +++++++++++++++++++ meta-oe/recipes-test/evtest/evtest_1.34.bb | 6 ++- 2 files changed, 45 insertions(+), 2 deletions(-) create mode 100644 meta-oe/recipes-test/evtest/evtest/0001-Fix-build-on-32bit-arches-with-64bit-time_t.patch -- 2.24.0 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-oe/recipes-test/evtest/evtest/0001-Fix-build-on-32bit-arches-with-64bit-time_t.patch b/meta-oe/recipes-test/evtest/evtest/0001-Fix-build-on-32bit-arches-with-64bit-time_t.patch new file mode 100644 index 0000000000..706322d565 --- /dev/null +++ b/meta-oe/recipes-test/evtest/evtest/0001-Fix-build-on-32bit-arches-with-64bit-time_t.patch @@ -0,0 +1,41 @@ +From fa57c78c33d26084f85f1a6b4c29378631dc9395 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Sat, 30 Nov 2019 11:58:58 -0800 +Subject: [PATCH] Fix build on 32bit arches with 64bit time_t + +time element is deprecated on new input_event structure in kernel's +input.h [1] + +[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit?id=152194fe9c3f + +Upstream-Status: Submitted [https://gitlab.freedesktop.org/libevdev/evtest/merge_requests/6] +Signed-off-by: Khem Raj +--- + evtest.c | 7 ++++++- + 1 file changed, 6 insertions(+), 1 deletion(-) + +diff --git a/evtest.c b/evtest.c +index 548c203..93063cd 100644 +--- a/evtest.c ++++ b/evtest.c +@@ -61,6 +61,11 @@ + #include + #include + ++#ifndef input_event_sec ++#define input_event_sec time.tv_sec ++#define input_event_usec time.tv_usec ++#endif ++ + #define BITS_PER_LONG (sizeof(long) * 8) + #define NBITS(x) ((((x)-1)/BITS_PER_LONG)+1) + #define OFF(x) ((x)%BITS_PER_LONG) +@@ -1140,7 +1145,7 @@ static int print_events(int fd) + type = ev[i].type; + code = ev[i].code; + +- printf("Event: time %ld.%06ld, ", ev[i].time.tv_sec, ev[i].time.tv_usec); ++ printf("Event: time %ld.%06ld, ", ev[i].input_event_sec, ev[i].input_event_sec); + + if (type == EV_SYN) { + if (code == SYN_MT_REPORT) diff --git a/meta-oe/recipes-test/evtest/evtest_1.34.bb b/meta-oe/recipes-test/evtest/evtest_1.34.bb index 3b6dc61408..a3a23c8951 100644 --- a/meta-oe/recipes-test/evtest/evtest_1.34.bb +++ b/meta-oe/recipes-test/evtest/evtest_1.34.bb @@ -8,8 +8,10 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" DEPENDS = "libxml2" SRCREV = "16e5104127a620686bdddc4a9ad62881134d6c69" -SRC_URI = "git://anongit.freedesktop.org/evtest;protocol=git \ - file://add_missing_limits_h_include.patch" +SRC_URI = "git://gitlab.freedesktop.org/libevdev/evtest.git;protocol=https \ + file://add_missing_limits_h_include.patch \ + file://0001-Fix-build-on-32bit-arches-with-64bit-time_t.patch \ + " S = "${WORKDIR}/git"