From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Jul 19 19:00:32 2006 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A741916A4E9 for ; Wed, 19 Jul 2006 19:00:32 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id D535543D4C for ; Wed, 19 Jul 2006 19:00:31 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k6JJ0VZq089269 for ; Wed, 19 Jul 2006 19:00:31 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k6JJ0VMQ089268; Wed, 19 Jul 2006 19:00:31 GMT (envelope-from gnats) Resent-Date: Wed, 19 Jul 2006 19:00:31 GMT Resent-Message-Id: <200607191900.k6JJ0VMQ089268@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Mike Meyer Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 867FB16A4DE for ; Wed, 19 Jul 2006 19:00:06 +0000 (UTC) (envelope-from mwm@mired.org) Received: from mired.org (vpn.mired.org [66.92.153.74]) by mx1.FreeBSD.org (Postfix) with SMTP id F2CBE43D53 for ; Wed, 19 Jul 2006 19:00:05 +0000 (GMT) (envelope-from mwm@mired.org) Received: (qmail 49807 invoked by uid 1001); 19 Jul 2006 19:00:05 -0000 Message-Id: <20060719190005.49806.qmail@mired.org> Date: 19 Jul 2006 19:00:05 -0000 From: Mike Meyer To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/100569: py-xlib is getting a bit old X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Mike Meyer List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Jul 2006 19:00:32 -0000 >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 +@@ -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: