platform/upstream/libevdev.git
3 years agopackaging: Bump up to 1.10.0 accepted/tizen_6.5_unified sandbox/jeon/upgrade tizen_6.5 tizen_bkup_20220207 accepted/tizen/6.5/unified/20211029.013533 accepted/tizen/unified/20210111.024905 submit/tizen/20210107.083851 submit/tizen_6.5/20211028.163501 tizen_6.5.m2_release
jeon [Wed, 6 Jan 2021 07:00:34 +0000 (16:00 +0900)]
packaging: Bump up to 1.10.0

3 years agopackaging: Bump up to 1.8.0
jeon [Fri, 21 Feb 2020 05:41:48 +0000 (14:41 +0900)]
packaging: Bump up to 1.8.0

3 years agopackaging: bump to 1.5.7
Sung-Jin Park [Fri, 20 Oct 2017 04:38:55 +0000 (13:38 +0900)]
packaging: bump to 1.5.7

Change-Id: I377188db7c942f3be00a1faef156250c8873b38a
Signed-off-by: Sung-Jin Park <sj76.park@samsung.com>
3 years agotools: fix missing separator error in Makefile.am
Sung-Jin Park [Fri, 20 Oct 2017 04:38:18 +0000 (13:38 +0900)]
tools: fix missing separator error in Makefile.am

Change-Id: I1fc676cea763b626cac4b31698f539f1265a6bd0
Signed-off-by: Sung-Jin Park <sj76.park@samsung.com>
3 years agopackaging: correct TZ_SYS_RO_SHARE macro to remove build warning
Sung-Jin Park [Tue, 25 Apr 2017 04:29:53 +0000 (13:29 +0900)]
packaging: correct TZ_SYS_RO_SHARE macro to remove build warning

Change-Id: I77e195c5621fc35098b309d3e55cbd9c528b4c21
Signed-off-by: Sung-Jin Park <sj76.park@samsung.com>
3 years agopackaging: remove touchpad-edge-detector from install list
Sung-Jin Park [Tue, 25 Apr 2017 04:28:51 +0000 (13:28 +0900)]
packaging: remove touchpad-edge-detector from install list

Change-Id: Ie593dad384d5082b9d077394980f64343d19e282
Signed-off-by: Sung-Jin Park <sj76.park@samsung.com>
3 years agopackaging: update packaging file to install license file via %license macro
Sung-Jin Park [Wed, 22 Mar 2017 05:15:42 +0000 (14:15 +0900)]
packaging: update packaging file to install license file via %license macro

Change-Id: I747b1019f81b98851f43079bed674f0bff40c126
Signed-off-by: Sung-Jin Park <sj76.park@samsung.com>
3 years agoApply directory macros
Sung-Jin Park [Fri, 11 Mar 2016 02:47:07 +0000 (11:47 +0900)]
Apply directory macros

Change-Id: I2e082b618708edaf8a5558bc423ae30b8ec321ef

3 years agoAdd manifest for security domain policy
Mun, Gwan-gyeong [Tue, 4 Aug 2015 08:09:12 +0000 (17:09 +0900)]
Add manifest for security domain policy

Change-Id: I859d803d0550049c160da57305d140d4819c4ea1

3 years agopackaging: bump to 1.2.2
Manuel Bachmann [Mon, 29 Dec 2014 13:21:47 +0000 (14:21 +0100)]
packaging: bump to 1.2.2

Change-Id: I8a589d5722acfe7e1a5b528b18ad6bb3c85a4899
Signed-off-by: Manuel Bachmann <manuel.bachmann@open.eurogiciel.org>
3 years agopackaging: use upstream tags
Philippe Coval [Wed, 21 May 2014 08:21:36 +0000 (10:21 +0200)]
packaging: use upstream tags

Change-Id: If7fedff02224116abfa499d5afed5e7f0e1a75c4
Signed-off-by: Philippe Coval <philippe.coval@open.eurogiciel.org>
3 years agopackaging: Initial packaging on 1.0 for Tizen
Philippe Coval [Fri, 28 Feb 2014 15:56:48 +0000 (16:56 +0100)]
packaging: Initial packaging on 1.0 for Tizen

