Date: Tue, 29 Jul 2003 15:56:57 -0400 (EDT) From: Mikhail Teterin <mteterin@250-217.customer.cloud9.net> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/55022: py-xml's pkg-req fails for python-2.3 Message-ID: <200307291956.h6TJuvHO016806@mteterin.us.murex.com> Resent-Message-ID: <200307292000.h6TK0Ran003451@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 55022 >Category: ports >Synopsis: py-xml's pkg-req fails for python-2.3 >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Jul 29 13:00:27 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Mikhail Teterin >Release: FreeBSD 5.1-CURRENT i386 >Organization: Virtual Estates, Inc. >Environment: System: FreeBSD 5.1-CURRENT FreeBSD 5.1-CURRENT #3: Tue Jul 29 14:49:03 EDT 2003 >Description: The script expects Python to print ``1'' for truth, but the new Python prints ``True''. The new script (attached) simply uses Python and should execute properly with any version. >How-To-Repeat: Install python-devel and try to install py-xml. >Fix: Instead of a diff, here is the entire new pkg-req -- it is smaller, than the diff would've been. #!/bin/sh PATH=$PATH:/usr/local/bin if [ "x$1" = "xINSTALL" -o "x$2" = "xINSTALL" ]; then exec python /dev/stdin << EOFSCRIPT import sys, string required = "2.0" if string.split(sys.version)[0] < required: print "-----------------------------------------------------------" print "PyXML requires Python version " + required + " or greater -" print " please update your Python installation before proceeding." print "-----------------------------------------------------------" sys.exit(1) EOFSCRIPT fi >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200307291956.h6TJuvHO016806>