Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package evtest for openSUSE:Factory checked in at 2024-01-15 22:20:27 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/evtest (Old) and /work/SRC/openSUSE:Factory/.evtest.new.21961 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "evtest" Mon Jan 15 22:20:27 2024 rev:6 rq:1138789 version:1.35 Changes: -------- --- /work/SRC/openSUSE:Factory/evtest/evtest.changes 2020-10-10 19:04:18.292481913 +0200 +++ /work/SRC/openSUSE:Factory/.evtest.new.21961/evtest.changes 2024-01-15 22:20:54.290539328 +0100 @@ -1,0 +2,13 @@ +Mon Jan 15 08:03:24 UTC 2024 - Andrea Manzini <andrea.manz...@suse.com> + +- Update to version 1.35 + * Add BTN_STYLUS3 to key names + * reformat README as Markdown + * internal build / compilation improvements + +- removed patches as already included in upstream: + * 0001-Add-missing-limits.h-include.patch + * 0002-Fix-build-on-32bit-arches-with-64bit-time_t.patch + + +------------------------------------------------------------------- Old: ---- 0001-Add-missing-limits.h-include.patch 0002-Fix-build-on-32bit-arches-with-64bit-time_t.patch evtest-evtest-1.34.tar.gz New: ---- evtest-evtest-1.35.tar.gz BETA DEBUG BEGIN: Old:- removed patches as already included in upstream: * 0001-Add-missing-limits.h-include.patch * 0002-Fix-build-on-32bit-arches-with-64bit-time_t.patch Old: * 0001-Add-missing-limits.h-include.patch * 0002-Fix-build-on-32bit-arches-with-64bit-time_t.patch BETA DEBUG END: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ evtest.spec ++++++ --- /var/tmp/diff_new_pack.drsbio/_old 2024-01-15 22:20:55.030566525 +0100 +++ /var/tmp/diff_new_pack.drsbio/_new 2024-01-15 22:20:55.034566672 +0100 @@ -1,7 +1,7 @@ # # spec file for package evtest # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,15 +17,13 @@ Name: evtest -Version: 1.34 +Version: 1.35 Release: 0 Summary: Input device event monitor and query tool License: GPL-2.0-or-later Group: Hardware/Other 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 ++++++ evtest-evtest-1.34.tar.gz -> evtest-evtest-1.35.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/evtest-evtest-1.34/.gitlab-ci.yml new/evtest-evtest-1.35/.gitlab-ci.yml --- old/evtest-evtest-1.34/.gitlab-ci.yml 1970-01-01 01:00:00.000000000 +0100 +++ new/evtest-evtest-1.35/.gitlab-ci.yml 2022-05-18 20:52:49.000000000 +0200 @@ -0,0 +1,77 @@ +# vim: set expandtab shiftwidth=2 tabstop=8 textwidth=0 filetype=yaml: +# +# This CI uses the freedesktop.org ci-templates. +# Please see the ci-templates documentation for details: +# https://freedesktop.pages.freedesktop.org/ci-templates/ + +.templates_sha: &template_sha c7702b1ae8507c5d5f34edcbf280f287ab541e8e # see https://docs.gitlab.com/ee/ci/yaml/#includefile + + +include: + # Alpine container builder template + - project: 'freedesktop/ci-templates' + ref: *template_sha + file: '/templates/alpine.yml' + + +stages: + - prep # prep work like rebuilding the container images if there is a change + - build # for actually building and testing things in a container + - deploy + + +variables: + FDO_UPSTREAM_REPO: 'libevdev/evtest' + # The tag should be updated each time the list of packages is updated. + # Changing a tag forces the associated image to be rebuilt. + # Note: the tag has no meaning, we use a date format purely for readability + ALPINE_TAG: '2020-11-16.0' + ALPINE_PACKAGES: 'git gcc autoconf automake make libc-dev linux-headers gzip xmlto asciidoc' + +# +# Build a container with the given tag and the packages pre-installed. +# This only happens if when the tag changes, otherwise the existing image is +# re-used. +# +container-prep: + extends: + - .fdo.container-build@alpine + stage: prep + variables: + GIT_STRATEGY: none + FDO_DISTRIBUTION_PACKAGES: $ALPINE_PACKAGES + FDO_DISTRIBUTION_TAG: $ALPINE_TAG + + +# +# The default build, runs on the image built above. +# +build-autotools: + stage: build + extends: + - .fdo.distribution-image@alpine + script: + - autoreconf -ivf + - mkdir _builddir + - pushd _builddir > /dev/null + - ../configure --disable-silent-rules + - make + - make check + - make distcheck + - popd > /dev/null + variables: + FDO_DISTRIBUTION_TAG: $ALPINE_TAG + + +# +# Pure gcc build, runs on the image built above. +# +compile-only: + stage: build + extends: + - .fdo.distribution-image@alpine + script: + - gcc -o evtest evtest.c + variables: + FDO_DISTRIBUTION_TAG: $ALPINE_TAG + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/evtest-evtest-1.34/INSTALL new/evtest-evtest-1.35/INSTALL --- old/evtest-evtest-1.34/INSTALL 2019-08-02 20:14:30.000000000 +0200 +++ new/evtest-evtest-1.35/INSTALL 2022-05-18 20:52:49.000000000 +0200 @@ -9,7 +9,6 @@ $> make install Adjust the prefix as necessary, on most distributions /usr is fine. -evtest itself has no requirements other than the C compiler, if you need -evtest-capture, install the libxml-2.0 development files. +evtest itself has no requirements other than the C compiler. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/evtest-evtest-1.34/README new/evtest-evtest-1.35/README --- old/evtest-evtest-1.34/README 2019-08-02 20:14:30.000000000 +0200 +++ new/evtest-evtest-1.35/README 1970-01-01 01:00:00.000000000 +0100 @@ -1,19 +0,0 @@ -Summary -======= -evtest is a tool to print evdev kernel events. It reads directly from the -kernel device and prints a device description and the events with the value -and the symbolic name. - -Usage: - evtest /dev/input/event0 - -Note: in most cases evtest needs to run as root to be able to read the -devices. - -For more information, see the evtest(1) man page. - - -Development -========== -Please send patches to input-to...@lists.freedesktop.org -http://lists.freedesktop.org/mailman/listinfo/input-tools diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/evtest-evtest-1.34/README.md new/evtest-evtest-1.35/README.md --- old/evtest-evtest-1.34/README.md 1970-01-01 01:00:00.000000000 +0100 +++ new/evtest-evtest-1.35/README.md 2022-05-18 20:52:49.000000000 +0200 @@ -0,0 +1,21 @@ +evtest â Kernel input device debugging +====================================== + +evtest is a tool to print evdev kernel events. It reads directly from the +kernel device and prints a device description and the events with the value +and the symbolic name. + +Usage: + + evtest /dev/input/event0 + +Note: in most cases evtest needs to run as root to be able to read the +devices. + +For more information, see the evtest(1) man page. + +Development +========== + +Please send patches as merge requests on the GitLab repository: +https://gitlab.freedesktop.org/libevdev/evtest diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/evtest-evtest-1.34/configure.ac new/evtest-evtest-1.35/configure.ac --- old/evtest-evtest-1.34/configure.ac 2019-08-02 20:14:30.000000000 +0200 +++ new/evtest-evtest-1.35/configure.ac 2022-05-18 20:52:49.000000000 +0200 @@ -1,17 +1,10 @@ AC_PREREQ([2.57]) -AC_INIT(evtest,[1.34], [https://gitlab.freedesktop.org/libevdev/evtest/issues], evtest) +AC_INIT(evtest,[1.35], [https://gitlab.freedesktop.org/libevdev/evtest/issues], evtest) AM_INIT_AUTOMAKE([foreign dist-bzip2]) AC_CONFIG_HEADERS(config.h) AC_PROG_CC AC_PROG_INSTALL -PKG_PROG_PKG_CONFIG - -AC_PATH_PROG(XSLTPROC, [xsltproc]) -AM_CONDITIONAL([HAVE_XSLTPROC], [test "x$XSLTPROC" != "x"]) -if test "x$XSLTPROC" = "x"; then - AC_MSG_WARN([xsltproc not found, needed to generate devices.]) -fi AC_ARG_VAR([XMLTO], [Path to xmlto command]) AC_PATH_PROG([XMLTO], [xmlto]) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/evtest-evtest-1.34/evtest.c new/evtest-evtest-1.35/evtest.c --- old/evtest-evtest-1.34/evtest.c 2019-08-02 20:14:30.000000000 +0200 +++ new/evtest-evtest-1.35/evtest.c 2022-05-18 20:52:49.000000000 +0200 @@ -43,22 +43,25 @@ #include <config.h> #endif -#include <linux/version.h> #include <linux/input.h> #include <string.h> #include <fcntl.h> #include <unistd.h> -#include <stdio.h> #include <stdlib.h> #include <dirent.h> #include <errno.h> #include <getopt.h> #include <ctype.h> #include <signal.h> +#include <limits.h> #include <sys/time.h> #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) @@ -105,6 +108,7 @@ }; static int grab_flag = 0; +static char* progname; static volatile sig_atomic_t stop = 0; static void interrupt_handler(int sig) @@ -522,6 +526,9 @@ NAME_ELEMENT(BTN_TOOL_BRUSH), NAME_ELEMENT(BTN_TOOL_PENCIL), NAME_ELEMENT(BTN_TOOL_AIRBRUSH), NAME_ELEMENT(BTN_TOOL_FINGER), NAME_ELEMENT(BTN_TOOL_MOUSE), NAME_ELEMENT(BTN_TOOL_LENS), +#ifdef BTN_STYLUS3 + NAME_ELEMENT(BTN_STYLUS3), +#endif NAME_ELEMENT(BTN_TOUCH), NAME_ELEMENT(BTN_STYLUS), NAME_ELEMENT(BTN_STYLUS2), NAME_ELEMENT(BTN_TOOL_DOUBLETAP), NAME_ELEMENT(BTN_TOOL_TRIPLETAP), @@ -875,7 +882,7 @@ char *filename; int max_device = 0; - ndev = scandir(DEV_INPUT_EVENT, &namelist, is_event_device, versionsort); + ndev = scandir(DEV_INPUT_EVENT, &namelist, is_event_device, alphasort); if (ndev <= 0) return NULL; @@ -883,7 +890,7 @@ for (i = 0; i < ndev; i++) { - char fname[PATH_MAX]; + char fname[4096]; int fd = -1; char name[256] = "???"; @@ -923,7 +930,7 @@ #ifndef PACKAGE_VERSION #define PACKAGE_VERSION "<version undefined>" #endif - printf("%s %s\n", program_invocation_short_name, PACKAGE_VERSION); + printf("%s %s\n", progname, PACKAGE_VERSION); return EXIT_SUCCESS; } @@ -935,12 +942,11 @@ { printf("USAGE:\n"); printf(" Capture mode:\n"); - printf(" %s [--grab] /dev/input/eventX\n", program_invocation_short_name); + printf(" %s [--grab] /dev/input/eventX\n", progname); printf(" --grab grab the device for exclusive access\n"); printf("\n"); printf(" Query mode: (check exit code)\n"); - printf(" %s --query /dev/input/eventX <type> <value>\n", - program_invocation_short_name); + printf(" %s --query /dev/input/eventX <type> <value>\n", progname); printf("\n"); printf("<type> is one of: EV_KEY, EV_SW, EV_LED, EV_SND\n"); @@ -1139,7 +1145,7 @@ 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) @@ -1242,8 +1248,10 @@ printf("***********************************************\n"); } - signal(SIGINT, interrupt_handler); - signal(SIGTERM, interrupt_handler); + if (grab_flag) { + signal(SIGINT, interrupt_handler); + signal(SIGTERM, interrupt_handler); + } free(filename); @@ -1340,6 +1348,8 @@ const char *event_type; enum evtest_mode mode = MODE_CAPTURE; + progname = argv[0]; + while (1) { int option_index = 0; int c = getopt_long(argc, argv, "", long_options, &option_index);