ports/144872: Python 2.5 uname() broken
Leif Neland
leif at neland.dk
Fri Mar 19 14:40:03 UTC 2010
>Number: 144872
>Category: ports
>Synopsis: Python 2.5 uname() broken
>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: Fri Mar 19 14:40:02 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: Leif Neland
>Release: FreeBSD 9.0-CURRENT i386
>Organization:
None
>Environment:
System: FreeBSD arnold.neland.dk 9.0-CURRENT FreeBSD 9.0-CURRENT #3: Wed Jan 20 00:24:29 CET 2010 root at arnold.neland.dk:/usr/obj/usr/src/sys/ARNOLD i386
>Description:
os.uname() broken
I found the error in nagios-statd from ports:
self.commandlist = commandlist[os.uname()[0]]
But even if this bug is worked around this snippet also fails, claiming the functions does not exist, which it does.
# Call the appropriate function
try:
output = getattr(self.functions,line)()
except AttributeError:
error = "ERROR Function \"" + line + "\" does not exist."
nagios-statd had been running for months, but couldn't restart yesterday.
ports are rebuilt up-to-date.
The bug's not in nagios-statd, but somehow python2.5 broke because of port-updates
>How-To-Repeat:
#!/usr/bin/env python
import os
print "os.uname() = " + os.uname()
Traceback (most recent call last):
File "./uname-test", line 6, in <module>
print "os.uname() = " + os.uname()
AttributeError: 'module' object has no attribute 'uname'
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list