[packages/xorg-driver-input-mutouch] Rel 12

arekm arekm at pld-linux.org
Sun Mar 15 12:47:22 CET 2026


commit 2cbd4a56f04ed6a6cd2e64bb67f47c43f27edc42
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sun Mar 15 12:47:15 2026 +0100

    Rel 12

 xorg-driver-input-mutouch-const-fix.patch | 56 +++++++++++++++++++++++++++++++
 xorg-driver-input-mutouch.spec            |  4 ++-
 2 files changed, 59 insertions(+), 1 deletion(-)
---
diff --git a/xorg-driver-input-mutouch.spec b/xorg-driver-input-mutouch.spec
index 1345fcd..40a20c7 100644
--- a/xorg-driver-input-mutouch.spec
+++ b/xorg-driver-input-mutouch.spec
@@ -2,12 +2,13 @@ Summary:	X.org input driver for MicroTouch devices
 Summary(pl.UTF-8):	Sterownik wejściowy X.org dla urządzeń MicroTouch
 Name:		xorg-driver-input-mutouch
 Version:	1.3.0
-Release:	11
+Release:	12
 License:	MIT
 Group:		X11/Applications
 Source0:	http://xorg.freedesktop.org/releases/individual/driver/xf86-input-mutouch-%{version}.tar.bz2
 # Source0-md5:	d84374b3eecc2d7156f5b694e79f66ac
 Patch0:		am.patch
+Patch1:		xorg-driver-input-mutouch-const-fix.patch
 URL:		http://xorg.freedesktop.org/
 BuildRequires:	autoconf >= 2.57
 BuildRequires:	automake
@@ -31,6 +32,7 @@ Sterownik wejściowy X.org dla urządzeń MicroTouch.
 %prep
 %setup -q -n xf86-input-mutouch-%{version}
 %patch -P0 -p1
+%patch -P1 -p1
 
 %build
 %{__libtoolize}
diff --git a/xorg-driver-input-mutouch-const-fix.patch b/xorg-driver-input-mutouch-const-fix.patch
new file mode 100644
index 0000000..e97bbc3
--- /dev/null
+++ b/xorg-driver-input-mutouch-const-fix.patch
@@ -0,0 +1,56 @@
+--- a/src/xf86MuTouch.c
++++ b/src/xf86MuTouch.c
+@@ -267,7 +267,7 @@
+ 			   (char *) (priv->rec_buf + priv->num_old_bytes),
+ 			   MuT_BUFFER_SIZE - priv->num_old_bytes));
+   if (num_bytes < 0) {
+-    Error("System error while reading from MuTouch touchscreen.");
++    ErrorF("System error while reading from MuTouch touchscreen.\n");
+     return;
+   }
+
+@@ -483,7 +483,7 @@
+    * Okay, give up.
+    */
+   if (num_bytes < 0) {
+-    Error("System error while reading from MuTouch touchscreen.");
++    ErrorF("System error while reading from MuTouch touchscreen.\n");
+     return !Success;
+   }
+   DBG(4, ErrorF("Read %d bytes of reply\n", num_bytes));
+@@ -789,7 +789,7 @@
+ 	DBG(2, ErrorF("MuTouch touchscreen opening : %s\n", priv->input_dev));
+ 	pInfo->fd = xf86OpenSerial(pInfo->options);
+ 	if (pInfo->fd < 0) {
+-	  Error("Unable to open MuTouch touchscreen device");
++	  ErrorF("Unable to open MuTouch touchscreen device\n");
+ 	  return !Success;
+ 	}
+ 	memset(req, 0, MuT_PACKET_SIZE);
+@@ -845,7 +845,7 @@
+ 	  goto not_success;
+ 	}
+ 	/*	goto not_success;*/
+-	AddEnabledDevice(pInfo->fd);
++	xf86AddEnabledDevice(pInfo);
+       }
+
+       /*
+@@ -1052,7 +1052,7 @@
+   xf86DeleteInput(pInfo, 0);
+ }
+
+-static char *default_options[] = {
++static const char *default_options[] = {
+   "BaudRate", "9600",
+   "StopBits", "1",
+   "DataBits", "8",
+@@ -1070,7 +1070,7 @@
+ {
+   InputInfoPtr		current;
+   MuTPrivatePtr		priv=NULL;
+-  char			*str;
++  const char		*str;
+   int			portrait=0;
+   int			rc = Success;
+
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/xorg-driver-input-mutouch.git/commitdiff/2cbd4a56f04ed6a6cd2e64bb67f47c43f27edc42



More information about the pld-cvs-commit mailing list