Mon Jun 29 11:15:05 2015 UTC ()
Update to 13.1.0 (all new patches have already been accepted upstream):

This release is intended for general distro inclusion,
Testing has been performed on various linux distros, FreeBSD 10.1 and
Solaris 11.2.

 This release contains a number of build fixes and also changes to deal with
improved vmmouse port security and backoff if a vmmouse kernel module is
encountered. An additional dependency on libudev is introduced on linux.

Note that if the new linux 4.1 vmmouse functionality is used, the user-space
xf86-input-vmmouse driver can be skipped. Distros that want to keep the
xf86-input-vmmouse driver as a backup should *not* use any version prior to
13.0.99 since those versions would compete with the in-kernel vmmouse driver
for mouse input.

13.1.0:
Thomas Hellstrom (1):
      Bump version number for release

13.0.99:

Gaetan Nadon (6):
      Autoconf: remove AC_PROG_CC which overrides AC_PROG_CC_C99 from util-macros
      Autoconf: replace deprecated AC_HELP_STRING with AS_HELP_STRING
      Autoconf: minimum level required is 2.60
      Autoconf: Fix deprecated use of AC_OUTPUT
      "make dist" fails when workstation has no udev package
      tools: make install fails when user has no write permission in /lib

Jeremy Huddleston Sequoia (1):
      Always include config.h first

Lo誰c Yhuel (1):
      Fix wheel button labels

Peter Hutterer (4):
      Free the vmmouse data on UnInit
      Handle DEVICE_ABORT on ABI 19.1
      Don't de-reference pMse if it hasn't been initialised yet
      Drop AM_MAINTAINER_MODE

Stefan Dirsch (1):
      vmmouse_client.h: Include xorg-server.h before xf86_OSproc.h

Thomas Hellstrom (5):
      Back off if we detect a vmmouse kernel driver v3
      vmmouse: Run vmmouse_detect as an io privileged process
      vmmouse: Add support for the access restrict command
      vmmouse: Fix vmmouse_detect build on BSD
      vmmouse: Bump version number for release


(wiz)
diff -r1.18 -r1.19 pkgsrc/x11/xf86-input-vmmouse/Makefile
diff -r1.6 -r1.7 pkgsrc/x11/xf86-input-vmmouse/PLIST
diff -r1.7 -r1.8 pkgsrc/x11/xf86-input-vmmouse/distinfo
diff -r0 -r1.1 pkgsrc/x11/xf86-input-vmmouse/patches/patch-config.h.in
diff -r0 -r1.1 pkgsrc/x11/xf86-input-vmmouse/patches/patch-configure
diff -r0 -r1.1 pkgsrc/x11/xf86-input-vmmouse/patches/patch-tools_vmmouse__iopl.c

cvs diff -r1.18 -r1.19 pkgsrc/x11/xf86-input-vmmouse/Makefile (expand / switch to unified diff)

--- pkgsrc/x11/xf86-input-vmmouse/Makefile 2015/04/27 14:47:49 1.18
+++ pkgsrc/x11/xf86-input-vmmouse/Makefile 2015/06/29 11:15:05 1.19
@@ -1,17 +1,16 @@ @@ -1,17 +1,16 @@
1# $NetBSD: Makefile,v 1.18 2015/04/27 14:47:49 jperkin Exp $ 1# $NetBSD: Makefile,v 1.19 2015/06/29 11:15:05 wiz Exp $
2 2
3DISTNAME= xf86-input-vmmouse-13.0.0 3DISTNAME= xf86-input-vmmouse-13.1.0
4PKGREVISION= 3 
5CATEGORIES= x11 4CATEGORIES= x11
6MASTER_SITES= ${MASTER_SITE_XORG:=driver/} 5MASTER_SITES= ${MASTER_SITE_XORG:=driver/}
7EXTRACT_SUFX= .tar.bz2 6EXTRACT_SUFX= .tar.bz2
8 7
9MAINTAINER= joerg@NetBSD.org 8MAINTAINER= joerg@NetBSD.org
10HOMEPAGE= http://xorg.freedesktop.org/ 9HOMEPAGE= http://xorg.freedesktop.org/
11COMMENT= Modular Xorg VMware virtual mouse driver 10COMMENT= Modular Xorg VMware virtual mouse driver
12 11
13USE_LANGUAGES= c99 12USE_LANGUAGES= c99
14USE_LIBTOOL= YES 13USE_LIBTOOL= YES
15GNU_CONFIGURE= YES 14GNU_CONFIGURE= YES
16USE_TOOLS+= gmake pkg-config 15USE_TOOLS+= gmake pkg-config
17 16

