From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Sep 5 04:50:05 2010 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0972910656C7 for ; Sun, 5 Sep 2010 04:50:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id D1D5E8FC12 for ; Sun, 5 Sep 2010 04:50:04 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o854o4N6053158 for ; Sun, 5 Sep 2010 04:50:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o854o4wt053155; Sun, 5 Sep 2010 04:50:04 GMT (envelope-from gnats) Date: Sun, 5 Sep 2010 04:50:04 GMT Message-Id: <201009050450.o854o4wt053155@freefall.freebsd.org> To: freebsd-ports-bugs@FreeBSD.org From: Erick Crager Cc: Subject: Re: ports/150294: hellanzb fails to run due to string compare bug X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Erick Crager List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Sep 2010 04:50:05 -0000 The following reply was made to PR ports/150294; it has been noted by GNATS. From: Erick Crager To: bug-followup@FreeBSD.org, erick.crager@gmail.com Cc: Subject: Re: ports/150294: hellanzb fails to run due to string compare bug Date: Sat, 4 Sep 2010 21:13:32 -0700 --0015174be55a0b7308048f7b6312 Content-Type: text/plain; charset=ISO-8859-1 I actually needed to patch two more .py files in a similar manner to make hellanzb.py work: $ cat htpasswd.diff --- /usr/local/lib/python2.6/site-packages/Hellanzb/HellaXMLRPC/HtPasswdAuth.py 2007-03-26 21:20:43.000000000 -0700 +++ HtPasswdAuth.py 2010-09-04 19:57:19.000000000 -0700 @@ -13,7 +13,7 @@ from twisted.web.resource import Resource import twisted.copyright -if twisted.copyright.version >= '2.0.0': +if float(twisted.copyright.version.split('.',1)[0]) >= 2.0: from twisted.web import http else: from twisted.protocols import http $ cat xmlrpc.diff --- /usr/local/lib/python2.6/site-packages/Hellanzb/HellaXMLRPC/xmlrpc.py 2007-03-26 21:20:43.000000000 -0700 +++ xmlrpc.py 2010-09-04 19:55:04.000000000 -0700 @@ -31,7 +31,7 @@ from twisted.python import log, reflect import twisted.copyright -if twisted.copyright.version >= '2.0.0': +if float(twisted.copyright.version.split('.',1)[0]) >= 2.0: from twisted.web import http else: from twisted.protocols import http After patching these two files, hellanzb works properly. Erick Crager --0015174be55a0b7308048f7b6312 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I actually needed to patch two more .py files in a similar manner to make h= ellanzb.py work:

$ cat htpasswd.diff
--- /usr/local/lib/python2.6= /site-packages/Hellanzb/HellaXMLRPC/HtPasswdAuth.py 2007-03-26 21:20:43.000= 000000 -0700
+++ HtPasswdAuth.py=A0=A0=A0=A0 2010-09-04 19:57:19.000000000 -0700
@@ -= 13,7 +13,7 @@
=A0from twisted.web.resource import Resource

=A0imp= ort twisted.copyright
-if twisted.copyright.version >=3D '2.0.0&#= 39;:
+if float(twisted.copyright.version.split('.',1)[0]) >= =3D 2.0:
=A0=A0=A0=A0 from twisted.web import http
=A0else:
=A0=A0=A0=A0 from = twisted.protocols import http


=A0$ cat xmlrpc.diff
--- /usr/l= ocal/lib/python2.6/site-packages/Hellanzb/HellaXMLRPC/xmlrpc.py=A0=A0=A0=A0= =A0=A0 2007-03-26 21:20:43.000000000 -0700
+++ xmlrpc.py=A0=A0 2010-09-04 19:55:04.000000000 -0700
@@ -31,7 +31,7 @= @
=A0from twisted.python import log, reflect

=A0import twisted.co= pyright
-if twisted.copyright.version >=3D '2.0.0':
+if fl= oat(twisted.copyright.version.split('.',1)[0]) >=3D 2.0:
=A0=A0=A0=A0 from twisted.web import http
=A0else:
=A0=A0=A0=A0 from = twisted.protocols import http

After patching these two files, hellan= zb works properly.

Erick Crager
--0015174be55a0b7308048f7b6312--