Change-Id: I94dfb72c793725b422981a1a9785e4b7b97ff812
Signed-off-by: Philippe Coval <philippe.coval@open.eurogiciel.org>
3 years agolibevdev 1.10.0 sandbox/jeon/upstream upstream_bkup_20220207 libevdev-1.10.0
Peter Hutterer [Sun, 25 Oct 2020 23:07:01 +0000 (09:07 +1000)]
libevdev 1.10.0

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
3 years agoREADME: drop an obsolete paragraph
Peter Hutterer [Sun, 25 Oct 2020 23:06:09 +0000 (09:06 +1000)]
README: drop an obsolete paragraph

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
3 years agolibevdev 1.10rc2 libevdev-1.9.902
Peter Hutterer [Mon, 19 Oct 2020 23:34:05 +0000 (09:34 +1000)]
libevdev 1.10rc2

3 years agoAdd libevdev_disable_property
Scott Jann [Sat, 17 Oct 2020 08:03:17 +0000 (03:03 -0500)]
Add libevdev_disable_property

On some devices, a kernel input property has been set in error and we need the
ability to disable that property.

Signed-off-by: Scott Jann <sjann@knight-rider.org>
3 years agoAdd link to Rust bindings
Nayan Deshmukh [Sat, 10 Oct 2020 03:58:22 +0000 (03:58 +0000)]
Add link to Rust bindings

Signed-off-by: Nayan Deshmukh <nayan26deshmukh@gmail.com>
3 years agolibevdev 1.10rc1 libevdev-1.9.901
Peter Hutterer [Tue, 6 Oct 2020 00:19:50 +0000 (10:19 +1000)]
libevdev 1.10rc1

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
3 years agotools: add a man page for the touchpad-edge-detector tool
Peter Hutterer [Mon, 5 Oct 2020 23:37:52 +0000 (09:37 +1000)]
tools: add a man page for the touchpad-edge-detector tool

Requires some .gitignore pattern removal too and an autotools fix to actually
dist the man pages.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
3 years agomeson.build: install the libevdev-tweak-device man page
Peter Hutterer [Mon, 5 Oct 2020 23:39:41 +0000 (09:39 +1000)]
meson.build: install the libevdev-tweak-device man page

This got lost in meson conversion

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
3 years agotools: Remove signalfd.h include again
Niclas Zeising [Sat, 19 Sep 2020 10:11:54 +0000 (12:11 +0200)]
tools: Remove signalfd.h include again

Remove the includsion of sys/signalfd.h again, it hasn't been needed
since cca90938 and was accidentally re-added, probably as a mismerge,
in a40e014e.

Signed-off-by: Niclas Zeising <zeising@daemonic.se>
3 years agoinclude: sync event codes with kernel 5.8
Peter Hutterer [Mon, 3 Aug 2020 05:46:39 +0000 (15:46 +1000)]
include: sync event codes with kernel 5.8

And fix the script to sync the headers up so it syncs event codes for both bsd
and linux, but only syncs input.h for linux.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
3 years agodoc: fix doxyen complaints after fd6c9b8ca0ec0791c
Peter Hutterer [Fri, 11 Sep 2020 01:56:01 +0000 (11:56 +1000)]
doc: fix doxyen complaints after fd6c9b8ca0ec0791c

Fixes fd6c9b8ca0ec0791c9aca11314bcb39f9c08555b

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
3 years agogitlab ci: run the qemu jobs on F32
Peter Hutterer [Fri, 11 Sep 2020 00:49:52 +0000 (10:49 +1000)]
gitlab ci: run the qemu jobs on F32

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
3 years agogitlab CI: update to use F32
Peter Hutterer [Fri, 11 Sep 2020 00:38:36 +0000 (10:38 +1000)]
gitlab CI: update to use F32

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
3 years ago[clang-tidy] do not use else after return
Rosen Penev [Thu, 27 Aug 2020 07:42:20 +0000 (00:42 -0700)]
[clang-tidy] do not use else after return

Found with readability-else-after-return

Signed-off-by: Rosen Penev <rosenp@gmail.com>
3 years agolibevdev: sort includes alphabetically
Rosen Penev [Tue, 28 Apr 2020 01:01:12 +0000 (18:01 -0700)]
libevdev: sort includes alphabetically

Found with clang-tidy's llvm-include-order

Signed-off-by: Rosen Penev <rosenp@gmail.com>
3 years agolibevdev: remove pointless return in void function
Rosen Penev [Tue, 28 Apr 2020 00:19:30 +0000 (17:19 -0700)]
libevdev: remove pointless return in void function