cvs diff -r1.6 -r1.7 pkgsrc/x11/xf86-input-vmmouse/PLIST (expand / switch to unified diff)

--- pkgsrc/x11/xf86-input-vmmouse/PLIST 2013/05/16 05:55:18 1.6
+++ pkgsrc/x11/xf86-input-vmmouse/PLIST 2015/06/29 11:15:05 1.7
@@ -1,8 +1,9 @@ @@ -1,8 +1,9 @@
1@comment $NetBSD: PLIST,v 1.6 2013/05/16 05:55:18 richard Exp $ 1@comment $NetBSD: PLIST,v 1.7 2015/06/29 11:15:05 wiz Exp $
2bin/vmmouse_detect 2bin/vmmouse_detect
3lib/hal/hal-probe-vmmouse 3lib/hal/hal-probe-vmmouse
 4lib/udev/rules.d/69-xorg-vmmouse.rules
4lib/xorg/modules/input/vmmouse_drv.la 5lib/xorg/modules/input/vmmouse_drv.la
5man/man1/vmmouse_detect.1 6man/man1/vmmouse_detect.1
6man/man4/vmmouse.4 7man/man4/vmmouse.4
7share/hal/fdi/policy/20thirdparty/11-x11-vmmouse.fdi 
8share/X11/xorg.conf.d/50-vmmouse.conf 8share/X11/xorg.conf.d/50-vmmouse.conf
 9share/hal/fdi/policy/20thirdparty/11-x11-vmmouse.fdi

cvs diff -r1.7 -r1.8 pkgsrc/x11/xf86-input-vmmouse/distinfo (expand / switch to unified diff)

--- pkgsrc/x11/xf86-input-vmmouse/distinfo 2013/05/16 05:55:18 1.7
+++ pkgsrc/x11/xf86-input-vmmouse/distinfo 2015/06/29 11:15:05 1.8
@@ -1,5 +1,8 @@ @@ -1,5 +1,8 @@
1$NetBSD: distinfo,v 1.7 2013/05/16 05:55:18 richard Exp $ 1$NetBSD: distinfo,v 1.8 2015/06/29 11:15:05 wiz Exp $
2 2
3SHA1 (xf86-input-vmmouse-13.0.0.tar.bz2) = 0fa67d2ca9b2b26d32b93cc030fc3ea28964fe81 3SHA1 (xf86-input-vmmouse-13.1.0.tar.bz2) = c00fbf985b22a86901fa905a8037005bca96d805
4RMD160 (xf86-input-vmmouse-13.0.0.tar.bz2) = d5083a76f73a10c4ed137bd822b2b5c4b2e2c05e 4RMD160 (xf86-input-vmmouse-13.1.0.tar.bz2) = 45397da8726e6b3d81a9c61ed2c4b191495803aa
5Size (xf86-input-vmmouse-13.0.0.tar.bz2) = 314269 bytes 5Size (xf86-input-vmmouse-13.1.0.tar.bz2) = 319188 bytes
 6SHA1 (patch-config.h.in) = ee6936aef0cbb1402c000eb9a8cf1539dfe5e8ef
 7SHA1 (patch-configure) = 9ad8d39e00274b3eba69291ad2812ea41d150e55
 8SHA1 (patch-tools_vmmouse__iopl.c) = e0527fee0d29485580b2cfe64d09e27a7792278e

File Added: pkgsrc/x11/xf86-input-vmmouse/patches/Attic/patch-config.h.in
$NetBSD: patch-config.h.in,v 1.1 2015/06/29 11:15:05 wiz Exp $

--- config.h.in.orig	2015-06-25 10:27:50.000000000 +0000
+++ config.h.in
@@ -102,6 +102,9 @@
 /* BSD AMD64 iopl */
 #undef USE_AMD64_IOPL
 
+/* BSD X86_64 iopl */
+#undef USE_X86_64_IOPL
+
 /* BSD /dev/io */
 #undef USE_DEV_IO
 

File Added: pkgsrc/x11/xf86-input-vmmouse/patches/Attic/patch-configure
$NetBSD: patch-configure,v 1.1 2015/06/29 11:15:05 wiz Exp $

--- configure.orig	2015-06-25 10:27:50.000000000 +0000
+++ configure
@@ -18030,7 +18030,7 @@ $as_echo "#define VMMOUSE_OS_BSD 1" >>co
 
      ;;
      solaris*)
-	 if test "x$GCC" == "xyes"; then
+	 if test "x$GCC" = "xyes"; then
             CC="$save_solaris_cc -fms-extensions"
 	 fi
 
@@ -18077,9 +18077,9 @@ case $host_cpu in
 $as_echo "#define USE_DEV_IO 1" >>confdefs.h
  ;;
 		*netbsd*)
