[PATCH v2 libinput 13/14] quirks: add the devicetree implementation

2018-06-07 Thread Peter Hutterer
Using the compatible string Signed-off-by: Peter Hutterer --- src/quirks.c | 68 ++-- 1 file changed, 53 insertions(+), 15 deletions(-) diff --git a/src/quirks.c b/src/quirks.c index 1a44574a..2fca275a 100644 --- a/src/quirks.c +++ b/src/q

[PATCH v2 libinput 12/14] Switch from udev property parsing to the quirks system

2018-06-07 Thread Peter Hutterer
Signed-off-by: Peter Hutterer --- src/evdev-mt-touchpad.c | 164 ++- src/evdev.c | 155 + test/litest-device-alps-dualpoint.c | 15 +-- test/litest-device-apple-appletouch.c| 1

[PATCH v2 libinput 07/14] quirks: allow for in-line comments

2018-06-07 Thread Peter Hutterer
Signed-off-by: Peter Hutterer --- data/README.md | 1 - src/quirks.c | 20 +++-- test/test-quirks.c | 64 ++ 3 files changed, 82 insertions(+), 3 deletions(-) diff --git a/data/README.md b/data/README.md index 66897938..5

[PATCH v2 libinput 14/14] Hook up list-quirks --validate for the test suite

2018-06-07 Thread Peter Hutterer
All the tests fill fail anyway if the validation fails but this is a quick way to fail everything early. Signed-off-by: Peter Hutterer --- meson.build| 18 +++--- tools/libinput-list-quirks.c | 24 tools/libinput-list-quirks.man | 10 +++

[PATCH v2 libinput 10/14] test: switch the udev tag tests to be quirk tests

2018-06-07 Thread Peter Hutterer
Signed-off-by: Peter Hutterer --- test/test-device.c | 85 -- test/test-quirks.c | 83 2 files changed, 83 insertions(+), 85 deletions(-) diff --git a/test/test-device.c b/test/test-device.c

[PATCH v2 libinput 06/14] quirks: use an empty dmi modalias string for the test suite

2018-06-07 Thread Peter Hutterer
We don't want any of the test devices to match the local machine's DMI modalias. This was a major drawback in the previous test suite, hacking the dmi modalias string was nontrivial but a wrong string could cause false positives or negatives. The quirks system is internal, so rather than having so

[PATCH v2 libinput 08/14] test: install per-test device quirks files

2018-06-07 Thread Peter Hutterer
These will replace the custom udev rules we currently have in place. Signed-off-by: Peter Hutterer --- meson.build | 3 ++ test/litest-int.h | 1 + test/litest.c | 86 +++ 3 files changed, 90 insertions(+) diff --git a/meson.build

[PATCH v2 libinput 05/14] Implement a quirks system to replace the udev property parsing

2018-06-07 Thread Peter Hutterer
Previously, we had all extra device information ("This is an Apple Touchpad", "This touchpad causes pointer jumps", etc.) in the udev hwdb. The problem with the hwdb is that updating it is nontrivial for the average user and debugging when things go wrong is even harder. Plus, the hwdb has a matchi

[PATCH v2 libinput 02/14] test: remove created directories too

2018-06-07 Thread Peter Hutterer
If we created it, remove it again. No change because we're not adding any of the directories yet. Signed-off-by: Peter Hutterer --- test/litest.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/litest.c b/test/litest.c index 0e050789..9d711098 100644 --- a/test/litest.c +++ b/test/lit

[PATCH v2 libinput 03/14] util: add a list_append()

2018-06-07 Thread Peter Hutterer
Signed-off-by: Peter Hutterer --- src/libinput-util.c | 14 src/libinput-util.h | 1 + test/test-misc.c| 64 + 3 files changed, 79 insertions(+) diff --git a/src/libinput-util.c b/src/libinput-util.c index eb6e3ecf..a475c465 1

[PATCH v2 libinput 04/14] util: add a safe_atou() as unsigned equivalent to safe_atoi()

