From ecd18257db5e164d1a6266b57f28079655484b9a Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Nov 19 2015 03:41:49 +0000 Subject: import xorg-x11-drv-evdev-2.9.2-2.el7 --- diff --git a/.gitignore b/.gitignore index 8063047..242e760 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -SOURCES/xf86-input-evdev-2.8.2.tar.bz2 +SOURCES/xf86-input-evdev-2.9.2.tar.bz2 diff --git a/.xorg-x11-drv-evdev.metadata b/.xorg-x11-drv-evdev.metadata index e2d4d33..94e2db1 100644 --- a/.xorg-x11-drv-evdev.metadata +++ b/.xorg-x11-drv-evdev.metadata @@ -1 +1 @@ -51888302fac547b1bc81996d36e2def1beb944c5 SOURCES/xf86-input-evdev-2.8.2.tar.bz2 +347eae8cc6c2f3f84bac77ce0b06eef06f541fd3 SOURCES/xf86-input-evdev-2.9.2.tar.bz2 diff --git a/SOURCES/0001-Drop-evdev-specific-XKB-defaults.patch b/SOURCES/0001-Drop-evdev-specific-XKB-defaults.patch new file mode 100644 index 0000000..fafecc7 --- /dev/null +++ b/SOURCES/0001-Drop-evdev-specific-XKB-defaults.patch @@ -0,0 +1,75 @@ +From 39ef4444a231d3b0296ba421b78f0417f18955f9 Mon Sep 17 00:00:00 2001 +From: Peter Hutterer +Date: Fri, 13 Feb 2015 08:12:38 +1000 +Subject: [PATCH evdev] Drop evdev-specific XKB defaults + +Just use the server defaults instead. This has very little effect, on most +systems there was some sort of default configuration applied anyway. + +Signed-off-by: Peter Hutterer +--- + src/evdev.c | 23 ++++++++++------------- + 1 file changed, 10 insertions(+), 13 deletions(-) + +diff --git a/src/evdev.c b/src/evdev.c +index 5cbce35..9c1a4d3 100644 +--- a/src/evdev.c ++++ b/src/evdev.c +@@ -90,13 +90,6 @@ + #define XI86_SERVER_FD 0x20 + #endif + +-static const char *evdevDefaults[] = { +- "XkbRules", "evdev", +- "XkbModel", "pc104", /* the right model for 'us' */ +- "XkbLayout", "us", +- NULL +-}; +- + /* Any of those triggers a proximity event */ + static int proximity_bits[] = { + BTN_TOOL_PEN, +@@ -1161,23 +1154,27 @@ static int + EvdevAddKeyClass(DeviceIntPtr device) + { + int rc = Success; +- XkbRMLVOSet rmlvo = {0}; ++ XkbRMLVOSet rmlvo = {0}, ++ defaults; + InputInfoPtr pInfo; + + pInfo = device->public.devicePrivate; + ++ XkbGetRulesDflts(&defaults); ++ + /* sorry, no rules change allowed for you */ + xf86ReplaceStrOption(pInfo->options, "xkb_rules", "evdev"); + rmlvo.rules = xf86SetStrOption(pInfo->options, "xkb_rules", NULL); +- rmlvo.model = xf86SetStrOption(pInfo->options, "xkb_model", NULL); +- rmlvo.layout = xf86SetStrOption(pInfo->options, "xkb_layout", NULL); +- rmlvo.variant = xf86SetStrOption(pInfo->options, "xkb_variant", NULL); +- rmlvo.options = xf86SetStrOption(pInfo->options, "xkb_options", NULL); ++ rmlvo.model = xf86SetStrOption(pInfo->options, "xkb_model", defaults.model); ++ rmlvo.layout = xf86SetStrOption(pInfo->options, "xkb_layout", defaults.layout); ++ rmlvo.variant = xf86SetStrOption(pInfo->options, "xkb_variant", defaults.variant); ++ rmlvo.options = xf86SetStrOption(pInfo->options, "xkb_options", defaults.options); + + if (!InitKeyboardDeviceStruct(device, &rmlvo, NULL, EvdevKbdCtrl)) + rc = !Success; + + XkbFreeRMLVOSet(&rmlvo, FALSE); ++ XkbFreeRMLVOSet(&defaults, FALSE); + + return rc; + } +@@ -2692,7 +2689,7 @@ _X_EXPORT InputDriverRec EVDEV = { + EvdevPreInit, + EvdevUnInit, + NULL, +- evdevDefaults, ++ NULL, + #ifdef XI86_DRV_CAP_SERVER_FD + XI86_DRV_CAP_SERVER_FD + #endif +-- +2.1.0 diff --git a/SPECS/xorg-x11-drv-evdev.spec b/SPECS/xorg-x11-drv-evdev.spec index 0919ba9..f042090 100644 --- a/SPECS/xorg-x11-drv-evdev.spec +++ b/SPECS/xorg-x11-drv-evdev.spec @@ -2,13 +2,13 @@ %global moduledir %(pkg-config xorg-server --variable=moduledir ) %global driverdir %{moduledir}/input -#global gitdate 20130214 -%global gitversion c085c8b6c +#global gitdate 20140417 +%global gitversion ae67f64 Summary: Xorg X11 evdev input driver Name: xorg-x11-drv-evdev -Version: 2.8.2 -Release: 5%{?gitdate:.%{gitdate}git%{gitversion}}%{?dist} +Version: 2.9.2 +Release: 2%{?gitdate:.%{gitdate}git%{gitversion}}%{?dist} URL: http://www.x.org License: MIT Group: User Interface/X Hardware Support @@ -21,11 +21,13 @@ Source2: commitid Source0: ftp://ftp.x.org/pub/individual/driver/%{tarball}-%{version}.tar.bz2 %endif +Patch01: 0001-Drop-evdev-specific-XKB-defaults.patch + ExcludeArch: s390 s390x BuildRequires: autoconf automake libtool BuildRequires: xorg-x11-server-devel >= 1.10.99.902 -BuildRequires: libudev-devel mtdev-devel +BuildRequires: libudev-devel mtdev-devel libevdev-devel BuildRequires: xorg-x11-util-macros >= 1.3.0 Requires: Xorg %(xserver-sdk-abi-requires ansic) @@ -38,6 +40,7 @@ X.Org X11 evdev input driver. %prep %setup -q -n %{tarball}-%{?gitdate:%{gitdate}}%{!?gitdate:%{version}} +%patch01 -p1 %build autoreconf --force -v --install || exit 1 @@ -79,6 +82,12 @@ X.Org X11 evdev input driver development files. %changelog +* Thu Apr 30 2015 Peter Hutterer 2.9.2-2 +- git-add the missing patch (#1194874) + +* Thu Apr 30 2015 Peter Hutterer 2.9.2-1 +- evdev 2.9.2 (#1194874) + * Wed Jan 15 2014 Adam Jackson - 2.8.2-5 - 1.15 ABI rebuild