Found with clang-tidy's readability-redundant-control-flow

Signed-off-by: Rosen Penev <rosenp@gmail.com>
3 years agolibevdev: fix inconsistent declarations
Rosen Penev [Tue, 28 Apr 2020 00:15:04 +0000 (17:15 -0700)]
libevdev: fix inconsistent declarations

Found with clang-tidy's readability-inconsistent-declaration-parameter-name

Signed-off-by: Rosen Penev <rosenp@gmail.com>
3 years agoDocument FreeBSD quirks
Niclas Zeising [Tue, 11 Aug 2020 22:32:42 +0000 (00:32 +0200)]
Document FreeBSD quirks

Document FreeBSD quirks related to syspath.

Signed-off-by: Niclas Zeising <zeising@daemonic.se>
3 years agotests: Add FreeBSD specific tests
Niclas Zeising [Tue, 11 Aug 2020 21:50:53 +0000 (23:50 +0200)]
tests: Add FreeBSD specific tests

Add two FreeBSD specific tests:
test_uinput_check_devnode_bsd checks that libevdev_uinput_get_devnode()
returns something sensible.  This is modelled on the Linux test
test_uinput_check_syspath_name, but uses devnode instead of syspath, since
reeBSD doesn't have sysfs.
test_uinput_check_syspath_bsd checks that libevdev_uinput_get_syspath()
always returns NULL.

Signed-off-by: Niclas Zeising <zeising@daemonic.se>
3 years agotests: Disable attach debugger on FreeBSD
Niclas Zeising [Mon, 10 Aug 2020 21:24:34 +0000 (23:24 +0200)]
tests: Disable attach debugger on FreeBSD

Disable attaching a debugger on FreeBSD, since FreeBSD lacks support for
PTRACE_ATTACH.

Signed-off-by: Niclas Zeising <zeising@daemonic.se>
3 years agotests: disable force feedback events on FreeBSD
Niclas Zeising [Mon, 10 Aug 2020 21:20:13 +0000 (23:20 +0200)]
tests: disable force feedback events on FreeBSD

FreeBSD does not support force feedack events.  Disable the test for
this event when running on FreeBSD.

Signed-off-by: Niclas Zeising <zeising@daemonic.se>
3 years agotests: Use CLOCK_MONOTONIC_FAST on FreeBSD
Niclas Zeising [Mon, 10 Aug 2020 21:16:08 +0000 (23:16 +0200)]
tests: Use CLOCK_MONOTONIC_FAST on FreeBSD

FreeBSD does not have CLOCK_MONOTONIC_RAW, instead use
CLOCK_MONOTONIC_FAST.  This test checks that libevdev_set_clock_id()
fails when called with CLOCK_MONOTONIC_[RAW,FAST].

Signed-off-by: Niclas Zeising <zeising@daemonic.se>
3 years agouinput: Implement FreeBSD fetch_syspath_and_devnode()
Niclas Zeising [Thu, 13 Aug 2020 10:01:35 +0000 (12:01 +0200)]
uinput: Implement FreeBSD fetch_syspath_and_devnode()

Implement a FreeBSD version of fetch_syspath_and_devnode().
FreeBSD does not have sysfs, so instead fetch the device node directly
as as this matches with what is returned by the UI_GET_SYSNAME ioctl().
Since there is no sysfs, libevdev_uinput.syspath will always be set to NULL.

If the ioctl fail, return -1 from fetch_syspath_and_devnode(), since
there is no other way to figure out the device node path.

Signed-off-by: Niclas Zeising <zeising@daemonic.se>
3 years agouinput: Move SYS_INPUT_DIR to where it is used
Niclas Zeising [Thu, 13 Aug 2020 09:59:20 +0000 (11:59 +0200)]
uinput: Move SYS_INPUT_DIR to where it is used

Move the definition of SYS_INPUT_DIR to where it is used, instead of at
the top of the file, to make it easier to find.
Undefine it at the end of usage to avoid accidental uses.

Signed-off-by: Niclas Zeising <zeising@daemonic.se>
3 years agotools: use basename(argv[0]) for program name
Niclas Zeising [Tue, 28 Jul 2020 16:22:08 +0000 (18:22 +0200)]
tools: use basename(argv[0]) for program name

Use baename(argv[0]) to get the program name (for usage), instead of
using program_invocation_short_name, which only exists on Linux, not
FreeBSD.

