[packages/xorg-driver-input-mtrack] Rel 4
arekm
arekm at pld-linux.org
Sun Mar 15 12:46:20 CET 2026
commit ed303cc25a4f422f396736fe94fe42515f8a46dd
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sun Mar 15 12:46:05 2026 +0100
Rel 4
...age-of-struct-input_event-to-input_event_.patch | 22 +++++++++++++++++
...ncludes-implicit-function-declaration-fix.patch | 28 ++++++++++++++++++++++
xorg-driver-input-mtrack.spec | 6 ++++-
3 files changed, 55 insertions(+), 1 deletion(-)
---
diff --git a/xorg-driver-input-mtrack.spec b/xorg-driver-input-mtrack.spec
index 5eab120..4e9213a 100644
--- a/xorg-driver-input-mtrack.spec
+++ b/xorg-driver-input-mtrack.spec
@@ -1,7 +1,7 @@
Summary: Multitouch X input driver
Name: xorg-driver-input-mtrack
Version: 0.3.1
-Release: 3
+Release: 4
Epoch: 1
License: GPL v2+
Group: X11/Applications
@@ -9,6 +9,8 @@ URL: https://github.com/BlueDragonX/xf86-input-mtrack
Source0: https://github.com/BlueDragonX/xf86-input-mtrack/archive/v%{version}.tar.gz?/mtrack-%{version}.tgz
# Source0-md5: cc99ea395ec588a790d2145815f48fa2
Source1: xf86-input-mtrack.conf
+Patch0: missing-includes-implicit-function-declaration-fix.patch
+Patch1: Port-usage-of-struct-input_event-to-input_event_.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
@@ -24,6 +26,8 @@ touchpads, in particular those with integrated button.
%prep
%setup -q -n xf86-input-mtrack-%{version}
+%patch -P0 -p1
+%patch -P1 -p1
%build
%{__libtoolize}
diff --git a/Port-usage-of-struct-input_event-to-input_event_.patch b/Port-usage-of-struct-input_event-to-input_event_.patch
new file mode 100644
index 0000000..19d7a2b
--- /dev/null
+++ b/Port-usage-of-struct-input_event-to-input_event_.patch
@@ -0,0 +1,22 @@
+From: Benjamin Drung <benjamin.drung at canonical.com>
+Date: Mon, 15 Apr 2024 19:56:58 +0200
+Subject: Port usage of struct input_event to input_event_*
+
+---
+ src/hwstate.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+Index: xf86-input-mtrack-0.3.1/src/hwstate.c
+===================================================================
+--- xf86-input-mtrack-0.3.1.orig/src/hwstate.c
++++ xf86-input-mtrack-0.3.1/src/hwstate.c
+@@ -42,7 +42,8 @@
+ if (!caps->has_abs[MTDEV_WIDTH_MINOR])
+ s->data[i].width_minor = s->data[i].width_major;
+ }
+- timercp(&s->evtime, &syn->time);
++ s->evtime.tv_sec = syn->input_event_sec;
++ s->evtime.tv_usec = syn->input_event_usec;
+ }
+
+ static int read_event(struct HWState *s, const struct Capabilities *caps,
diff --git a/missing-includes-implicit-function-declaration-fix.patch b/missing-includes-implicit-function-declaration-fix.patch
new file mode 100644
index 0000000..9b9392f
--- /dev/null
+++ b/missing-includes-implicit-function-declaration-fix.patch
@@ -0,0 +1,28 @@
+Description: Add patch to fix missing includes
+Author: Gianfranco Costamagna <locutusofborg at debian.org>
+Last-Update: 2024-04-17
+
+Index: xf86-input-mtrack-0.3.1/src/gestures.c
+===================================================================
+--- xf86-input-mtrack-0.3.1.orig/src/gestures.c
++++ xf86-input-mtrack-0.3.1/src/gestures.c
+@@ -28,6 +28,7 @@
+ #include "gestures.h"
+ #include "mtouch.h"
+ #include "trig.h"
++#include <mtdev-plumbing.h>
+
+ #define IS_VALID_BUTTON(x) (x >= 0 && x <= 31)
+
+Index: xf86-input-mtrack-0.3.1/tools/mtrack-test.c
+===================================================================
+--- xf86-input-mtrack-0.3.1.orig/tools/mtrack-test.c
++++ xf86-input-mtrack-0.3.1/tools/mtrack-test.c
+@@ -23,6 +23,7 @@
+ #include "mtouch.h"
+ #include <fcntl.h>
+ #include <stdarg.h>
++#include <unistd.h>
+
+ void xf86Msg(int type, const char *format, ...)
+ {
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/xorg-driver-input-mtrack.git/commitdiff/ed303cc25a4f422f396736fe94fe42515f8a46dd
More information about the pld-cvs-commit
mailing list