Hello community,

here is the log from the commit of package evtest for openSUSE:Factory checked 
in at 2020-10-10 19:04:07
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/evtest (Old)
 and      /work/SRC/openSUSE:Factory/.evtest.new.4249 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "evtest"

Sat Oct 10 19:04:07 2020 rev:5 rq:840475 version:1.34

Changes:
--------
--- /work/SRC/openSUSE:Factory/evtest/evtest.changes    2015-08-21 
07:40:50.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.evtest.new.4249/evtest.changes  2020-10-10 
19:04:18.292481913 +0200
@@ -1,0 +2,19 @@
+Fri Oct  9 13:57:05 UTC 2020 - Michal Suchanek <msucha...@suse.com>
+
+- Fix project and download URL.
+
+-------------------------------------------------------------------
+Fri Oct  9 10:55:15 UTC 2020 - Petr Vorel <pvo...@suse.cz>
+
+- Update to version 1.34
+  (mostly updates to keepup with kernel API changes and build fixes)
+
+- Add 2 patches fixing build
+  * 0001-Add-missing-limits.h-include.patch
+  * 0002-Fix-build-on-32bit-arches-with-64bit-time_t.patch
+
+- Upstream archive renamed, follow it
+- Use %autosetup
+- Use %license
+
+-------------------------------------------------------------------

Old:
----
  evtest-1.33.tar.gz

New:
----
  0001-Add-missing-limits.h-include.patch
  0002-Fix-build-on-32bit-arches-with-64bit-time_t.patch
  evtest-evtest-1.34.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ evtest.spec ++++++
--- /var/tmp/diff_new_pack.VjlPgj/_old  2020-10-10 19:04:19.968482789 +0200
+++ /var/tmp/diff_new_pack.VjlPgj/_new  2020-10-10 19:04:19.972482790 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package evtest
 #
-# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,20 +12,20 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
+
 Name:           evtest
-Version:        1.33
+Version:        1.34
 Release:        0
 Summary:        Input device event monitor and query tool
-License:        GPL-2.0+
+License:        GPL-2.0-or-later
 Group:          Hardware/Other
-Url:            http://cgit.freedesktop.org/evtest
-# Full url is 
http://cgit.freedesktop.org/evtest/snapshot/%%{name}-%%{version}.tar.gz
-# Every time source package is downloaded, there is different timestamp in the 
gzip header.
-# This makes the factory-auto decline SR, because of "Source URLs are not 
valid".
-Source0:        %{name}-%{version}.tar.gz
+URL:            https://gitlab.freedesktop.org/libevdev/evtest/
+Source:         
https://gitlab.freedesktop.org/libevdev/%{name}/-/archive/%{name}-%{version}/%{name}-%{name}-%{version}.tar.gz
+Patch1:         0001-Add-missing-limits.h-include.patch
+Patch2:         0002-Fix-build-on-32bit-arches-with-64bit-time_t.patch
 BuildRequires:  asciidoc
 BuildRequires:  autoconf
 BuildRequires:  automake
@@ -42,7 +42,7 @@
 and displays all the events layer events generated.
 
 %prep
-%setup -q
+%autosetup -p1 -n %{name}-%{name}-%{version}
 
 %build
 autoreconf --install
@@ -54,7 +54,7 @@
 
 %files
 %defattr(-,root,root)
-%doc COPYING
+%license COPYING
 %{_bindir}/evtest
 %doc %{_mandir}/man1/evtest*
 

++++++ 0001-Add-missing-limits.h-include.patch ++++++
>From 5eb4ab1c139ea38ebe6bb4acba08b09ee7d77d3c Mon Sep 17 00:00:00 2001
From: Baruch Siach <bar...@tkos.co.il>
Date: Sun, 18 Aug 2019 10:01:06 +0300
Subject: [PATCH] Add missing limits.h include
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Fixes build with musl libc that does not include limits.h indirectly via
other headers.

evtest.c: In function ‘scan_devices’:
evtest.c:886:14: error: ‘PATH_MAX’ undeclared (first use in this function); did 
you mean  INT8_MAX’?
   char fname[PATH_MAX];
              ^~~~~~~~

Signed-off-by: Baruch Siach <bar...@tkos.co.il>
Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net>
Signed-off-by: Petr Vorel <pvo...@suse.cz>
[ Upstream status: 5eb4ab1c139ea38ebe6bb4acba08b09ee7d77d3c ]
---
 evtest.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/evtest.c b/evtest.c
index 37d4f85..548c203 100644
--- a/evtest.c
+++ b/evtest.c
@@ -56,6 +56,7 @@
 #include <getopt.h>
 #include <ctype.h>
 #include <signal.h>
+#include <limits.h>
 #include <sys/time.h>
 #include <sys/types.h>
 #include <unistd.h>
-- 
2.28.0

++++++ 0002-Fix-build-on-32bit-arches-with-64bit-time_t.patch ++++++
>From 648f5c1a9e07843e185782d207bc1bcbe6586f6e Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.k...@gmail.com>
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

Signed-off-by: Khem Raj <raj.k...@gmail.com>
Signed-off-by: Petr Vorel <pvo...@suse.cz>
[ Upstream status: 648f5c1a9e07843e185782d207bc1bcbe6586f6e ]
---
 evtest.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/evtest.c b/evtest.c
index 548c203..8d592f4 100644
--- a/evtest.c
+++ b/evtest.c
@@ -61,6 +61,11 @@
 #include <sys/types.h>
 #include <unistd.h>
 
+#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_usec);
 
                        if (type == EV_SYN) {
                                if (code == SYN_MT_REPORT)

Reply via email to