Signed-off-by: Niclas Zeising <zeising@daemonic.se>
3 years agotools: Remove signalfd() use
Niclas Zeising [Mon, 27 Jul 2020 18:27:43 +0000 (20:27 +0200)]
tools: Remove signalfd() use

Remove signalfd() use from the mouse-dpi-tool and touchpad-edge-detector
tools, in favor of using plain old signals.
FreeBSD does not have signalfd() without pulling in external libraries,
and with this change these tools can be compiled on FreeBSD.
Instead of providing two implementations, one using signalfd() and one
using signal(), just use the signal() implementation everywhere as it is
more portable.

Signed-off-by: Niclas Zeising <zeising@daemonic.se>
3 years agoAdd FreeBSD compatible input.h and uinput.h
Niclas Zeising [Sat, 25 Jul 2020 19:00:28 +0000 (21:00 +0200)]
Add FreeBSD compatible input.h and uinput.h

Add FreeBSD compatible input.h and uinput.h files.
This is done by moving the linux files to include/linux/linux, adding
the freebsd versions in include/linux/freebsd, and then changing
include/linux/[u]input.h to pull in the right one depending on which OS
we are compiling on.
Make sure that the build infrastructure in meson.build and
autoconf.ac/Makefile.am uses the correct files when building and as
dependency for targets, and ensure that make-event-names.py get the
correct files as arguments.

A similar change has been done in libinput in
61f3e3854458c556a01fb05d7abb22733fd2b7c1

Signed-off-by: Niclas Zeising <zeising@daemonic.se>
3 years agoDon't hardcode /bin/bash
Niclas Zeising [Mon, 10 Aug 2020 20:47:09 +0000 (22:47 +0200)]
Don't hardcode /bin/bash

Don't hardcode /bin/bash, use /usr/bin/env bash instead, since not all
platforms install bash as /bin/bash.
FreeBSD, as an example, installs bash in /usr/local/bin/bash by default.

Signed-off-by: Niclas Zeising <zeising@daemonic.se>
3 years agolibevdev 1.9.1 libevdev-1.9.1
Peter Hutterer [Thu, 16 Jul 2020 03:39:45 +0000 (13:39 +1000)]
libevdev 1.9.1

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
3 years agolibevdev: any value less than 0 has a NULL name
Peter Hutterer [Wed, 15 Jul 2020 03:32:40 +0000 (13:32 +1000)]
libevdev: any value less than 0 has a NULL name

Fixes https://gitlab.freedesktop.org/libevdev/libevdev/-/issues/15

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
3 years agogitlab CI: move MR check to a later stage
Peter Hutterer [Tue, 30 Jun 2020 00:51:11 +0000 (10:51 +1000)]
gitlab CI: move MR check to a later stage

This gives the developer enough time to file an MR after pushing a branch.
Having this run in the first stage means we get false positives because no MR
has been filed yet when the job is run.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
3 years agogitlab CI: fix the repo name for excluding checks on master
Peter Hutterer [Tue, 16 Jun 2020 06:16:11 +0000 (16:16 +1000)]
gitlab CI: fix the repo name for excluding checks on master

Fixes 2698867311db78a7190bba1a20f0f27cfa04ffad

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
3 years agogitlab CI: use ci-fairy to check commits and merge requests
Peter Hutterer [Mon, 15 Jun 2020 23:58:40 +0000 (09:58 +1000)]
gitlab CI: use ci-fairy to check commits and merge requests

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
3 years agoinclude: sync event codes with kernel 5.7
Peter Hutterer [Thu, 4 Jun 2020 02:55:19 +0000 (12:55 +1000)]
include: sync event codes with kernel 5.7

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
3 years agogitlab CI: move the pip dependencies to before_script
Peter Hutterer [Thu, 4 Jun 2020 00:48:04 +0000 (10:48 +1000)]
gitlab CI: move the pip dependencies to before_script

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
3 years agogitlab CI: alpine needs pip explicitly installed now
Peter Hutterer [Thu, 4 Jun 2020 00:47:35 +0000 (10:47 +1000)]
gitlab CI: alpine needs pip explicitly installed now

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
3 years agoAdd a CODING_STYLE document
Peter Hutterer [Tue, 2 Jun 2020 01:10:53 +0000 (11:10 +1000)]
Add a CODING_STYLE document

