pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/x11/libXi Fix locking bug in upstream code. Ride on th...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/246d6becc79c
branches:  trunk
changeset: 533602:246d6becc79c
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Fri Sep 21 19:39:11 2007 +0000

description:
Fix locking bug in upstream code. Ride on the initial update.

diffstat:

 x11/libXi/distinfo         |   3 ++-
 x11/libXi/patches/patch-aa |  16 ++++++++++++++++
 2 files changed, 18 insertions(+), 1 deletions(-)

diffs (31 lines):

diff -r b358d0c68b66 -r 246d6becc79c x11/libXi/distinfo
--- a/x11/libXi/distinfo        Fri Sep 21 19:34:32 2007 +0000
+++ b/x11/libXi/distinfo        Fri Sep 21 19:39:11 2007 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.5 2007/09/21 19:28:47 bjs Exp $
+$NetBSD: distinfo,v 1.6 2007/09/21 19:39:11 joerg Exp $
 
 SHA1 (libXi-1.1.3.tar.bz2) = 60608bcbebadc5fe0b51b5012e9301eb720988fe
 RMD160 (libXi-1.1.3.tar.bz2) = e6446f28a903eed54eccc5d4df685f9623942a0b
 Size (libXi-1.1.3.tar.bz2) = 248007 bytes
+SHA1 (patch-aa) = f4709b631db41d00302d520b3507dd74e7fe1b4a
diff -r b358d0c68b66 -r 246d6becc79c x11/libXi/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/libXi/patches/patch-aa        Fri Sep 21 19:39:11 2007 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-aa,v 1.1 2007/09/21 19:39:11 joerg Exp $
+
+--- src/XStFocus.c.orig        2007-09-21 21:35:50.000000000 +0200
++++ src/XStFocus.c
+@@ -72,8 +72,10 @@ XSetDeviceFocus(dpy, dev, focus, revert_
+     XExtDisplayInfo *info = XInput_find_display(dpy);
+ 
+     LockDisplay(dpy);
+-    if (_XiCheckExtInit(dpy, XInput_Initial_Release, info) == -1)
++    if (_XiCheckExtInit(dpy, XInput_Initial_Release, info) == -1) {
++        UnlockDisplay(dpy);
+       return (NoSuchExtension);
++    }
+ 
+     GetReq(SetDeviceFocus, req);
+     req->reqType = info->codes->major_opcode;



Home | Main Index | Thread Index | Old Index