-$as_echo "#define USE_I386_IOPL 1" >>confdefs.h
+$as_echo "#define USE_X86_64_IOPL 1" >>confdefs.h
 
-				use_i386_iopl=yes ;;
+				use_x86_64_iopl=yes ;;
 		*openbsd*)
 $as_echo "#define USE_AMD64_IOPL 1" >>confdefs.h
 
@@ -18188,6 +18188,56 @@ fi
 
 fi
 
+if test x$use_x86_64_iopl = xyes; then
+   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86_64_iopl in -lx86_64" >&5
+$as_echo_n "checking for x86_64_iopl in -lx86_64... " >&6; }
+if ${ac_cv_lib_x86_64_x86_64_iopl+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  ac_check_lib_save_LIBS=$LIBS
+LIBS="-lx86_64  $LIBS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+
+/* Override any GCC internal prototype to avoid an error.
+   Use char because int might match the return type of a GCC
+   builtin and then its argument prototype would still apply.  */
+#ifdef __cplusplus
+extern "C"
+#endif
+char x86_64_iopl ();
+int
+main ()
+{
+return x86_64_iopl ();
+  ;
+  return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+  ac_cv_lib_x86_64_x86_64_iopl=yes
+else
+  ac_cv_lib_x86_64_x86_64_iopl=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+    conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_x86_64_x86_64_iopl" >&5
+$as_echo "$ac_cv_lib_x86_64_x86_64_iopl" >&6; }
+if test "x$ac_cv_lib_x86_64_x86_64_iopl" = xyes; then :
+  cat >>confdefs.h <<_ACEOF
+#define HAVE_LIBAMD64 1
+_ACEOF
+
+  LIBS="-lx86_64 $LIBS"
+
+else
+  as_fn_error $? "cannot find library for x86_64_iopl" "$LINENO" 5
+fi
+
+fi
+
 
 pkg_failed=no
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5

File Added: pkgsrc/x11/xf86-input-vmmouse/patches/Attic/patch-tools_vmmouse__iopl.c
$NetBSD: patch-tools_vmmouse__iopl.c,v 1.1 2015/06/29 11:15:05 wiz Exp $

--- tools/vmmouse_iopl.c.orig	2015-04-09 06:04:46.000000000 +0000
+++ tools/vmmouse_iopl.c
@@ -44,8 +44,15 @@
 
 #if defined(VMMOUSE_OS_BSD)
 #include <sys/types.h>
-#ifdef USE_I386_IOPL
+#if defined(USE_I386_IOPL) || defined(USE_AMD64_IOPL) || defined(USE_X86_64_IOPL)
 #include <machine/sysarch.h>
+#if defined(USE_I386_IOPL)
+#define IOPL_NAME i386_iopl
+#elif defined(USE_AMD64_IOPL)
+#define IOPL_NAME amd64_iopl
+#elif defined(USE_X86_64_IOPL)
+#define IOPL_NAME x86_64_iopl
+#endif
 /***************************************************************************/
 /* I/O Permissions section                                                 */
 /***************************************************************************/
@@ -57,7 +64,7 @@ xf86EnableIO()
     if (ExtendedEnabled)
 	return true;
 
-    if (i386_iopl(1) < 0)
+    if (IOPL_NAME(1) < 0)
 	return false;
 
     ExtendedEnabled = true;
@@ -70,48 +77,13 @@ xf86DisableIO()
     if (!ExtendedEnabled)
 	return;
 
-    i386_iopl(0);
+    IOPL_NAME(0);
 
     ExtendedEnabled = false;
     return;
 }
 
-#endif /* USE_I386_IOPL */
-
-#ifdef USE_AMD64_IOPL
-#include <machine/sysarch.h>
-/***************************************************************************/
-/* I/O Permissions section                                                 */
-/***************************************************************************/
-
-static bool ExtendedEnabled = false;
-
-bool
-xf86EnableIO()
-{
-    if (ExtendedEnabled)
-	return true;
-
-    if (amd64_iopl(1) < 0)
-	return false;
-
-    ExtendedEnabled = true;
-    return true;
-}
-
-void
-xf86DisableIO()
-{
-    if (!ExtendedEnabled)
-	return;
-
-    if (amd64_iopl(0) == 0)
-	ExtendedEnabled = false;
-
-    return;
-}
-
-#endif /* USE_AMD64_IOPL */
+#endif /* defined(USE_I386_IOPL) || defined(USE_AMD64_IOPL) || defined(USE_X86_64_IOPL) */
 
 #ifdef USE_DEV_IO
 #include <sys/stat.h>