Copied from libinput with a few minor changes.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
3 years agoAdd link to Haskell bindings
George Thomas [Mon, 1 Jun 2020 14:28:01 +0000 (14:28 +0000)]
Add link to Haskell bindings

Signed-off-by: George Thomas <georgefsthomas@gmail.com>
3 years agoMatch if/else blocks for curly braces
Peter Hutterer [Tue, 26 May 2020 04:10:31 +0000 (14:10 +1000)]
Match if/else blocks for curly braces

Where either block has braces, the other half should too.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
3 years agotools: specify width by height in the edge-detector help
Peter Hutterer [Wed, 6 May 2020 21:56:16 +0000 (07:56 +1000)]
tools: specify width by height in the edge-detector help

Fixes #13

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
4 years agogitlab-ci: update to ubuntu 20.04
Peter Hutterer [Fri, 1 May 2020 06:52:51 +0000 (16:52 +1000)]
gitlab-ci: update to ubuntu 20.04

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
4 years agotools: rename the example device in the touchpad-edge-detector
Peter Hutterer [Mon, 27 Apr 2020 21:14:58 +0000 (07:14 +1000)]
tools: rename the example device in the touchpad-edge-detector

In the hope that people don't blindly type event0 from now on.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
4 years agogitlab CI: update docs for how to schedule the auth variable
Peter Hutterer [Wed, 18 Mar 2020 02:46:14 +0000 (12:46 +1000)]
gitlab CI: update docs for how to schedule the auth variable

Safer to have this defined in the scheduled job only rather than the project
itself.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
4 years agogitlab CI: move to use ci-fairy
Peter Hutterer [Tue, 17 Mar 2020 22:10:30 +0000 (08:10 +1000)]
gitlab CI: move to use ci-fairy

ci-templates now has a new tool ci-fairy that replaces our jinja generation
script with something (eventually) unified across project repositories. Let's
move the files to the expected locations .gitlab-ci/config.yml and
.gitlab-ci/ci.template.

ci-fairy also has a wrapper to delete images, let's start using that.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
4 years agogitlab CI: use the new templates with a single job only
Peter Hutterer [Fri, 13 Mar 2020 04:17:15 +0000 (14:17 +1000)]
gitlab CI: use the new templates with a single job only

No more ifnot-exists, it's all build now with a variable to control the forced
rebuild.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
4 years agoDon't overrun the changes array when synching > MAX_SLOTS
Peter Hutterer [Thu, 5 Mar 2020 03:37:46 +0000 (13:37 +1000)]
Don't overrun the changes array when synching > MAX_SLOTS

On a device with more than 256 slots we would read (and copy) past our changes
stack-allocated changes array. Fix this by capping to MAX_SLOTS though this
also requires us to memset the target where it is larger than MAX_SLOTS.

There are no real devices with 256+ slots, so this is a theoretical issue
only.

Fixes #11

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
4 years agomeson.build: use local include path for tests
Peter Seiderer [Mon, 2 Mar 2020 15:16:28 +0000 (16:16 +0100)]
meson.build: use local include path for tests

Fixes:

  ../test/test-common.h: In function ‘print_event’:
  ../test/test-common.h:97:6: error: ‘const struct input_event’ has no member named ‘input_event_sec’
      ev->input_event_sec,
        ^
  ../test/test-common.h:98:6: error: ‘const struct input_event’ has no member named ‘input_event_usec’
      ev->input_event_usec,
        ^
  ../test/test-common.h:102:6: error: ‘const struct input_event’ has no member named ‘input_event_sec’
      ev->input_event_sec,
        ^
  ../test/test-common.h:103:6: error: ‘const struct input_event’ has no member named ‘input_event_usec’
      ev->input_event_usec,
        ^

Signed-off-by: Peter Seiderer <ps.report@gmx.net>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
4 years agomeson.build: use local include path for tools
Peter Seiderer [Mon, 2 Mar 2020 15:16:27 +0000 (16:16 +0100)]
meson.build: use local include path for tools

Fixes the following compile failure with old toolchains and meson
build (autotools build not affected):

  ../tools/mouse-dpi-tool.c: In function ‘handle_event’:
  ../tools/mouse-dpi-tool.c:115:13: error: ‘const struct input_event’ has no member named ‘input_event_sec’
     m->us = ev->input_event_sec * 1000000 + ev->input_event_usec;
               ^
  ../tools/mouse-dpi-tool.c:115:45: error: ‘const struct input_event’ has no member named ‘input_event_usec’
     m->us = ev->input_event_sec * 1000000 + ev->input_event_usec;
                                               ^

