[arch-commits] Commit in xf86-input-vmmouse/trunk (2 files)

andyrtr at archlinux.org andyrtr at archlinux.org
Fri Mar 9 12:13:20 EST 2012


    Date: Friday, March 9, 2012 @ 12:13:20
  Author: andyrtr
Revision: 152810

upgpkg: xf86-input-vmmouse 12.8.0-1

upstream update 12.8.0

Modified:
  xf86-input-vmmouse/trunk/PKGBUILD
Deleted:
  xf86-input-vmmouse/trunk/0001-Deal-with-opaque-InputOption-types-in-ABI-14.patch

---------------------------------------------------------+
 0001-Deal-with-opaque-InputOption-types-in-ABI-14.patch |   89 --------------
 PKGBUILD                                                |   11 -
 2 files changed, 4 insertions(+), 96 deletions(-)

Deleted: 0001-Deal-with-opaque-InputOption-types-in-ABI-14.patch
===================================================================
--- 0001-Deal-with-opaque-InputOption-types-in-ABI-14.patch	2012-03-09 17:11:42 UTC (rev 152809)
+++ 0001-Deal-with-opaque-InputOption-types-in-ABI-14.patch	2012-03-09 17:13:20 UTC (rev 152810)
@@ -1,89 +0,0 @@
-From 7aaf9f7c7aafda7561f6104fd9c1ff772ba61c6f Mon Sep 17 00:00:00 2001
-From: Peter Hutterer <peter.hutterer at who-t.net>
-Date: Thu, 10 Nov 2011 08:07:08 +1000
-Subject: [PATCH] Deal with opaque InputOption types in ABI 14
-
-Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
----
- src/vmmouse.c |   49 ++++++++++++++++++++++++++++++++++---------------
- 1 files changed, 34 insertions(+), 15 deletions(-)
-
-diff --git a/src/vmmouse.c b/src/vmmouse.c
-index ad014ec..285ba26 100644
---- a/src/vmmouse.c
-+++ b/src/vmmouse.c
-@@ -228,11 +228,40 @@ static char reverseMap[32] = { 0,  4,  2,  6,  1,  5,  3,  7,
- #define reverseBits(map, b)	(((b) & ~0x0f) | map[(b) & 0x0f])
- 
- #if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 12
-+#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) < 14
-+
-+static InputOption*
-+input_option_new(InputOption *list, char *key, char *value)
-+{
-+   InputOption *new;
-+
-+   new = calloc(1, sizeof(InputOption));
-+   new->key = key;
-+   new->value = value;
-+   new->next = list;
-+   return new;
-+}
-+
-+static void
-+input_option_free_list(InputOption **opts)
-+{
-+   InputOption *tmp = *opts;
-+   while(*opts)
-+   {
-+      tmp = (*opts)->next;
-+      free((*opts)->key);
-+      free((*opts)->value);
-+      free((*opts));
-+      *opts = tmp;
-+   }
-+}
-+#endif
-+
- static int
- VMMouseInitPassthru(InputDriverPtr drv, InputInfoPtr pInfo, int flags)
- {
-    InputAttributes *attrs = NULL;
--   InputOption *input_options = NULL, *tmp, *opts;
-+   InputOption *input_options = NULL;
-    pointer options;
-    DeviceIntPtr dev;
-    int rc;
-@@ -241,25 +270,15 @@ VMMouseInitPassthru(InputDriverPtr drv, InputInfoPtr pInfo, int flags)
-    options = xf86ReplaceStrOption(options, "Driver", "mouse");
- 
-    while(options) {
--      tmp = calloc(1, sizeof(InputOption));
--      tmp->key = xf86OptionName(options);
--      tmp->value = xf86OptionValue(options);
--      tmp->next = input_options;
--      input_options = tmp;
-+      input_options = input_option_new(input_options,
-+                                       xf86OptionName(options),
-+                                       xf86OptionValue(options));
-       options = xf86NextOption(options);
-    }
- 
-    rc = NewInputDeviceRequest(input_options, attrs, &dev);
- 
--   opts = input_options;
--   tmp = opts;
--   while(opts) {
--      tmp = opts->next;
--      free(opts->key);
--      free(opts->value);
--      free(opts);
--      opts = tmp;
--   }
-+   input_option_free_list(&input_options);
- 
-    return rc;
- }
--- 
-1.7.7
-

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2012-03-09 17:11:42 UTC (rev 152809)
+++ PKGBUILD	2012-03-09 17:13:20 UTC (rev 152810)
@@ -2,8 +2,8 @@
 # Maintainer: Jan de Groot <jgc at archlinux.org>
 
 pkgname=xf86-input-vmmouse
-pkgver=12.7.0
-pkgrel=4
+pkgver=12.8.0
+pkgrel=1
 pkgdesc="X.org VMWare Mouse input driver"
 arch=(i686 x86_64)
 license=('custom')
@@ -14,14 +14,11 @@
 groups=('xorg-drivers' 'xorg')
 backup=('etc/X11/xorg.conf.d/50-vmmouse.conf')
 options=('!libtool')
-source=(${url}/releases/individual/driver/${pkgname}-${pkgver}.tar.bz2
-        0001-Deal-with-opaque-InputOption-types-in-ABI-14.patch)
-sha1sums=('6618f84a037c8f4817e1a2822d6a5a795814e544'
-          '71283328a23e4b33e73164b40252fcd593b54e07')
+source=(${url}/releases/individual/driver/${pkgname}-${pkgver}.tar.bz2)
+sha1sums=('ecca90d5e992f9358f7932e0c46e92ebe715f9de')
 
 build() {
   cd "${srcdir}/${pkgname}-${pkgver}"
-  patch -Np1 -i ${srcdir}/0001-Deal-with-opaque-InputOption-types-in-ABI-14.patch
   ./configure --prefix=/usr --with-xorg-conf-dir=/etc/X11/xorg.conf.d
   make
 }



More information about the arch-commits mailing list