py24-xlib-0.12a patch

Petr Holub hopet at ics.muni.cz
Tue Jul 18 08:48:55 UTC 2006


Hi,

below is a couple of small patches for pypanel to work with the
py-xlib - the problems are in py-xlib, not in pypanel.

Petr

================================================================
                            Petr Holub
CESNET z.s.p.o.                       Supercomputing Center Brno
Zikova 4                             Institute of Compt. Science
162 00 Praha 6, CZ                            Masaryk University
Czech Republic                     Botanicka 68a, 60200 Brno, CZ
e-mail: Petr.Holub at cesnet.cz               phone: +420-549493944
                                             fax: +420-541212747
                                       e-mail: hopet at ics.muni.cz



--- /usr/local/lib/python2.4/site-packages/Xlib/support/unix_connect.py.orig	Tue
Jul 18 10:29:47 2006
+++ /usr/local/lib/python2.4/site-packages/Xlib/support/unix_connect.py	Tue Jul
18 10:29:43 2006
@@ -23,7 +23,7 @@
 import os
 import socket
 import fcntl
-import FCNTL
+#import FCNTL

 from Xlib import error

@@ -65,7 +65,7 @@
 	raise error.DisplayConnectionError(dname, str(val))

     # Make sure that the connection isn't inherited in child processes
-    fcntl.fcntl(s.fileno(), FCNTL.F_SETFD, FCNTL.FD_CLOEXEC)
+    fcntl.fcntl(s.fileno(), fcntl.F_SETFD, fcntl.FD_CLOEXEC)

     return s

--- /usr/local/lib/python2.4/site-packages/Xlib/protocol/display.py.orig	Tue Jul
18 10:35:47 2006
+++ /usr/local/lib/python2.4/site-packages/Xlib/protocol/display.py	Tue Jul 18
10:36:19 2006
@@ -746,7 +746,7 @@

 	# Decrement it by one, so that we don't remove the request
 	# that generated these events, if there is such a one.
-	# Bug reported by Ilpo Nyyssönen
+	# Bug reported by Ilpo Nyyssonen
 	self.get_waiting_request((e.sequence_number - 1) % 65536)

 	# print 'recv Event:', e

--- /usr/local/lib/python2.4/site-packages/Xlib/protocol/display.py.orig	Tue Jul
18 10:35:47 2006
+++ /usr/local/lib/python2.4/site-packages/Xlib/protocol/display.py	Tue Jul 18
10:36:19 2006
@@ -746,7 +746,7 @@

 	# Decrement it by one, so that we don't remove the request
 	# that generated these events, if there is such a one.
-	# Bug reported by Ilpo Nyyssönen
+	# Bug reported by Ilpo Nyyssonen
 	self.get_waiting_request((e.sequence_number - 1) % 65536)

 	# print 'recv Event:', e



More information about the freebsd-ports mailing list