Signed-off-by: Peter Seiderer <ps.report@gmx.net>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
4 years agogitlab CI: rebuild images for the new templates
Peter Hutterer [Fri, 13 Mar 2020 03:01:28 +0000 (13:01 +1000)]
gitlab CI: rebuild images for the new templates

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
4 years agogitlab CI: expand tag lists to 100 per page
Peter Hutterer [Tue, 10 Mar 2020 07:54:10 +0000 (17:54 +1000)]
gitlab CI: expand tag lists to 100 per page

Lets make sure we can delete more than 20 tags at a time.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
4 years agogitlab CI: use the ifnot-exists templates from ci-templates
Peter Hutterer [Fri, 6 Mar 2020 05:26:14 +0000 (15:26 +1000)]
gitlab CI: use the ifnot-exists templates from ci-templates

Let's not duplicate the functionality, use the upstream templates because
they'll actually see improvements over time.

Define two jobs, one that is the ifnot-exists job and one that is the normal
container-build job. The second one only runs on schedules.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
4 years agogitlab CI: remove obsolete variable expansion
Peter Hutterer [Fri, 6 Mar 2020 05:08:47 +0000 (15:08 +1000)]
gitlab CI: remove obsolete variable expansion

gitlab doesn't support double-nested variables so we can assume that these
variables don't need further expansion

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
4 years agogitlab CI: Use the new fdo CI templates distribution images
Peter Hutterer [Fri, 6 Mar 2020 04:24:58 +0000 (14:24 +1000)]
gitlab CI: Use the new fdo CI templates distribution images

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
4 years agogitlab CI: make the container-clean dependent on container-prep
Peter Hutterer [Fri, 28 Feb 2020 03:54:35 +0000 (13:54 +1000)]
gitlab CI: make the container-clean dependent on container-prep

This is a test commit only to speed things up when testing the container-clean
phase. In the real instance, we don't want to remove our containers until the
test suite successfully completes on the new container.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
4 years agogitlab CI: add static-build meson pipeline
Peter Seiderer [Tue, 10 Mar 2020 11:11:09 +0000 (12:11 +0100)]
gitlab CI: add static-build meson pipeline

Signed-off-by: Peter Seiderer <ps.report@gmx.net>
4 years agomeson.build: enable static library build
Peter Seiderer [Tue, 10 Mar 2020 08:35:52 +0000 (09:35 +0100)]
meson.build: enable static library build

Use meson library() instead of shared_library() to enable
static build.

Signed-off-by: Peter Seiderer <ps.report@gmx.net>
4 years agogitlab ci: add a helper script for container deletion
Peter Hutterer [Fri, 28 Feb 2020 04:06:10 +0000 (14:06 +1000)]
gitlab ci: add a helper script for container deletion

Rather than raw curl requests to the API, use a python script using the gitlab
python package to access everything. This makes things a bit more readable.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
4 years agogitlab CI: update to the distribution-independent CI-templates
Peter Hutterer [Sun, 23 Feb 2020 22:12:35 +0000 (08:12 +1000)]
gitlab CI: update to the distribution-independent CI-templates

These templates get rid of the various distribution-specific naming and
instead default to the namespaced FDO_DISTRIBUTION_<foo> for whatever value we
need. So FEDORA_RPMS, DEBIAN_DEBS etc. becomes FDO_DISTRIBUTION_PACKAGES for
example.

By necessity this is one large commit. gitlab does not allow nested variable
expansion, so the previous approach of global variables didn't work.
Specifically, we'd end up with a template in this form:

variables:
  FEDORA_TAG: 12345

.base_template:
  variables:
     DISTRO_IMAGE: $DISTRO_TAG

.fedora:
  variables:
     $DISTRO_TAG: $FEDORA_TAG

But the actual DISTRO_IMAGE variable would be the literal string $FEDORA_TAG,
not the value of that variable. So all of it needed to be reworked.

Specifically:
- the packages to install moved to the config yaml file
- the distribution tag is now in the config yaml file
- all distributions now share the same tag (because lazyness)
- there are .fedora:30, .debian:stable, etc. templates now with the variables
  defined as needed, jobs will extends those templates as they need those
  distributions
- qemu-prep jobs are now generated too (based on the config yaml file)

