rpms/python-xlib/F-12 fix-rhomboid-examples, NONE, 1.1 fix-ssh-tunnel-auth, NONE, 1.1 fix-unix-socket-in-display, NONE, 1.1 increase-receiving-buffer, NONE, 1.1 python-xlib.spec, 1.6, 1.7
Jef Spaleta
jspaleta at fedoraproject.org
Mon Dec 14 23:44:02 UTC 2009
Author: jspaleta
Update of /cvs/pkgs/rpms/python-xlib/F-12
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv6330
Modified Files:
python-xlib.spec
Added Files:
fix-rhomboid-examples fix-ssh-tunnel-auth
fix-unix-socket-in-display increase-receiving-buffer
Log Message:
* Mon Dec 14 2009 Jef Spaleta <jspaleta AT fedoraproject DOT org> - 0.14-6
- Add patches to fix crasher bug 537264
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.14-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
--- NEW FILE fix-rhomboid-examples ---
Index: trunk/examples/draw.py
===================================================================
--- trunk.orig/examples/draw.py 2009-04-11 19:18:15.000000000 -0400
+++ trunk/examples/draw.py 2009-11-05 06:06:25.000000000 -0500
@@ -115,7 +115,7 @@
sys.exit(0)
# A drawed objects, consisting of either a single
-# romboid, or two romboids connected by a winding line
+# rhomboid, or two rhomboids connected by a winding line
class Movement:
def __init__(self, win, ev):
@@ -129,7 +129,7 @@
self.time = ev.time
self.lines = [(ev.event_x, ev.event_y)]
- self.first = Romboid(self.win, ev)
+ self.first = Rhomboid(self.win, ev)
self.last = None
def motion(self, ev):
@@ -182,7 +182,7 @@
def finish(self, ev):
self.motion(ev)
if len(self.lines) > 1:
- self.last = Romboid(self.win, ev)
+ self.last = Rhomboid(self.win, ev)
self.left = min(ev.event_x - 5, self.left)
self.right = max(ev.event_x + 5, self.right)
@@ -204,8 +204,8 @@
self.last.draw()
-# A romboid, drawed around the Movement endpoints
-class Romboid:
+# A rhomboid, drawed around the Movement endpoints
+class Rhomboid:
def __init__(self, win, ev):
self.win = win
self.x = ev.event_x
@@ -213,7 +213,7 @@
self.draw()
def draw(self):
- # Draw the segments of the romboid
+ # Draw the segments of the rhomboid
self.win.window.poly_line(self.win.gc, X.CoordModePrevious,
[(self.x, self.y - 5),
(5, 5),
Index: trunk/examples/draw-proto.py
===================================================================
--- trunk.orig/examples/draw-proto.py 2009-04-11 19:18:15.000000000 -0400
+++ trunk/examples/draw-proto.py 2009-11-05 06:06:25.000000000 -0500
@@ -104,7 +104,7 @@
current.motion(e)
# A drawed objects, consisting of either a single
-# romboid, or two romboids connected by a winding line
+# rhomboid, or two rhomboids connected by a winding line
class Movement:
def __init__(self, win, ev):
@@ -118,7 +118,7 @@
self.time = ev.time
self.lines = [(ev.event_x, ev.event_y)]
- self.first = Romboid(self.win, ev)
+ self.first = Rhomboid(self.win, ev)
self.last = None
def motion(self, ev):
@@ -179,7 +179,7 @@
def finish(self, ev):
self.motion(ev)
if len(self.lines) > 1:
- self.last = Romboid(self.win, ev)
+ self.last = Rhomboid(self.win, ev)
self.left = min(ev.event_x - 5, self.left)
self.right = max(ev.event_x + 5, self.right)
@@ -203,8 +203,8 @@
self.last.draw()
-# A romboid, drawed around the Movement endpoints
-class Romboid:
+# A rhomboid, drawed around the Movement endpoints
+class Rhomboid:
def __init__(self, win, ev):
self.win = win
self.x = ev.event_x
@@ -212,7 +212,7 @@
self.draw()
def draw(self):
- # Draw the segments of the romboid
+ # Draw the segments of the rhomboid
PolyLine(self.win.d, None,
X.CoordModePrevious,
self.win.window,
--- NEW FILE fix-ssh-tunnel-auth ---
Index: trunk/Xlib/support/unix_connect.py
===================================================================
--- trunk.orig/Xlib/support/unix_connect.py 2009-11-05 06:06:09.000000000 -0500
+++ trunk/Xlib/support/unix_connect.py 2009-11-05 06:06:23.000000000 -0500
@@ -161,6 +161,14 @@
except os.error:
pass
+ if not auth_data and host=='localhost':
+ # 127.0.0.1 counts as FamilyLocal, not FamilyInternet
+ # See Xtransutil.c:ConvertAddress.
+ # There might be more ways to spell 127.0.0.1 but
+ # 'localhost', yet this code fixes a the case of
+ # OpenSSH tunneling X.
+ return get_auth('unix:%d' % dno, 'unix', dno)
+
return auth_name, auth_data
get_auth = new_get_auth
--- NEW FILE fix-unix-socket-in-display ---
Index: trunk/Xlib/support/unix_connect.py
===================================================================
--- trunk.orig/Xlib/support/unix_connect.py 2008-07-23 11:33:36.000000000 -0400
+++ trunk/Xlib/support/unix_connect.py 2009-11-05 06:06:50.000000000 -0500
@@ -60,6 +60,8 @@
name = display
host = m.group(1)
+ if host == 'unix':
+ host = ''
dno = int(m.group(2))
screen = m.group(4)
if screen:
--- NEW FILE increase-receiving-buffer ---
Index: trunk/Xlib/protocol/display.py
===================================================================
--- trunk.orig/Xlib/protocol/display.py 2008-03-18 16:08:27.000000000 -0400
+++ trunk/Xlib/protocol/display.py 2009-11-05 06:06:15.000000000 -0500
@@ -533,7 +533,7 @@
# We're the recieving thread, parse the data
if recieving:
try:
- bytes_recv = self.socket.recv(2048)
+ bytes_recv = self.socket.recv(4096)
except socket.error, err:
self.close_internal('server: %s' % err[1])
raise self.socket_error
Index: python-xlib.spec
===================================================================
RCS file: /cvs/pkgs/rpms/python-xlib/F-12/python-xlib.spec,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -p -r1.6 -r1.7
--- python-xlib.spec 27 Jul 2009 01:32:52 -0000 1.6
+++ python-xlib.spec 14 Dec 2009 23:44:02 -0000 1.7
@@ -3,13 +3,17 @@
Name: python-xlib
Version: 0.14
-Release: 5%{?dist}
+Release: 6%{?dist}
Summary: X client library for Python
Group: Development/Languages
License: GPLv2+
URL: http://python-xlib.sourceforge.net/
Source0: http://prdownloads.sourceforge.net/python-xlib/python-xlib-%{version}.tar.gz
+Patch0: increase-receiving-buffer
+Patch1: fix-unix-socket-in-display
+Patch2: fix-ssh-tunnel-auth
+Patch3: fix-rhomboid-examples
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
@@ -33,6 +37,10 @@ that tell you how to program with python
%prep
%setup -q
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
+%patch3 -p1
%build
@@ -63,6 +71,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog
+* Mon Dec 14 2009 Jef Spaleta <jspaleta AT fedoraproject DOT org> - 0.14-6
+- Add patches to fix crasher bug 537264
+
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.14-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
More information about the fedora-extras-commits
mailing list