2018-06-07 Thread Peter Hutterer
Signed-off-by: Peter Hutterer --- src/libinput-util.h | 30 ++ test/test-misc.c| 115 2 files changed, 145 insertions(+) diff --git a/src/libinput-util.h b/src/libinput-util.h index 6524d940..955d1ae7 100644 --- a/src/libinput

[PATCH v2 libinput 09/14] test: init the quirks once per test suite run

2018-06-07 Thread Peter Hutterer
So we have them available per litest device and can check in tests for certain quirks to be present. Signed-off-by: Peter Hutterer --- test/litest.c | 28 test/litest.h | 2 ++ 2 files changed, 30 insertions(+) diff --git a/test/litest.c b/test/litest.c index 13f0a

[PATCH v2 libinput 11/14] libinput: initialize the quirks subsystem

2018-06-07 Thread Peter Hutterer
A bit quirky (haha), because we cannot do this during context creation - we really want any parsing error messages to show up in the right log file and the log handler isn't set up during context creation. So we do it on the first real call to the backend - path_add_device or udev_assign_seat. Als

[PATCH v2 libinput 01/14] test: make litest_copy_file copy normal files too

2018-06-07 Thread Peter Hutterer
Make the tempfile creation dependent on whether the required template is present. Currently unused, this is just prep work for future patches. Signed-off-by: Peter Hutterer --- test/litest.c | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/test/litest.c b/test/l

[PATCH v2 libinput 00/14] libinput device quirks config files

2018-06-07 Thread Peter Hutterer
Initial description is here https://lists.freedesktop.org/archives/wayland-devel/2018-May/038233.html Changes to v1 are rather mixed, bit hard to remember due to heavy rebasing. - device tree compatible support added - support for inline comments added - more tests hooked up the parser run to nin

Re: Release schedule

2018-06-07 Thread Derek Foreman
On 2018-06-04 07:14 AM, Daniel Stone wrote: > Hi Pekka, > > On 4 June 2018 at 12:29, Pekka Paalanen wrote: >> On Sun, 3 Jun 2018 10:52:49 +0100 >> Daniel Stone wrote: >>> On 1 June 2018 at 17:52, Derek Foreman wrote: >>> Maybe? There's certainly a ton of change in the tree now, and a few >>> mo

Re: [PATCH weston 2/2] Add .gitlab-ci.yml

2018-06-07 Thread Emil Velikov
On 7 June 2018 at 08:46, Daniel Stone wrote: > Hi, > > On 6 June 2018 at 16:41, Emil Velikov wrote: >> On 6 June 2018 at 15:47, Simon McVittie wrote: >>> On Wed, 06 Jun 2018 at 15:33:13 +0100, Emil Velikov wrote: On 5 June 2018 at 23:06, Daniel Stone wrote: > + - apt-get -y --no-inst

Re: [PATCH weston 2/2] Add .gitlab-ci.yml

2018-06-07 Thread Emil Velikov
On 7 June 2018 at 08:46, Pekka Paalanen wrote: > On Wed, 6 Jun 2018 15:37:01 +0100 > Emil Velikov wrote: > >> On 6 June 2018 at 09:56, Pekka Paalanen wrote: >> > On Wed, 6 Jun 2018 09:22:59 +0100 >> > Daniel Stone wrote: >> > >> >> On 6 June 2018 at 09:12, Daniel Stone wrote: >> >> > On 6 June

Re: [PATCH weston 2/2] Add .gitlab-ci.yml

2018-06-07 Thread Emil Velikov
On 7 June 2018 at 08:58, Daniel Stone wrote: > Hi Emil, > I replied to the rest further down-thread, but: > > On 6 June 2018 at 15:33, Emil Velikov wrote: >> On 5 June 2018 at 23:06, Daniel Stone wrote: >>> + - git clone --depth=1 >>> git://anongit.freedesktop.org/git/wayland/wayland-protocols

Re: [PATCH weston 2/2] libweston: Reset repaint schedule for all repainted outputs when repaint cancel

