Unbreak package when built against inputproto-2.1, bug #395555.
authorChí-Thanh Christopher Nguyễn <chithanh@gentoo.org>
Wed, 21 Dec 2011 19:41:42 +0000 (19:41 +0000)
committerChí-Thanh Christopher Nguyễn <chithanh@gentoo.org>
Wed, 21 Dec 2011 19:41:42 +0000 (19:41 +0000)
Package-Manager: portage-2.2.0_alpha79/cvs/Linux x86_64

x11-apps/xinput/ChangeLog
x11-apps/xinput/Manifest
x11-apps/xinput/files/xinput-1.5.3-inputproto-2.1.patch [new file with mode: 0644]
x11-apps/xinput/xinput-1.5.3-r1.ebuild [new file with mode: 0644]
x11-apps/xinput/xinput-1.5.3.ebuild

index 2555ecc9bed0105f166313bf56c954dd2ca8937e..02eec9b8f535410d7dd6f0a4e226011f071f3129 100644 (file)
@@ -1,6 +1,13 @@
 # ChangeLog for x11-apps/xinput
 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/x11-apps/xinput/ChangeLog,v 1.38 2011/02/14 23:41:02 xarthisius Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-apps/xinput/ChangeLog,v 1.39 2011/12/21 19:41:42 chithanh Exp $
+
+*xinput-1.5.3-r1 (21 Dec 2011)
+
+  21 Dec 2011; Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org>
+  xinput-1.5.3.ebuild, +xinput-1.5.3-r1.ebuild,
+  +files/xinput-1.5.3-inputproto-2.1.patch:
+  Unbreak package when built against inputproto-2.1, bug #395555.
 
   14 Feb 2011; Kacper Kowalik <xarthisius@gentoo.org> xinput-1.5.3.ebuild:
   ppc stable wrt #344827, #354237
index 6efd2c9798cdb8e858611e991de735b1a6f0ae01..c668ebaf526218ff79fa5c00d4a934e3ab2af4e1 100644 (file)
@@ -1,4 +1,6 @@
+AUX xinput-1.5.3-inputproto-2.1.patch 1174 RMD160 8bd64224dc1772c67899a2eaeb7afba412c36a03 SHA1 c3df8315e7cc0e0d4d8370751c0875707e0871b2 SHA256 34b51cc3bd6b9b1a48220b3bcdf4680bed243439ba5e1a21fbb27ba268e6301c
 DIST xinput-1.5.3.tar.bz2 131585 RMD160 15b3b23b900db9475c29bd4316e6b8f9801f4d2e SHA1 70f258279acaa45fb77820ae3f8c2bee9f2d2235 SHA256 6aade131cecddaeefc39ddce1dd5e8473f6039c2e4efbfd9fbb5ee2a75885c76
-EBUILD xinput-1.5.3.ebuild 505 RMD160 62541fccff2c22d806e8733c594dfbd6e19a1535 SHA1 d43675a54309b283999da40a02734272776afa94 SHA256 80d8b81c8e3e354ed42dc1daa6847900840d1a294c943a5a9f005255cf9d94b8
-MISC ChangeLog 7620 RMD160 8fc6361e3033051b87ebaa05f7263acdfb6f9169 SHA1 35fe9becddf60119986d19ef8da9f93d3e125367 SHA256 1fba43d61e64107fe226b78ea2b789a1d7dc2c96bdb2dd2da264ba697f62d622
+EBUILD xinput-1.5.3-r1.ebuild 572 RMD160 4cedbb087fe24857c34ec127b5a5453270b08c0e SHA1 2eaa75444635701d0733cb8780e4468f06e62b86 SHA256 6ec09c02bce78f5af90180ce3e01747e203d75ee402f128efef35b6ff510aaf5
+EBUILD xinput-1.5.3.ebuild 505 RMD160 9b8eff4aa0c85c991859b857ffea91cf2892a642 SHA1 eea491a34ca87b77c56184a3723e5ab56e4ae99f SHA256 fe64f41be6d856cff24b9d682f7a81a5a77213f811ead0f9b28685749c745dbd
+MISC ChangeLog 7878 RMD160 f62bb043d56fafb802128d1285517381fa37764d SHA1 7592c54e0e2324eef30527df60cd584478cffb0c SHA256 3d3eb3c5ee8c172d24ef07268a51a7e2396c8cefe952ea5012f5995ae75bec0c
 MISC metadata.xml 157 RMD160 bfca46b367901674b4ec5419c063ae27fb446b0a SHA1 4fe7fb7398abd34822cec8be77f8aaf86e28a1a3 SHA256 bc6a4a3d5e32f9329039b242036828256c9f2c33862bc1d606d4ac8427032fdc
