summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChí-Thanh Christopher Nguyễn <chithanh@gentoo.org>2012-03-18 19:33:44 +0000
committerChí-Thanh Christopher Nguyễn <chithanh@gentoo.org>2012-03-18 19:33:44 +0000
commitfdbc122013d273f178cd1cb59b496a1ae17bf21b (patch)
tree84fc855e9225b4de4b9b1b1271fed83ad6dbd1a8 /x11-drivers
parentalpha/ia64/s390/sh/sparc stable wrt #404777 (diff)
downloadhistorical-fdbc122013d273f178cd1cb59b496a1ae17bf21b.tar.gz
historical-fdbc122013d273f178cd1cb59b496a1ae17bf21b.tar.bz2
historical-fdbc122013d273f178cd1cb59b496a1ae17bf21b.zip
Fix building against xorg-server-1.12.
Package-Manager: portage-2.2.0_alpha90/cvs/Linux x86_64
Diffstat (limited to 'x11-drivers')
-rw-r--r--x11-drivers/xf86-input-synaptics/ChangeLog9
-rw-r--r--x11-drivers/xf86-input-synaptics/Manifest7
-rw-r--r--x11-drivers/xf86-input-synaptics/files/xf86-input-synaptics-1.5.0-abi-lt14.patch27
-rw-r--r--x11-drivers/xf86-input-synaptics/files/xf86-input-synaptics-1.5.0-xf86optionrec.patch262
-rw-r--r--x11-drivers/xf86-input-synaptics/files/xf86-input-synaptics-1.5.0-xf86setstroption.patch69
-rw-r--r--x11-drivers/xf86-input-synaptics/xf86-input-synaptics-1.5.0.ebuild10
6 files changed, 379 insertions, 5 deletions
diff --git a/x11-drivers/xf86-input-synaptics/ChangeLog b/x11-drivers/xf86-input-synaptics/ChangeLog
index 56984c89d81b..98ffab42f03b 100644
--- a/x11-drivers/xf86-input-synaptics/ChangeLog
+++ b/x11-drivers/xf86-input-synaptics/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for x11-drivers/xf86-input-synaptics
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/x11-drivers/xf86-input-synaptics/ChangeLog,v 1.66 2012/03/18 17:08:05 chithanh Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-drivers/xf86-input-synaptics/ChangeLog,v 1.67 2012/03/18 19:33:44 chithanh Exp $
+
+ 18 Mar 2012; Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org>
+ +files/xf86-input-synaptics-1.5.0-abi-lt14.patch,
+ +files/xf86-input-synaptics-1.5.0-xf86optionrec.patch,
+ +files/xf86-input-synaptics-1.5.0-xf86setstroption.patch,
+ xf86-input-synaptics-1.5.0.ebuild:
+ Fix building against xorg-server-1.12.
18 Mar 2012; Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org>
xf86-input-synaptics-1.5.99.901.ebuild:
diff --git a/x11-drivers/xf86-input-synaptics/Manifest b/x11-drivers/xf86-input-synaptics/Manifest
index 0d3b21bc5b82..cc256cf570d9 100644
--- a/x11-drivers/xf86-input-synaptics/Manifest
+++ b/x11-drivers/xf86-input-synaptics/Manifest
@@ -1,10 +1,13 @@
+AUX xf86-input-synaptics-1.5.0-abi-lt14.patch 1179 RMD160 52abb2e8e51e68ed3fb7af3d04154f01ca5392b9 SHA1 ce51ddeb0398b0ee7afdc1dbe7aeb38cd524ff2e SHA256 6e4a7b126c1f860f72965f42f8a0959cfeb954e1c0035d8e575fa14e5aaeee78
+AUX xf86-input-synaptics-1.5.0-xf86optionrec.patch 8922 RMD160 56ca1d3dc386ea05e970e8fe77d6f0f4c4ff7b76 SHA1 60d255d80dd22cc668144dffc0941249dc7a0751 SHA256 460f24f9b5d6d86a2fa3a1ac6e481cef8ac737474ac9ca6f94bfac63db769ab8
+AUX xf86-input-synaptics-1.5.0-xf86setstroption.patch 2730 RMD160 7fba1b303c2adf60a5dc2cf254d679e91e3654ad SHA1 195d3615f9119a4d0249b8a6adc7bcb8a47aad84 SHA256 27cb494038bb120a121843a4ac4c19853cffa92d5a7e494334c335ccdab56d21
DIST xf86-input-synaptics-1.3.0.tar.bz2 394157 RMD160 05ac0cfd50eb6775c34693969768c3f6c61a7701 SHA1 132fff19a3a1768e7ab403f44ebc28e0480a4120 SHA256 30a33250c4f3d2daa8a61cab847dc7befd3248db0fca139d17fd7b890b5a8fd7
DIST xf86-input-synaptics-1.4.0.tar.bz2 395776 RMD160 e2fc6bc6de627e507dc0ff923b433862e4d36659 SHA1 96541b063482568e177f883a9fcfbe9a22c25569 SHA256 5874d979f028636dbddf14fffb84b496b006e63d5ea8dfa120820e58642812c2
DIST xf86-input-synaptics-1.5.0.tar.bz2 431123 RMD160 90d70ea2e0cc7605e137375cb003afebe895575a SHA1 7373c1e3f02bf7e18f71b65762a982d907b4a053 SHA256 95cc5399fc49c9a35b02c2272cd99b8438f4609b219278c66a79e74c916a1c4e
DIST xf86-input-synaptics-1.5.99.901.tar.bz2 416733 RMD160 cf63de4d57b6f622ef69adb0a222db6ba0999bb6 SHA1 8836b1c2bf443b2c11f38457e203c5309698d9d0 SHA256 da37ec8100dab7f370bcc06bec664298b6c16f39c0b8b900e53024d3d0a4a526
EBUILD xf86-input-synaptics-1.3.0.ebuild 1003 RMD160 a41c2237892ce61ed64e98d8160845800d5af871 SHA1 7ecf50b1526daf2478373b4ebe7cd9976b0fe380 SHA256 c4525cd9440f908fbb6d082ae0d552a27fc77e525e18a7795c0a8d5bf2677584
EBUILD xf86-input-synaptics-1.4.0.ebuild 968 RMD160 448c1028e6c8f813f23722ff83a9cf62e367d852 SHA1 d35e904e54267bdbaa3f21d9ce7ce37cb63f7038 SHA256 a731c3fdc3faf1b7c0281b8caeac722cb0d1c4f19f68410377d45d0c1e08c0e8
-EBUILD xf86-input-synaptics-1.5.0.ebuild 951 RMD160 1627df1e72d428821f70ec63eef050bd56d63077 SHA1 0dd9daf76a4475f15d15a76c93d97a602b5e8057 SHA256 fb745146e2d5fb5b6f7c1f8e210436021c9c87ae770ae43f256f7f3948178c6f
+EBUILD xf86-input-synaptics-1.5.0.ebuild 1103 RMD160 675e337ee32dd3832d1fa1f741fef0ec3941c568 SHA1 cba1c21f124a88721b56c4cef09183df782ceba8 SHA256 1957f4e722afd1f5a6ab00b79fa30652db467ce9c01ea53cc307070cc294db88
EBUILD xf86-input-synaptics-1.5.99.901.ebuild 993 RMD160 12e74af59cdfcb922cf19eaacf7e7f804aa1e747 SHA1 4c543256fe15510247544c432e4b6603b9176e91 SHA256 012a373761afb3c11608536abb1c158f2df64ef5eab67038390cae47fc1e3154
-MISC ChangeLog 13349 RMD160 edc23349f42b8ce502c5cb8c7048f2c46732e32d SHA1 75843e810458f51c133dec4f8cd23dd326cf3e44 SHA256 deed62d025c865996b173dfbbea9aa43908b7382b31351640e66f76145d49eee
+MISC ChangeLog 13666 RMD160 952a99b71fdc97b1c084ccc0dbabdfeaf6194b6c SHA1 6d9cc13075bcef589fbb509ec5ba21f945b3d7b8 SHA256 bf599b0d20179f7bfef12fabfa73eab4cbbcc9074fb68f7449d3b670049236bc
MISC metadata.xml 397 RMD160 c01cf603d8ef6fc1fd03c04008ea2c62cbfab2d3 SHA1 a008e54ae2bf5800719e4d2a67ceae6b913a7f52 SHA256 fece0557310dc7deb0f0dc3a7a13b9a33b1b9ad18895eedc493fc1a488573bd4
diff --git a/x11-drivers/xf86-input-synaptics/files/xf86-input-synaptics-1.5.0-abi-lt14.patch b/x11-drivers/xf86-input-synaptics/files/xf86-input-synaptics-1.5.0-abi-lt14.patch
new file mode 100644
index 000000000000..08808f7875e4
--- /dev/null
+++ b/x11-drivers/xf86-input-synaptics/files/xf86-input-synaptics-1.5.0-abi-lt14.patch
@@ -0,0 +1,27 @@
+From c861d4568c2c6cc56db8e683a8d7035bef711262 Mon Sep 17 00:00:00 2001
+From: Peter Hutterer <peter.hutterer@who-t.net>
+Date: Tue, 03 Jan 2012 01:03:14 +0000
+Subject: test: fix build error introduced in 9f9b55ab55ed5
+
+Bad search/replace, ended up in two xf86SetStrOption declarations which
+differed on ABIs < 14.
+
+Fixes https://bugs.freedesktop.org/show_bug.cgi?id=44335
+
+Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
+Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
+---
+diff --git a/test/fake-symbols.h b/test/fake-symbols.h
+index a297d28..1fa1716 100644
+--- a/test/fake-symbols.h
++++ b/test/fake-symbols.h
+@@ -25,7 +25,6 @@ extern char* xf86CheckStrOption(OPTTYPE optlist, const char *name, char *deflt);
+
+
+ extern char * xf86SetStrOption(OPTTYPE optlist, const char *name, CONST char *deflt);
+-extern _X_EXPORT char *xf86SetStrOption(XF86OptionPtr optlist, const char *name, const char *deflt);
+ extern int xf86SetBoolOption(OPTTYPE optlist, const char *name, int deflt);
+ extern OPTTYPE xf86AddNewOption(OPTTYPE head, const char *name, const char *val);
+ extern CONST char* xf86FindOptionValue(OPTTYPE options, const char *name);
+--
+cgit v0.9.0.2-2-gbebe
diff --git a/x11-drivers/xf86-input-synaptics/files/xf86-input-synaptics-1.5.0-xf86optionrec.patch b/x11-drivers/xf86-input-synaptics/files/xf86-input-synaptics-1.5.0-xf86optionrec.patch
new file mode 100644
index 000000000000..fdd2733505c5
--- /dev/null
+++ b/x11-drivers/xf86-input-synaptics/files/xf86-input-synaptics-1.5.0-xf86optionrec.patch
@@ -0,0 +1,262 @@
+From a15af628154ac37f24896a30614f3be6ecdb65c4 Mon Sep 17 00:00:00 2001
+From: Peter Hutterer <peter.hutterer@who-t.net>
+Date: Wed, 12 Oct 2011 01:20:06 +0000
+Subject: test: wrap ABI 14 xf86OptionRec type changes
+
+ABI 13 still uses pointer as type for most option calls, ABI 14 uses the
+proper type now. Wrap this so we can build against both versions.
+
+Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
+---
+diff --git a/test/fake-symbols.c b/test/fake-symbols.c
+index 71c3bc5..a312aa0 100644
+--- a/test/fake-symbols.c
++++ b/test/fake-symbols.c
+@@ -26,7 +26,7 @@ xf86WaitForInput (int fd, int timeout)
+ }
+
+ _X_EXPORT int
+-xf86OpenSerial (pointer options)
++xf86OpenSerial (OPTTYPE options)
+ {
+ return 0;
+ }
+@@ -37,43 +37,43 @@ xf86SetSerialSpeed (int fd, int speed)
+ return 0;
+ }
+
+-_X_EXPORT pointer
+-xf86ReplaceIntOption(pointer optlist, const char *name, const int val)
++_X_EXPORT OPTTYPE
++xf86ReplaceIntOption(OPTTYPE optlist, const char *name, const int val)
+ {
+ return NULL;
+ }
+
+ _X_EXPORT char *
+-xf86SetStrOption(pointer optlist, const char *name, char *deflt)
++xf86SetStrOption(OPTTYPE optlist, const char *name, char *deflt)
+ {
+ return NULL;
+ }
+
+ _X_EXPORT int
+-xf86SetBoolOption(pointer optlist, const char *name, int deflt)
++xf86SetBoolOption(OPTTYPE optlist, const char *name, int deflt)
+ {
+ return 0;
+ }
+
+-_X_EXPORT pointer
+-xf86AddNewOption(pointer head, const char *name, const char *val)
++_X_EXPORT OPTTYPE
++xf86AddNewOption(OPTTYPE head, const char *name, const char *val)
+ {
+ return NULL;
+ }
+ _X_EXPORT char *
+-xf86FindOptionValue(pointer options, const char *name)
++xf86FindOptionValue(OPTTYPE options, const char *name)
+ {
+ return NULL;
+ }
+
+ _X_EXPORT char *
+-xf86OptionName(pointer opt)
++xf86OptionName(OPTTYPE opt)
+ {
+ return NULL;
+ }
+
+ _X_EXPORT char *
+-xf86OptionValue(pointer opt)
++xf86OptionValue(OPTTYPE opt)
+ {
+ return NULL;
+ }
+@@ -85,7 +85,7 @@ xf86NameCmp(const char *s1, const char *s2)
+ }
+
+ _X_EXPORT char *
+-xf86CheckStrOption(pointer optlist, const char *name, char *deflt)
++xf86CheckStrOption(OPTTYPE optlist, const char *name, char *deflt)
+ {
+ return NULL;
+ }
+@@ -196,8 +196,8 @@ xf86DeleteInput(InputInfoPtr pInp, int flags)
+ return;
+ }
+
+-_X_EXPORT pointer
+-xf86OptionListDuplicate(pointer options)
++_X_EXPORT OPTTYPE
++xf86OptionListDuplicate(OPTTYPE options)
+ {
+ return NULL;
+ }
+@@ -225,7 +225,7 @@ xf86PostKeyboardEvent(DeviceIntPtr device,
+ }
+
+ _X_EXPORT int
+-xf86SetIntOption(pointer optlist, const char *name, int deflt)
++xf86SetIntOption(OPTTYPE optlist, const char *name, int deflt)
+ {
+ return 0;
+ }
+@@ -254,7 +254,7 @@ InitPtrFeedbackClassDeviceStruct(DeviceIntPtr dev, PtrCtrlProcPtr controlProc)
+ _X_EXPORT int
+ XIChangeDeviceProperty (DeviceIntPtr dev, Atom property, Atom type,
+ int format, int mode, unsigned long len,
+- pointer value, Bool sendevent)
++ OPTTYPE value, Bool sendevent)
+ {
+ return 0;
+ }
+@@ -367,15 +367,15 @@ InitValuatorClassDeviceStruct(DeviceIntPtr dev, int numAxes, Atom *labels,
+ }
+
+
+-_X_EXPORT pointer
+-xf86ReplaceStrOption(pointer optlist, const char *name, const char* val)
++_X_EXPORT OPTTYPE
++xf86ReplaceStrOption(OPTTYPE optlist, const char *name, const char* val)
+ {
+ return NULL;
+ }
+
+
+-_X_EXPORT pointer
+-xf86NextOption(pointer list)
++_X_EXPORT OPTTYPE
++xf86NextOption(OPTTYPE list)
+ {
+ return NULL;
+ }
+@@ -424,14 +424,14 @@ InitFocusClassDeviceStruct(DeviceIntPtr dev)
+
+ #if GET_ABI_MAJOR(ABI_XINPUT_VERSION) < 12
+ void
+-xf86ProcessCommonOptions(InputInfoPtr pInfo, pointer list)
++xf86ProcessCommonOptions(InputInfoPtr pInfo, OPTTYPE list)
+ {
+ }
+
+ void
+ xf86CollectInputOptions(InputInfoPtr pInfo,
+ const char **defaultOpts,
+- pointer extraOpts)
++ OPTTYPE extraOpts)
+ {
+ }
+
+diff --git a/test/fake-symbols.h b/test/fake-symbols.h
+index dfe1355..7c74f7a 100644
+--- a/test/fake-symbols.h
++++ b/test/fake-symbols.h
+@@ -1,29 +1,35 @@
+ #include <xorg-server.h>
+ #include <xf86Xinput.h>
+
++#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 14
++#define OPTTYPE XF86OptionPtr
++#else
++#define OPTTYPE pointer
++#endif
++
+ extern int xf86ReadSerial (int fd, void *buf, int count);
+ extern int xf86WriteSerial (int fd, const void *buf, int count);
+ extern int xf86CloseSerial (int fd);
+ extern int xf86WaitForInput (int fd, int timeout);
+-extern int xf86OpenSerial (pointer options);
++extern int xf86OpenSerial (OPTTYPE options);
+ extern int xf86SetSerialSpeed (int fd, int speed);
+
+-extern pointer xf86ReplaceIntOption(pointer optlist, const char *name, const int val);
+-extern pointer xf86AddNewOption(pointer head, const char *name, const char *val);
+-extern char* xf86OptionName(pointer opt);
+-extern char* xf86FindOptionValue(pointer options, const char *name);
++extern OPTTYPE xf86ReplaceIntOption(OPTTYPE optlist, const char *name, const int val);
++extern OPTTYPE xf86AddNewOption(OPTTYPE head, const char *name, const char *val);
++extern char* xf86OptionName(OPTTYPE opt);
++extern char* xf86FindOptionValue(OPTTYPE options, const char *name);
+ extern int xf86NameCmp(const char *s1, const char *s2);
+-extern char* xf86CheckStrOption(pointer optlist, const char *name, char *deflt);
++extern char* xf86CheckStrOption(OPTTYPE optlist, const char *name, char *deflt);
+
+
+-extern char * xf86SetStrOption(pointer optlist, const char *name, char *deflt);
+-extern int xf86SetBoolOption(pointer optlist, const char *name, int deflt);
+-extern pointer xf86AddNewOption(pointer head, const char *name, const char *val);
+-extern char* xf86FindOptionValue(pointer options, const char *name);
+-extern char* xf86OptionName(pointer opt);
+-extern char *xf86OptionValue(pointer opt);
++extern char * xf86SetStrOption(OPTTYPE optlist, const char *name, char *deflt);
++extern int xf86SetBoolOption(OPTTYPE optlist, const char *name, int deflt);
++extern OPTTYPE xf86AddNewOption(OPTTYPE head, const char *name, const char *val);
++extern char* xf86FindOptionValue(OPTTYPE options, const char *name);
++extern char* xf86OptionName(OPTTYPE opt);
++extern char *xf86OptionValue(OPTTYPE opt);
+ extern int xf86NameCmp(const char *s1, const char *s2);
+-extern char * xf86CheckStrOption(pointer optlist, const char *name, char *deflt);
++extern char * xf86CheckStrOption(OPTTYPE optlist, const char *name, char *deflt);
+ extern void xf86AddEnabledDevice(InputInfoPtr pInfo);
+ extern void xf86RemoveEnabledDevice(InputInfoPtr pInfo);
+ extern Atom XIGetKnownProperty(char *name);
+@@ -53,7 +59,7 @@ XISetDevicePropertyDeletable(DeviceIntPtr dev, Atom property, Bool deletable);
+
+ extern InputInfoPtr xf86FirstLocalDevice(void);
+ extern void xf86DeleteInput(InputInfoPtr pInp, int flags);
+-extern pointer xf86OptionListDuplicate(pointer options);
++extern OPTTYPE xf86OptionListDuplicate(OPTTYPE options);
+ extern Bool
+ InitButtonClassDeviceStruct(DeviceIntPtr dev, int numButtons, Atom* labels,
+ CARD8 *map);
+@@ -65,7 +71,7 @@ xf86PostKeyboardEvent(DeviceIntPtr device,
+ unsigned int key_code,
+ int is_down);
+ extern int
+-xf86SetIntOption(pointer optlist, const char *name, int deflt);
++xf86SetIntOption(OPTTYPE optlist, const char *name, int deflt);
+ extern void
+ xf86PostButtonEventP(DeviceIntPtr device,
+ int is_absolute,
+@@ -83,7 +89,7 @@ InitPtrFeedbackClassDeviceStruct(DeviceIntPtr dev, PtrCtrlProcPtr controlProc);
+ extern int
+ XIChangeDeviceProperty (DeviceIntPtr dev, Atom property, Atom type,
+ int format, int mode, unsigned long len,
+- pointer value, Bool sendevent);
++ OPTTYPE value, Bool sendevent);
+ extern CARD32 GetTimeInMillis (void);
+
+ extern int
+@@ -132,10 +138,10 @@ extern Bool
+ InitValuatorClassDeviceStruct(DeviceIntPtr dev, int numAxes, Atom *labels,
+ int numMotionEvents, int mode);
+
+-extern pointer
+-xf86ReplaceStrOption(pointer optlist, const char *name, const char* val);
++extern OPTTYPE
++xf86ReplaceStrOption(OPTTYPE optlist, const char *name, const char* val);
+
+-extern pointer xf86NextOption(pointer list);
++extern OPTTYPE xf86NextOption(OPTTYPE list);
+
+ extern int
+ XIGetDeviceProperty (DeviceIntPtr dev, Atom property, XIPropertyValuePtr *value);
+@@ -159,12 +165,12 @@ extern Bool InitFocusClassDeviceStruct(DeviceIntPtr dev);
+
+ #if GET_ABI_MAJOR(ABI_XINPUT_VERSION) < 12
+ extern void
+-xf86ProcessCommonOptions(InputInfoPtr pInfo, pointer list);
++xf86ProcessCommonOptions(InputInfoPtr pInfo, OPTTYPE list);
+
+ extern void
+ xf86CollectInputOptions(InputInfoPtr pInfo,
+ const char **defaultOpts,
+- pointer extraOpts);
++ OPTTYPE extraOpts);
+
+ extern InputInfoPtr
+ xf86AllocateInput(InputDriverPtr drv, int flags);
+--
+cgit v0.9.0.2-2-gbebe
diff --git a/x11-drivers/xf86-input-synaptics/files/xf86-input-synaptics-1.5.0-xf86setstroption.patch b/x11-drivers/xf86-input-synaptics/files/xf86-input-synaptics-1.5.0-xf86setstroption.patch
new file mode 100644
index 000000000000..06a3d1124a54
--- /dev/null
+++ b/x11-drivers/xf86-input-synaptics/files/xf86-input-synaptics-1.5.0-xf86setstroption.patch
@@ -0,0 +1,69 @@
+From 9f9b55ab55ed5251c1607c59d8817231d076d82c Mon Sep 17 00:00:00 2001
+From: Peter Hutterer <peter.hutterer@who-t.net>
+Date: Mon, 12 Dec 2011 01:35:37 +0000
+Subject: test: fix build errors introduced by upstream server change
+
+Introduced by upstream change xorg-server-1.11.99.1-33-g09e4b78,
+ Fix gcc -Wwrite-strings warnings in xf86 ddx
+
+Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
+---
+diff --git a/test/fake-symbols.c b/test/fake-symbols.c
+index a312aa0..2d94622 100644
+--- a/test/fake-symbols.c
++++ b/test/fake-symbols.c
+@@ -44,7 +44,7 @@ xf86ReplaceIntOption(OPTTYPE optlist, const char *name, const int val)
+ }
+
+ _X_EXPORT char *
+-xf86SetStrOption(OPTTYPE optlist, const char *name, char *deflt)
++xf86SetStrOption(OPTTYPE optlist, const char *name, CONST char *deflt)
+ {
+ return NULL;
+ }
+@@ -60,7 +60,7 @@ xf86AddNewOption(OPTTYPE head, const char *name, const char *val)
+ {
+ return NULL;
+ }
+-_X_EXPORT char *
++_X_EXPORT CONST char *
+ xf86FindOptionValue(OPTTYPE options, const char *name)
+ {
+ return NULL;
+diff --git a/test/fake-symbols.h b/test/fake-symbols.h
+index 7c74f7a..a297d28 100644
+--- a/test/fake-symbols.h
++++ b/test/fake-symbols.h
+@@ -3,8 +3,10 @@
+
+ #if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 14
+ #define OPTTYPE XF86OptionPtr
++#define CONST const
+ #else
+ #define OPTTYPE pointer
++#define CONST
+ #endif
+
+ extern int xf86ReadSerial (int fd, void *buf, int count);
+@@ -17,15 +19,16 @@ extern int xf86SetSerialSpeed (int fd, int speed);
+ extern OPTTYPE xf86ReplaceIntOption(OPTTYPE optlist, const char *name, const int val);
+ extern OPTTYPE xf86AddNewOption(OPTTYPE head, const char *name, const char *val);
+ extern char* xf86OptionName(OPTTYPE opt);
+-extern char* xf86FindOptionValue(OPTTYPE options, const char *name);
++extern CONST char* xf86FindOptionValue(OPTTYPE options, const char *name);
+ extern int xf86NameCmp(const char *s1, const char *s2);
+ extern char* xf86CheckStrOption(OPTTYPE optlist, const char *name, char *deflt);
+
+
+-extern char * xf86SetStrOption(OPTTYPE optlist, const char *name, char *deflt);
++extern char * xf86SetStrOption(OPTTYPE optlist, const char *name, CONST char *deflt);
++extern _X_EXPORT char *xf86SetStrOption(XF86OptionPtr optlist, const char *name, const char *deflt);
+ extern int xf86SetBoolOption(OPTTYPE optlist, const char *name, int deflt);
+ extern OPTTYPE xf86AddNewOption(OPTTYPE head, const char *name, const char *val);
+-extern char* xf86FindOptionValue(OPTTYPE options, const char *name);
++extern CONST char* xf86FindOptionValue(OPTTYPE options, const char *name);
+ extern char* xf86OptionName(OPTTYPE opt);
+ extern char *xf86OptionValue(OPTTYPE opt);
+ extern int xf86NameCmp(const char *s1, const char *s2);
+--
+cgit v0.9.0.2-2-gbebe
diff --git a/x11-drivers/xf86-input-synaptics/xf86-input-synaptics-1.5.0.ebuild b/x11-drivers/xf86-input-synaptics/xf86-input-synaptics-1.5.0.ebuild
index 3d535d081600..7a8e943548f4 100644
--- a/x11-drivers/xf86-input-synaptics/xf86-input-synaptics-1.5.0.ebuild
+++ b/x11-drivers/xf86-input-synaptics/xf86-input-synaptics-1.5.0.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2011 Gentoo Foundation
+# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/x11-drivers/xf86-input-synaptics/xf86-input-synaptics-1.5.0.ebuild,v 1.1 2011/11/16 21:31:05 chithanh Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-drivers/xf86-input-synaptics/xf86-input-synaptics-1.5.0.ebuild,v 1.2 2012/03/18 19:33:44 chithanh Exp $
EAPI=4
@@ -34,3 +34,9 @@ pkg_pretend() {
echo
fi
}
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.5.0-xf86optionrec.patch
+ "${FILESDIR}"/${PN}-1.5.0-xf86setstroption.patch
+ "${FILESDIR}"/${PN}-1.5.0-abi-lt14.patch
+)