From owner-freebsd-ports Fri Mar 7 9:13:59 2003 Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1B96E37B401 for ; Fri, 7 Mar 2003 09:13:58 -0800 (PST) Received: from shell.wgops.com (free.wgops.com [66.92.2.178]) by mx1.FreeBSD.org (Postfix) with ESMTP id 090FF43FBD for ; Fri, 7 Mar 2003 09:13:56 -0800 (PST) (envelope-from mloftis@wgops.com) Received: by shell.wgops.com (Postfix, from userid 65534) id BFC05BB; Fri, 7 Mar 2003 09:13:55 -0800 (PST) Received: from [10.1.5.250] (localhost [127.0.0.1]) by shell.wgops.com (Postfix) with ESMTP id 70442B8 for ; Fri, 7 Mar 2003 09:13:54 -0800 (PST) Date: Fri, 07 Mar 2003 09:13:54 -0800 From: Michael Loftis To: ports@freebsd.org Subject: pyzor-0.4.0 ports problem Message-ID: <141724809.1047028434@[10.1.5.250]> X-Mailer: Mulberry/3.0.0 (Win32) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Spam-Status: No, hits=0.8 required=5.0 tests=SPAM_PHRASE_00_01 version=2.43 X-Spam-Level: Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Seems like a bare word 'False' is causing a parse error inside of pyzor. Looking into it I've found out that this only exists in Python 2.2.1 and later (see http://www.python.org/dev/doc/devel/whatsnew/section-bool.html ) I would attach a patch to the Makefile to do this, but I really am not sure how to do it in a 'good' way...It seems you can say require python2.2 but that only looks for the python2.2 binary, which in some cases won't be enough (like mine). It needs to check that minor version to make sure its .1 or later (not .0 or nonexistent)....I suppose it could be done with a little scripting and then forcing the appropriate variables before .including bsd.port.mk but thats kludgy and really doesn't solve the problem that bsd.python.mk needs to understand how to look for the minor rev num. python version is: root@free:/usr/ports# /usr/local/bin/python2.2 -V Python 2.2 root@free:/usr/ports# and the error output: root@free:/usr/ports/mail/pyzor# make ===> Extracting for pyzor-0.4.0 >> Checksum OK for pyzor-0.4.0.tar.bz2. ===> Patching for pyzor-0.4.0 ===> Configuring for pyzor-0.4.0 ===> pyzor-0.4.0 depends on file: /usr/local/bin/python2.2 - found ===> Building for pyzor-0.4.0 Traceback (most recent call last): File "setup.py", line 5, in ? import pyzor File "lib/pyzor/__init__.py", line 100, in ? class Output(Singleton): File "lib/pyzor/__init__.py", line 101, in Output do_debug = False NameError: name 'False' is not defined *** Error code 1 Stop in /usr/ports/mail/pyzor. root@free:/usr/ports/mail/pyzor# To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message