Date: 19 Jul 2006 19:00:05 -0000 From: Mike Meyer <mwm@mired.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/100569: py-xlib is getting a bit old Message-ID: <20060719190005.49806.qmail@mired.org> Resent-Message-ID: <200607191900.k6JJ0VMQ089268@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 100569 >Category: ports >Synopsis: py-xlib is getting a bit old >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Wed Jul 19 19:00:31 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Mike Meyer >Release: FreeBSD 5.5-PRERELEASE i386 >Organization: Meyer Consulting >Environment: System: FreeBSD bhuda.mired.org 5.5-PRERELEASE FreeBSD 5.5-PRERELEASE #14: Tue May 16 15:42:03 EDT 2006 mwm@bhuda.mired.org:/usr/src/sys/i386/compile/BHUDA i386 >Description: The py-xlib code has some problems running in a modern environment. It refers to modules that don't exist any more, is missing encoding declerations, and needs a buffer bumped. >How-To-Repeat: Try running py-xlib with the current python port, on a modern system. >Fix: Update the port to use the attached patch. These patches have been forwarded to the py-xlib developers as well. diff -rNcu py-xlib-orig/Makefile py-xlib/Makefile --- py-xlib-orig/Makefile Wed May 31 21:19:52 2006 +++ py-xlib/Makefile Wed Jul 19 13:23:03 2006 @@ -7,6 +7,7 @@ PORTNAME= xlib PORTVERSION= 0.12a +PORTREVISION= 2 CATEGORIES= x11-toolkits python MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= python-xlib diff -rNcu py-xlib-orig/files/patch-display py-xlib/files/patch-display --- py-xlib-orig/files/patch-display Wed Dec 31 19:00:00 1969 +++ py-xlib/files/patch-display Wed Jul 19 13:24:16 2006 @@ -0,0 +1,18 @@ +--- Xlib/protocol/display.py-orig Tue Jul 18 15:28:31 2006 ++++ Xlib/protocol/display.py Tue Jul 18 15:29:31 2006 +@@ -1,5 +1,5 @@ + # $Id: display.py,v 1.17 2002/02/25 11:09:23 petli Exp $ +-# ++# -*- coding: latin-1 -*- + # Xlib.protocol.display -- core display communication + # + # Copyright (C) 2000-2002 Peter Liljenberg <petli@ctrl-c.liu.se> +@@ -527,7 +527,7 @@ + # We're the recieving thread, parse the data + if recieving: + try: +- recv = self.socket.recv(2048) ++ recv = self.socket.recv(4096) + except socket.error, err: + self.close_internal('server: %s' % err[1]) + raise self.socket_error diff -rNcu py-xlib-orig/files/patch-unix_connect py-xlib/files/patch-unix_connect --- py-xlib-orig/files/patch-unix_connect Wed Dec 31 19:00:00 1969 +++ py-xlib/files/patch-unix_connect Tue Jul 18 15:36:01 2006 @@ -0,0 +1,14 @@ +--- Xlib/support/unix_connect.py-orig Tue Jul 18 15:34:34 2006 ++++ Xlib/support/unix_connect.py Tue Jul 18 15:35:10 2006 +@@ -23,7 +23,10 @@ + import os + import socket + import fcntl +-import FCNTL ++try: ++ import FCNTL ++except ImportError: ++ FCNTL = fcntl + + from Xlib import error + >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060719190005.49806.qmail>