diff options
author | dsainty <dsainty@pkgsrc.org> | 2008-08-06 04:09:12 +0000 |
---|---|---|
committer | dsainty <dsainty@pkgsrc.org> | 2008-08-06 04:09:12 +0000 |
commit | 50796f82dafb40ec34f39380eb1a05f6f49bb16f (patch) | |
tree | 9c3515c1554c4e045b15403815e7103df37140da /x11/tk | |
parent | 530d49cf8f97f46a6772b186245e4f8f0191d8e8 (diff) | |
download | pkgsrc-50796f82dafb40ec34f39380eb1a05f6f49bb16f.tar.gz |
Tk uses X event numbers to index an "event" array, as well as adding a few of
its own, starting with "VirtualEvent" (Which is correctly set to LASTEvent,
defined in include/X11/X.h). In xproto-7.0.13, a new event "GenericEvent" was
added - making the defined array broken for all of Tk's internal events.
The easy fix is to just add in the missing event into the hard-coded array.
This patch was reported here: http://bugs.gentoo.org/show_bug.cgi?id=225999
A cleaner fix, but a much bigger patch, is listed in the Tk bug tracker. I'm
punting that Tk will have been updated with the fix before X.h grows another
event.
http://sourceforge.net/tracker/index.php?func=detail&aid=2010422&group_id=12997&atid=112997
Bump PKGREVISION.
Diffstat (limited to 'x11/tk')
-rw-r--r-- | x11/tk/Makefile | 3 | ||||
-rw-r--r-- | x11/tk/distinfo | 3 | ||||
-rw-r--r-- | x11/tk/patches/patch-ae | 23 |
3 files changed, 27 insertions, 2 deletions
diff --git a/x11/tk/Makefile b/x11/tk/Makefile index ebe3b982f88..027a2014316 100644 --- a/x11/tk/Makefile +++ b/x11/tk/Makefile @@ -1,7 +1,8 @@ -# $NetBSD: Makefile,v 1.61 2007/09/25 10:03:54 hira Exp $ +# $NetBSD: Makefile,v 1.62 2008/08/06 04:09:12 dsainty Exp $ DISTNAME= tk${TK_VERSION}-src PKGNAME= tk-${TK_VERSION} +PKGREVISION= 1 CATEGORIES= x11 lang MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=tcl/} diff --git a/x11/tk/distinfo b/x11/tk/distinfo index 77c0eff7489..82863918e7b 100644 --- a/x11/tk/distinfo +++ b/x11/tk/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.33 2008/07/20 23:35:20 dbj Exp $ +$NetBSD: distinfo,v 1.34 2008/08/06 04:09:12 dsainty Exp $ SHA1 (tk8.4.18-src.tar.gz) = c1032f3cacd40406065fc1f46ecd217f50329273 RMD160 (tk8.4.18-src.tar.gz) = 9c01ba85575a230231793a9885457c98046e41bb @@ -7,3 +7,4 @@ SHA1 (patch-aa) = b729957a24ce2fb6f972bbb19af27bd7d41f1846 SHA1 (patch-ab) = a5b2a508a114b5f4d033251231b396ed68f22995 SHA1 (patch-ac) = 5ded83db659d8918710b4b96126d20bed9ce11b8 SHA1 (patch-ad) = 14ad16e840a825e987721f23c6308c4a011dbe01 +SHA1 (patch-ae) = 7901a53b8f2742898f837d4587be03ef66912af4 diff --git a/x11/tk/patches/patch-ae b/x11/tk/patches/patch-ae new file mode 100644 index 00000000000..9c87115131a --- /dev/null +++ b/x11/tk/patches/patch-ae @@ -0,0 +1,23 @@ +$NetBSD: patch-ae,v 1.4 2008/08/06 04:09:12 dsainty Exp $ + +Tk uses X event numbers to index this array, as well as adding a few of its +own, starting with "VirtualEvent" (Which is correctly set to LASTEvent, +defined in include/X11/X.h). In xproto-7.0.13, a new event "GenericEvent" was +added - making the array broken for all of Tk's internal events. + +A cleaner fix, but a much bigger patch, is listed in the Tk bug tracker: + +http://sourceforge.net/tracker/index.php?func=detail&aid=2010422&group_id=12997&atid=112997 + +--- generic/tkBind.c.orig 2008-08-06 15:19:07.000000000 +1200 ++++ generic/tkBind.c 2008-08-06 15:21:30.000000000 +1200 +@@ -586,6 +586,9 @@ + /* ColormapNotify */ COLORMAP, + /* ClientMessage */ 0, + /* MappingNotify */ 0, ++#ifdef GenericEvent ++ /* GenericEvent */ 0, /* Introduced in xproto-7.0.13 */ ++#endif + /* VirtualEvent */ VIRTUAL, + /* Activate */ ACTIVATE, + /* Deactivate */ ACTIVATE, |