Overall, it ends up cleaner despite the mess in this patch.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
4 years agogitlab CI: group the config by distribution type
Peter Hutterer [Thu, 27 Feb 2020 05:56:29 +0000 (15:56 +1000)]
gitlab CI: group the config by distribution type

No functional changes, this produces the same gitlab CI file

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
4 years agogitlab CI: expire the results.xml artifacts
Peter Hutterer [Thu, 27 Feb 2020 23:33:45 +0000 (09:33 +1000)]
gitlab CI: expire the results.xml artifacts

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
4 years agoREADME: note that patches go as MRs to gitlab now
Peter Hutterer [Thu, 5 Mar 2020 21:28:48 +0000 (07:28 +1000)]
README: note that patches go as MRs to gitlab now

Make the GitLab spelling consistent too and remove the git protocol link, it
looks awkward in the rendering and you can get all that from the gitlab repo
anyway

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
4 years agolibevdev 1.9.0 libevdev-1.9.0
Peter Hutterer [Mon, 2 Mar 2020 03:48:25 +0000 (13:48 +1000)]
libevdev 1.9.0

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
4 years agogitlab CI: keep the results of the check-commit job as artifact
Peter Hutterer [Fri, 28 Feb 2020 03:36:17 +0000 (13:36 +1000)]
gitlab CI: keep the results of the check-commit job as artifact

Due to how pytest is used, we don't get the actual errors printed in the
commandline log if this job fails. This doesn't matter in merge requests where
the results are displayed nicely but where there's no merge request we can't
get this info out at all. So let's simply store the xml file for an easy
check.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
4 years agoUse editorconfig instead of a sprinkling of :vim: instructions
Peter Hutterer [Tue, 25 Feb 2020 23:33:18 +0000 (09:33 +1000)]
Use editorconfig instead of a sprinkling of :vim: instructions

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
4 years agogitlab CI: drop the distribution "flavor" in favor of just the name
Peter Hutterer [Wed, 26 Feb 2020 03:04:42 +0000 (13:04 +1000)]
gitlab CI: drop the distribution "flavor" in favor of just the name

This is a leftover from ci-templates where the name of a distribution didn't
necessarily match the image (arch vs archlinux) and is no longer needed.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
4 years agogitlab CI: move the container-clean git strategy to the parent section
Peter Hutterer [Wed, 26 Feb 2020 03:07:09 +0000 (13:07 +1000)]
gitlab CI: move the container-clean git strategy to the parent section

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
4 years agogitlab CI: don't allow failures on the kvm jobs
Peter Hutterer [Wed, 26 Feb 2020 01:37:46 +0000 (11:37 +1000)]
gitlab CI: don't allow failures on the kvm jobs

This is a leftover from libinput where we have to allow failures because of
frequent issues with timing. We don't have these issues here so a failed job
in the VM indicates a bug.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
4 years agogitlab CI: update to the latest ci-templates again
Peter Hutterer [Sun, 23 Feb 2020 22:12:35 +0000 (08:12 +1000)]
gitlab CI: update to the latest ci-templates again

Unclear what happend but I suspect a rebase went wrong so
e03cdd1d3ff3731eb1432501c48b742e2c6e34ca didn't actually update to the new
ci-templates.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
4 years agogitlab CI: prefill the junit conversion script from the gitlab environment
Peter Hutterer [Mon, 24 Feb 2020 04:57:52 +0000 (14:57 +1000)]
gitlab CI: prefill the junit conversion script from the gitlab environment

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
4 years agogitlab CI: re-use the meson-build.sh script for normal meson jobs
Peter Hutterer [Mon, 24 Feb 2020 01:29:42 +0000 (11:29 +1000)]
gitlab CI: re-use the meson-build.sh script for normal meson jobs

Let's invoke the same meson steps for every build task.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
4 years agogitlab CI: hook up junit test reports to the meson results
Peter Hutterer [Sun, 23 Feb 2020 23:37:36 +0000 (09:37 +1000)]
gitlab CI: hook up junit test reports to the meson results

The KVM tests use this for now, not the container builds where we run meson
directly.

The python script to convert meson test logs to junit results expects suite
names, so let's add all tests to suites so we don't need to carry local
modifications.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
4 years agogitlab CI: update to latest ci-templates
Peter Hutterer [Sun, 23 Feb 2020 22:12:35 +0000 (08:12 +1000)]
gitlab CI: update to latest ci-templates

