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
--- 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
--- 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
--- 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
$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
$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
$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>