ports/55022: py-xml's pkg-req fails for python-2.3
Mikhail Teterin
mteterin at 250-217.customer.cloud9.net
Tue Jul 29 20:00:30 UTC 2003
>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:
More information about the freebsd-ports-bugs
mailing list