2018-06-07 Thread Pekka Paalanen
On Tue, 5 Jun 2018 10:37:06 +0900 Tomohito Esaki wrote: > All outputs is canceled repaint when a output repaint is failed. At that > time, the output whose repaint is success is not scheduled because the > repaint status of that is still REPAINT_AWAITING_COMPLETION. Therefore, > we need to reset

Re: [PATCH] scanner: allow referencing foreign enums

2018-06-07 Thread Pekka Paalanen
On Thu, 7 Jun 2018 10:40:11 +0300 Pekka Paalanen wrote: > On Wed, 06 Jun 2018 08:54:16 -0400 > Simon Ser wrote: > > > On May 29, 2018 9:52 AM, Pekka Paalanen wrote: > > > On Sat, 26 May 2018 09:51:18 +0200 > > > Silvan Jegen wrote: > > > > > > > Hi > > > > > > > > On Fri, May 25, 2018 a

Re: [PATCH weston 2/2] Add .gitlab-ci.yml

2018-06-07 Thread Pekka Paalanen
On Wed, 6 Jun 2018 15:33:13 +0100 Emil Velikov wrote: > Hi Dan, > > On 5 June 2018 at 23:06, Daniel Stone wrote: > > > + - apt-get -y --no-install-recommends install build-essential automake > > autoconf libtool pkg-config libexpat1-dev libffi-dev libxml2-dev > > libpixman-1-dev libpng-dev

Re: [PATCH weston 2/2] Add .gitlab-ci.yml

2018-06-07 Thread Daniel Stone
Hi Emil, I replied to the rest further down-thread, but: On 6 June 2018 at 15:33, Emil Velikov wrote: > On 5 June 2018 at 23:06, Daniel Stone wrote: >> + - git clone --depth=1 >> git://anongit.freedesktop.org/git/wayland/wayland-protocols >> + - export WAYLAND_PROTOCOLS_DIR="$(pwd)/prefix-way

Re: [PATCH weston 2/2] Add .gitlab-ci.yml

2018-06-07 Thread Daniel Stone
Hi, On 6 June 2018 at 16:41, Emil Velikov wrote: > On 6 June 2018 at 15:47, Simon McVittie wrote: >> On Wed, 06 Jun 2018 at 15:33:13 +0100, Emil Velikov wrote: >>> On 5 June 2018 at 23:06, Daniel Stone wrote: >>> > + - apt-get -y --no-install-recommends install build-essential automake >>> >

Re: [PATCH weston 2/2] Add .gitlab-ci.yml

2018-06-07 Thread Daniel Stone
Hi Pekka, On 7 June 2018 at 08:46, Pekka Paalanen wrote: > On Wed, 6 Jun 2018 15:37:01 +0100 > Emil Velikov wrote: >> On 6 June 2018 at 09:56, Pekka Paalanen wrote: >> > On Wed, 6 Jun 2018 09:22:59 +0100 >> > Daniel Stone wrote: >> >> On 6 June 2018 at 09:12, Daniel Stone wrote: >> >> > On 6

Re: [PATCH weston 2/2] Add .gitlab-ci.yml

2018-06-07 Thread Pekka Paalanen
On Wed, 6 Jun 2018 15:37:01 +0100 Emil Velikov wrote: > On 6 June 2018 at 09:56, Pekka Paalanen wrote: > > On Wed, 6 Jun 2018 09:22:59 +0100 > > Daniel Stone wrote: > > > >> On 6 June 2018 at 09:12, Daniel Stone wrote: > >> > On 6 June 2018 at 09:03, Pekka Paalanen wrote: > >> >> Distch

Re: [PATCH] scanner: allow referencing foreign enums

2018-06-07 Thread Pekka Paalanen
On Wed, 06 Jun 2018 08:54:16 -0400 Simon Ser wrote: > On May 29, 2018 9:52 AM, Pekka Paalanen wrote: > > On Sat, 26 May 2018 09:51:18 +0200 > > Silvan Jegen wrote: > > > > > Hi > > > > > > On Fri, May 25, 2018 at 05:24:41PM -0400, Simon Ser wrote: > > > > It's already possible to reference