This gives us a warning where qemu failed to start and it gets rid of the
different "flavor" that only archlinux had different to the distribution name.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
4 years agogitlab CI: generate the template list from the config data
Peter Hutterer [Sun, 23 Feb 2020 22:21:55 +0000 (08:21 +1000)]
gitlab CI: generate the template list from the config data

Only change in the actual gitlab CI file is that the sorting is now
alphabetical.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
4 years agogitlab CI: set the vim filetype for the template file
Peter Hutterer [Sun, 23 Feb 2020 22:24:21 +0000 (08:24 +1000)]
gitlab CI: set the vim filetype for the template file

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
4 years agolibevdev 1.9rc1 libevdev-1.8.901
Peter Hutterer [Fri, 21 Feb 2020 00:47:53 +0000 (10:47 +1000)]
libevdev 1.9rc1

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
4 years agogitlab CI: move the configuration bits into a YAML file
Peter Hutterer [Thu, 20 Feb 2020 23:05:04 +0000 (09:05 +1000)]
gitlab CI: move the configuration bits into a YAML file

Only one change: the meson boolean to decide whether to build with meson is
now inside the build: block.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
4 years agogitlab CI: extend the generation script to be somewhat more generic
Peter Hutterer [Thu, 20 Feb 2020 23:03:59 +0000 (09:03 +1000)]
gitlab CI: extend the generation script to be somewhat more generic

Mostly busywork, it moves the hardcoded paths into a variables, etc.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
4 years agogitlab CI: make the "this is generated" warning more obvious
Peter Hutterer [Thu, 20 Feb 2020 23:13:00 +0000 (09:13 +1000)]
gitlab CI: make the "this is generated" warning more obvious

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
4 years agogitlab CI: add a scan-build target
Peter Hutterer [Thu, 20 Feb 2020 06:33:05 +0000 (16:33 +1000)]
gitlab CI: add a scan-build target

To avoid dnf updates and outdated packages (and the resulting delay from a dnf
update) we just install the clang-analyzer package into the default Fedora
image. It won't mess with the build expectations too much.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
4 years agogitlab CI: fix a variable substitution
Peter Hutterer [Thu, 20 Feb 2020 06:59:54 +0000 (16:59 +1000)]
gitlab CI: fix a variable substitution

Single quotes means we're not expanding the variable here

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
4 years agogitlab CI: correct some meson builddirs
Peter Hutterer [Thu, 20 Feb 2020 06:35:37 +0000 (16:35 +1000)]
gitlab CI: correct some meson builddirs

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
4 years agomeson.build: drop an unused variable
Peter Hutterer [Thu, 20 Feb 2020 06:26:19 +0000 (16:26 +1000)]
meson.build: drop an unused variable

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
4 years agotest: remove unreachable switch case
Peter Hutterer [Wed, 19 Feb 2020 03:33:32 +0000 (13:33 +1000)]
test: remove unreachable switch case

We only test up to 5 slots, so this cannot ever be reached.

Found by coverity

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
4 years agoFix (theoretical) use of uninitialized variable
Peter Hutterer [Wed, 19 Feb 2020 03:31:48 +0000 (13:31 +1000)]
Fix (theoretical) use of uninitialized variable

This cannot ever be unset on any real device, but coverity is unhappy and
that's not making me happy.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
4 years agoDon't try to send BTN_TOOL events for zero fingers
Peter Hutterer [Wed, 19 Feb 2020 03:28:38 +0000 (13:28 +1000)]
Don't try to send BTN_TOOL events for zero fingers

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
4 years agoIgnore slot sync for slots > 256
Peter Hutterer [Wed, 19 Feb 2020 03:18:48 +0000 (13:18 +1000)]
Ignore slot sync for slots > 256

Clang doesn't support variable length arrays inside a struct so we could
either make our life complicated or just assume no-one is using more than 256
slots and hard-code that. Let's go for the easy solution until someone
notices.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
4 years agotest: add missing check for tripletap
Peter Hutterer [Wed, 19 Feb 2020 03:08:32 +0000 (13:08 +1000)]
test: add missing check for tripletap

We don't actually expect to get this one, hence the assert a few lines later.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
4 years agotest: fix a few scan-build errors about dead storage
Peter Hutterer [Wed, 19 Feb 2020 03:06:18 +0000 (13:06 +1000)]
test: fix a few scan-build errors about dead storage

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>