Debian Patches

Status for evemu/2.7.0-4

Patch Description Author Forwarded Bugs Origin Last update
0002-check-test-conditions.patch add a check if conditions exist for running self-test suite The self-tests are designed for a full Linux runtime, which does not exist in a
pbuild or sbuild chroot (missing device files). Those tests need to be
skipped at package build time.

=== modified file 'configure.ac'
Stephen M. Webb <stephen.webb@canonical.com> no
0003-fix-python-startup-crash.patch fix crash in python bindings The python bindings were using an incorrect search string to locate the DSO and
would crash unless the -dev binary package was also installed.
Stephen M. Webb <stephen.webb@canonical.com> no
swmax-test.patch commit 86a5627dbeac8d9d9bc34326a758d6a477e876e4

test: replace the hardcoded EV_MAX array with the libevdev one

Kernel 5.8 changed the value of SW_MAX but libevdev has a built-in check for
out-of-range bits (it silently discards those).

So where evemu is built against a new kernel but a libevdev that hasn't been
updated yet, our test expects bit up to the new SW_MAX while libevdev
discards all bits above the old SW_MAX.

Fix this by making sure the test and uses the same value of the
respective type max as evemu itself does.

Fixes #3

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Peter Hutterer <peter.hutterer@who-t.net> no 2020-09-30
input-64-bit-time-1.patch commit 30973c0bc053b2198cafb1899a0843688d5bb541

evemu: Update struct input_event

The struct input_event is not y2038 safe.
Update the struct according to the kernel patch:
https://lkml.org/lkml/2018/1/6/324

Signed-off-by: Deepa Dinamani <deepa.kernel@gmail.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>

diff --git a/src/evemu.c b/src/evemu.c
index a8a949b..c7ff561 100644
Deepa Dinamani <deepa.kernel@gmail.com> no 2018-01-15
input-64-bit-time-2.patch commit fd204f628021c9bb13870a8c983d9c63e1a53ebb

src/evemu.c: fix build with kernels >= 4.16

Commit 30973c0b forgot to update all occurences of input_event, this
will result in the following build failure with kernel >= 4.16:

evemu.c: In function 'write_event_desc':
evemu.c:753:23: error: 'const struct input_event' has no member named 'time'; did you mean 'type'?
time = millis(&ev->time);
^~~~
type

Fixes:
- http://autobuild.buildroot.org/results/487dd5056ec0a977d55b23417d5db2664dcc91fa

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

diff --git a/src/evemu.c b/src/evemu.c
index c7ff561..42dbe1d 100644
Fabrice Fontaine <fontaine.fabrice@gmail.com> no 2020-03-23
input-64-bit-time-3.patch commit 1babf63444b7b7f3c84e2561fbdecd5fd5a0e36f

src/evemu.c: fix build with kernels < 4.16

Commit 30973c0b fixed the build with kernels >= 4.16 but as a side
effect, build with kernels < 4.16 is now failing on:

evemu.c:892:18: error: ‘struct input_event’ has no member named ‘input_event_usec’
tv.tv_usec = ev->input_event_usec;
^~

Fix this error by defining input_event_sec and input_event_usec if
needed

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

diff --git a/src/evemu.c b/src/evemu.c
index 42dbe1d..2f457c1 100644
Fabrice Fontaine <fontaine.fabrice@gmail.com> no 2020-03-24

All known versions for source package 'evemu'

Links