pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/x11/xf86-input-ws xf86-input-ws: update to 1.3.0.20220511
details: https://anonhg.NetBSD.org/pkgsrc/rev/3ac4c9f7e024
branches: trunk
changeset: 379994:3ac4c9f7e024
user: tnn <tnn%pkgsrc.org@localhost>
date: Fri May 27 02:35:43 2022 +0000
description:
xf86-input-ws: update to 1.3.0.20220511
Fix typo: ususally -> usually.
Ignore WSMOUSEIO_GTYPE ioctl failure when checking /dev/wsmouse
Use C99 designated structure initializers.
replace obsoleted xf86{,Un}BlockSIGIO() calls by input_{,un}lock()
Adapt Block and Wakeup handlers prototypes to X server 1.20.
Add support for precision scrolling.
Improve the wheel emulation logic
If read() returns EIO, detach the xserver driver
Remove zaurus, zts, and ztsscale references
Explicitely include <sys/time.h> where needed.
Read multiple events at once.
diffstat:
x11/xf86-input-ws/MESSAGE | 4 +++-
x11/xf86-input-ws/Makefile | 5 ++---
x11/xf86-input-ws/distinfo | 12 +++++-------
x11/xf86-input-ws/patches/patch-src_emumb.c | 15 ---------------
x11/xf86-input-ws/patches/patch-src_emuwheel.c | 15 ---------------
x11/xf86-input-ws/patches/patch-src_ws.c | 25 ++++++++++++++++++-------
6 files changed, 28 insertions(+), 48 deletions(-)
diffs (127 lines):
diff -r b3922e0bc46d -r 3ac4c9f7e024 x11/xf86-input-ws/MESSAGE
--- a/x11/xf86-input-ws/MESSAGE Thu May 26 22:03:39 2022 +0000
+++ b/x11/xf86-input-ws/MESSAGE Fri May 27 02:35:43 2022 +0000
@@ -1,11 +1,13 @@
===========================================================================
-$NetBSD: MESSAGE,v 1.1 2015/10/10 20:02:52 tnn Exp $
+$NetBSD: MESSAGE,v 1.2 2022/05/27 02:35:43 tnn Exp $
To use this driver, your xorg.conf file should have an entry like this:
+Section "Device"
Identifier "Mouse0"
Driver "ws"
Option "Device" "/dev/wsmouse"
+EndSection
This should work with many wscons pointing devices, especially the zaurus.
Please see the ws(4) manual page for more information.
diff -r b3922e0bc46d -r 3ac4c9f7e024 x11/xf86-input-ws/Makefile
--- a/x11/xf86-input-ws/Makefile Thu May 26 22:03:39 2022 +0000
+++ b/x11/xf86-input-ws/Makefile Fri May 27 02:35:43 2022 +0000
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.7 2022/04/10 08:53:19 nia Exp $
+# $NetBSD: Makefile,v 1.8 2022/05/27 02:35:43 tnn Exp $
-DISTNAME= xf86-input-ws-1.3.0.20151010
-PKGREVISION= 2
+DISTNAME= xf86-input-ws-1.3.0.20220511
CATEGORIES= x11
MASTER_SITES= ${MASTER_SITE_LOCAL}
diff -r b3922e0bc46d -r 3ac4c9f7e024 x11/xf86-input-ws/distinfo
--- a/x11/xf86-input-ws/distinfo Thu May 26 22:03:39 2022 +0000
+++ b/x11/xf86-input-ws/distinfo Fri May 27 02:35:43 2022 +0000
@@ -1,8 +1,6 @@
-$NetBSD: distinfo,v 1.5 2021/10/26 11:34:40 nia Exp $
+$NetBSD: distinfo,v 1.6 2022/05/27 02:35:43 tnn Exp $
-BLAKE2s (xf86-input-ws-1.3.0.20151010.tar.gz) = 6505a4f8ce3c78a88fb88f9a84b06b7d38734d103c61dca35839fab8099fc3a1
-SHA512 (xf86-input-ws-1.3.0.20151010.tar.gz) = de347b98cb508c363ffb422ad1249ad069eae77222da03a875b15b0367ffee580f580a7f671adfb9e621c6b49f2d4772e85887ebbd851c2317630ea3780b497b
-Size (xf86-input-ws-1.3.0.20151010.tar.gz) = 323648 bytes
-SHA1 (patch-src_emumb.c) = 6e24f30272373f07eacfc86288e6513bc04b9abc
-SHA1 (patch-src_emuwheel.c) = 71898121faa75af02dc46dd597f87afb00ad2bc5
-SHA1 (patch-src_ws.c) = 66cdc536a6a931d117f2e22111b1b95bf1d63b84
+BLAKE2s (xf86-input-ws-1.3.0.20220511.tar.gz) = 2c84b8878160554e2a58c3ca086ca032bc9bf7be1dc8ed90413fb175ecfff53b
+SHA512 (xf86-input-ws-1.3.0.20220511.tar.gz) = 10581eb9ce9d5824c0a08530d0f6dde29abb7eb6e6a3865cdebb1156f79bcee249623cbf7f23679523003e7919773df9c6a3c4a35df8aeddc44a57fc83859e89
+Size (xf86-input-ws-1.3.0.20220511.tar.gz) = 347971 bytes
+SHA1 (patch-src_ws.c) = c30e0560dfb467b9a35fa67b1ef4b712d2f92d74
diff -r b3922e0bc46d -r 3ac4c9f7e024 x11/xf86-input-ws/patches/patch-src_emumb.c
--- a/x11/xf86-input-ws/patches/patch-src_emumb.c Thu May 26 22:03:39 2022 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-$NetBSD: patch-src_emumb.c,v 1.1 2015/12/18 11:19:12 taca Exp $
-
-* Fix build problem NetBSD 7.0_STABLE.
-
---- src/emumb.c.orig 2012-07-08 14:22:03.000000000 +0000
-+++ src/emumb.c
-@@ -36,6 +36,8 @@
- #include "config.h"
- #endif
-
-+#include <sys/time.h>
-+
- #include <xorg-server.h>
- #include <X11/Xatom.h>
- #include <xf86.h>
diff -r b3922e0bc46d -r 3ac4c9f7e024 x11/xf86-input-ws/patches/patch-src_emuwheel.c
--- a/x11/xf86-input-ws/patches/patch-src_emuwheel.c Thu May 26 22:03:39 2022 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-$NetBSD: patch-src_emuwheel.c,v 1.1 2015/12/18 11:19:12 taca Exp $
-
-* Fix build problem NetBSD 7.0_STABLE.
-
---- src/emuwheel.c.orig 2012-07-08 13:51:11.000000000 +0000
-+++ src/emuwheel.c
-@@ -36,6 +36,8 @@
- #include "config.h"
- #endif
-
-+#include <sys/time.h>
-+
- #include <xorg-server.h>
- #include <X11/Xatom.h>
- #include <xf86.h>
diff -r b3922e0bc46d -r 3ac4c9f7e024 x11/xf86-input-ws/patches/patch-src_ws.c
--- a/x11/xf86-input-ws/patches/patch-src_ws.c Thu May 26 22:03:39 2022 +0000
+++ b/x11/xf86-input-ws/patches/patch-src_ws.c Fri May 27 02:35:43 2022 +0000
@@ -1,8 +1,19 @@
-$NetBSD: patch-src_ws.c,v 1.1 2015/10/10 20:02:52 tnn Exp $
+$NetBSD: patch-src_ws.c,v 1.2 2022/05/27 02:35:43 tnn Exp $
+
+ws.c:407:3: warning: attempt to free a non-heap object
+Reported to upstream maintainers.
---- src/ws.c.orig 2015-08-29 08:48:29.000000000 +0000
+--- src/ws.c.orig 2022-05-27 02:04:14.000000000 +0000
+++ src/ws.c
-@@ -550,9 +550,11 @@ wsReadHwState(InputInfoPtr pInfo, wsHwSt
+@@ -404,7 +404,6 @@ wsDeviceInit(DeviceIntPtr pWS)
+ axes_labels[VSCROLL_AXIS], 0, -1, 0, 0, 0, Relative);
+ priv->scroll_mask = valuator_mask_new(MAX_VALUATORS);
+ if (!priv->scroll_mask) {
+- free(axes_labels);
+ return !Success;
+ }
+
+@@ -611,9 +610,11 @@ wsReadHwState(InputInfoPtr pInfo, wsHwSt
case WSCONS_EVENT_MOUSE_ABSOLUTE_W:
/* ignore those */
continue;
@@ -11,10 +22,10 @@
DBG(4, ErrorF("Sync\n"));
return TRUE;
+#endif
- default:
- xf86IDrvMsg(pInfo, X_WARNING,
- "bad wsmouse event type=%d\n", event->type);
-@@ -793,17 +795,23 @@ wsSetCalibProperty(DeviceIntPtr device,
+ case WSCONS_EVENT_HSCROLL:
+ hw->hscroll = event->value;
+ DBG(4, ErrorF("Horiz. Scrolling %d\n", event->value));
+@@ -876,17 +877,23 @@ wsSetCalibProperty(DeviceIntPtr device,
priv->coords.maxx = priv->max_x;
priv->coords.miny = priv->min_y;
priv->coords.maxy = priv->max_y;
Home |
Main Index |
Thread Index |
Old Index