From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Dec 14 21:00:39 2003 Return-Path: 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 80E5016A4CE for ; Sun, 14 Dec 2003 21:00:39 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id B01AC43D3C for ; Sun, 14 Dec 2003 21:00:34 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) hBF50YFR004844 for ; Sun, 14 Dec 2003 21:00:34 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id hBF50Y2B004843; Sun, 14 Dec 2003 21:00:34 -0800 (PST) (envelope-from gnats) Resent-Date: Sun, 14 Dec 2003 21:00:34 -0800 (PST) Resent-Message-Id: <200312150500.hBF50Y2B004843@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, Louis Mamakos Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8436B16A4CE; Sun, 14 Dec 2003 20:54:30 -0800 (PST) Received: from whizzo.transsys.com (whizzo.TransSys.COM [144.202.42.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8B6DC43D31; Sun, 14 Dec 2003 20:54:28 -0800 (PST) (envelope-from louie@whizzo.transsys.com) Received: from whizzo.transsys.com (#6@localhost [127.0.0.1]) by whizzo.transsys.com (8.12.9p2/8.12.9) with ESMTP id hBF4sRIh027326 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 14 Dec 2003 23:54:28 -0500 (EST) (envelope-from louie@whizzo.transsys.com) Received: (from louie@localhost) by whizzo.transsys.com (8.12.9p2/8.12.9/Submit) id hBF4sRx2027325; Sun, 14 Dec 2003 23:54:27 -0500 (EST) (envelope-from louie) Message-Id: <200312150454.hBF4sRx2027325@whizzo.transsys.com> Date: Sun, 14 Dec 2003 23:54:27 -0500 (EST) From: Louis Mamakos To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 cc: knu@FreeBSD.org Subject: ports/60245: new ruby16-shim-ruby18 bug in included rexml X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Louis Mamakos List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Dec 2003 05:00:39 -0000 >Number: 60245 >Category: ports >Synopsis: new ruby16-shim-ruby18 bug in included rexml >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Dec 14 21:00:34 PST 2003 >Closed-Date: >Last-Modified: >Originator: Louis Mamakos >Release: FreeBSD 4.9-RC i386 >Organization: unorganized >Environment: System: FreeBSD whizzo.transsys.com 4.9-RC FreeBSD 4.9-RC #11: Sun Oct 19 16:51:47 EDT 2003 louie@whizzo.transsys.com:/a/obj/usr/src/sys/WHIZZO i386 FreeBSD 4.9 and some ports: ruby-1.6.8.2003.10.15 ruby-shim-ruby18-1.8.1.p2 ruby-jabber4r-0.4.0 >Description: The new version of ruby-shim-ruby18-1.8.1.p2 seems to have a bug in the included rexml Ruby package. This bug is manifested, at least, when trying to use the ruby-jabber4r port. The connection to the jabber server never opens properly. >How-To-Repeat: try to run the example code provided in the ruby-jabber4r port. >Fix: There is a patch in the CVS version of jabber4r on Ruby Forge to address the problem in the rexml library (reproduced below). It does not appear to be specific to the jabber4r Ruby package and is probably generally applicable. A seperate issue is perhaps upgrading the jabber4r port, but that's another topic. Anyway, the "patch" can be applied at run time by 'require' the file below which patches a method in the REXML parser: module REXML module Parsers class BaseParser # Returns true if there are more events. Synonymous with !empty? def has_next? return true if @closed # THIS WAS ADDED TO FIX PROBLEM @source.read if @source.buffer.size==0 and !@source.empty? (!@source.empty? and @source.buffer.strip.size>0) or @stack.size>0 or @closed end end end end >Release-Note: >Audit-Trail: >Unformatted: