pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/x11/xf86-input-mouse
Module Name: pkgsrc
Committed By: ryoon
Date: Sat May 12 12:16:00 UTC 2018
Modified Files:
pkgsrc/x11/xf86-input-mouse: distinfo
Added Files:
pkgsrc/x11/xf86-input-mouse/patches: patch-src_mouse.c
Log Message:
Fix build under NetBSD with upstream patch
To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 pkgsrc/x11/xf86-input-mouse/distinfo
cvs rdiff -u -r0 -r1.3 pkgsrc/x11/xf86-input-mouse/patches/patch-src_mouse.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/x11/xf86-input-mouse/distinfo
diff -u pkgsrc/x11/xf86-input-mouse/distinfo:1.19 pkgsrc/x11/xf86-input-mouse/distinfo:1.20
--- pkgsrc/x11/xf86-input-mouse/distinfo:1.19 Thu Nov 17 08:06:52 2016
+++ pkgsrc/x11/xf86-input-mouse/distinfo Sat May 12 12:16:00 2018
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.19 2016/11/17 08:06:52 wiz Exp $
+$NetBSD: distinfo,v 1.20 2018/05/12 12:16:00 ryoon Exp $
SHA1 (xf86-input-mouse-1.9.2.tar.bz2) = d3a0839ad5a33665bb261a4fba33e3a6271817dc
RMD160 (xf86-input-mouse-1.9.2.tar.bz2) = c7d68c0de19787ceda4e4307b113b6d74e0cb62d
SHA512 (xf86-input-mouse-1.9.2.tar.bz2) = 30fdc4f699d434e2fb4a9f8d2f4f980538d646a6e4d2d572737fc5498c0bce0fb1ba080173ea0aa3480f574dde3f58d5a7ac837afdb29640ccb092b3f18ff209
Size (xf86-input-mouse-1.9.2.tar.bz2) = 377685 bytes
+SHA1 (patch-src_mouse.c) = 0e593e5c805af8d0be04925a8e0af97961fa4dd3
SHA1 (patch-src_sun__mouse.c) = e23157bc9bdb5840ac008648d1c9a894e7a900cc
Added files:
Index: pkgsrc/x11/xf86-input-mouse/patches/patch-src_mouse.c
diff -u /dev/null pkgsrc/x11/xf86-input-mouse/patches/patch-src_mouse.c:1.3
--- /dev/null Sat May 12 12:16:00 2018
+++ pkgsrc/x11/xf86-input-mouse/patches/patch-src_mouse.c Sat May 12 12:16:00 2018
@@ -0,0 +1,32 @@
+$NetBSD: patch-src_mouse.c,v 1.3 2018/05/12 12:16:00 ryoon Exp $
+
+From: https://cgit.freedesktop.org/xorg/driver/xf86-input-mouse/commit/?id=3c8f243b750a92d5837a449d344ff884dbd02b57
+Adapt to removal of xf86GetOS
+
+--- src/mouse.c.orig 2016-09-06 03:53:31.000000000 +0000
++++ src/mouse.c
+@@ -794,7 +794,6 @@ InitProtocols(void)
+ {
+ int classes;
+ int i;
+- const char *osname = NULL;
+
+ if (osInfo)
+ return TRUE;
+@@ -821,11 +820,11 @@ InitProtocols(void)
+ mouseProtocols[i].id = PROT_UNSUP;
+
+ /* NetBSD uses PROT_BM for "PS/2". */
+- xf86GetOS(&osname, NULL, NULL, NULL);
+- if (osname && xf86NameCmp(osname, "netbsd") == 0)
+- for (i = 0; mouseProtocols[i].name; i++)
+- if (mouseProtocols[i].id == PROT_PS2)
+- mouseProtocols[i].id = PROT_BM;
++#if defined(__NetBSD__)
++ for (i = 0; mouseProtocols[i].name; i++)
++ if (mouseProtocols[i].id == PROT_PS2)
++ mouseProtocols[i].id = PROT_BM;
++#endif
+
+ return TRUE;
+ }
Home |
Main Index |
Thread Index |
Old Index