diff --git a/x11-apps/xinput/files/xinput-1.5.3-inputproto-2.1.patch b/x11-apps/xinput/files/xinput-1.5.3-inputproto-2.1.patch
new file mode 100644 (file)
index 0000000..632a110
--- /dev/null
@@ -0,0 +1,36 @@
+From 4be60c90008ac48e72e819e078ce957fd003a509 Mon Sep 17 00:00:00 2001
+From: Peter Hutterer <peter.hutterer@who-t.net>
+Date: Fri, 12 Aug 2011 04:20:21 +0000
+Subject: list: don't use defines for checking server version.
+
+Otherwise we run into the old problem again: recompiling xinput against
+newer inputproto headers will appear to change the version support,
+potentially causing errors or other misbehaviours.
+
+Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
+Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
+---
+diff --git a/src/list.c b/src/list.c
+index b4649eb..b791e81 100644
+--- a/src/list.c
++++ b/src/list.c
+@@ -248,14 +248,14 @@ static int
+ list_xi2(Display *display,
+          enum print_format format)
+ {
+-    int major = XI_2_Major,
+-        minor = XI_2_Minor;
++    int major = 2,
++        minor = 0;
+     int ndevices;
+     int i, j;
+     XIDeviceInfo *info, *dev;
+     if (XIQueryVersion(display, &major, &minor) != Success ||
+-        (major * 1000 + minor) < (XI_2_Major * 1000 + XI_2_Minor))
++        (major * 1000 + minor) < 2000)
+     {
+         fprintf(stderr, "XI2 not supported.\n");
+         return EXIT_FAILURE;
+--
+cgit v0.9.0.2-2-gbebe
diff --git a/x11-apps/xinput/xinput-1.5.3-r1.ebuild b/x11-apps/xinput/xinput-1.5.3-r1.ebuild
new file mode 100644 (file)
index 0000000..856b30a
--- /dev/null
@@ -0,0 +1,21 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/x11-apps/xinput/xinput-1.5.3-r1.ebuild,v 1.1 2011/12/21 19:41:42 chithanh Exp $
+
+EAPI=4
+inherit xorg-2
+
+DESCRIPTION="Utility to set XInput device parameters"
+
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
+IUSE=""
+
+RDEPEND=">=x11-libs/libX11-1.3
+       x11-libs/libXext
+       >=x11-libs/libXi-1.4.5"
+DEPEND="${RDEPEND}
+       >=x11-proto/inputproto-2.0"
+
+PATCHES=(
+       "${FILESDIR}/${P}-inputproto-2.1.patch"
+)
index 8808e91a33f5f3edea46149d9463df77e7a9b884..b3bae0ac087f442f38c9923f4f3d0f5ea0b636b8 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2011 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/x11-apps/xinput/xinput-1.5.3.ebuild,v 1.8 2011/02/14 23:41:02 xarthisius Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-apps/xinput/xinput-1.5.3.ebuild,v 1.9 2011/12/21 19:41:42 chithanh Exp $
 
 EAPI=3
 
@@ -14,4 +14,4 @@ RDEPEND=">=x11-libs/libX11-1.3
        x11-libs/libXext
        >=x11-libs/libXi-1.3"
 DEPEND="${RDEPEND}
-       >=x11-proto/inputproto-2.0"
+       <x11-proto/inputproto-2.0.99"