From root@arnold.neland.dk  Fri Mar 19 14:38:20 2010
Return-Path: <root@arnold.neland.dk>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 83431106566B
	for <freebsd-gnats-submit@freebsd.org>; Fri, 19 Mar 2010 14:38:20 +0000 (UTC)
	(envelope-from root@arnold.neland.dk)
Received: from min.moar.dk (cpe.atm2-0-74391.hknxx4.customer.tele.dk [83.92.199.126])
	by mx1.freebsd.org (Postfix) with ESMTP id 323C28FC19
	for <freebsd-gnats-submit@freebsd.org>; Fri, 19 Mar 2010 14:38:17 +0000 (UTC)
Received: from arnold.neland.dk (0x573cc07b.odnxx13.dynamic.dsl.tele.dk [87.60.192.123])
	by min.moar.dk (Postfix) with ESMTP id A112DB200E
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 19 Mar 2010 15:38:07 +0100 (CET)
Received: from arnold.neland.dk (localhost [127.0.0.1])
	by arnold.neland.dk (8.14.4/8.13.8) with ESMTP id o2JEbkIc041807
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO)
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 19 Mar 2010 15:37:46 +0100 (CET)
	(envelope-from root@arnold.neland.dk)
Received: (from root@localhost)
	by arnold.neland.dk (8.14.4/8.13.8/Submit) id o2JEbk6w041806;
	Fri, 19 Mar 2010 15:37:46 +0100 (CET)
	(envelope-from root)
Message-Id: <201003191437.o2JEbk6w041806@arnold.neland.dk>
Date: Fri, 19 Mar 2010 15:37:46 +0100 (CET)
From: Leif Neland <leif@neland.dk>
Reply-To: Leif Neland <leif@neland.dk>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Python 2.5 uname() broken
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         144872
>Category:       ports
>Synopsis:       lang/python25: Python 2.5 uname() broken
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-python
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 19 14:40:02 UTC 2010
>Closed-Date:    Fri Oct 08 05:33:31 UTC 2010
>Last-Modified:  Fri Oct 08 05:33:31 UTC 2010
>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@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:
Responsible-Changed-From-To: freebsd-ports-bugs->freebsd-python 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Fri Mar 19 23:52:16 UTC 2010 
Responsible-Changed-Why:  
Fix synopsis and assign. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=144872 
State-Changed-From-To: open->feedback 
State-Changed-By: lwhsu 
State-Changed-When: Sat Oct 2 10:28:52 UTC 2010 
State-Changed-Why:  
I cannot reproduce this.  Could you check it again? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=144872 

From: Leif Neland <leif@neland.dk>
To: bug-followup@FreeBSD.org, leif@neland.dk
Cc:  
Subject: Re: ports/144872: lang/python25: Python 2.5 uname() broken
Date: Tue, 05 Oct 2010 15:32:49 +0200

   Seems to be fixed now.
 
 My test
 #!/usr/bin/env python
 
 import os
 print "os.uname() = " + os.uname()
 
 gives another error, (my fault...) but
 
 print "os.uname() = " + os.uname()[0] as in nagios-statd works correctly:
 
 os.uname() = FreeBSD
 
 Leif
 
State-Changed-From-To: feedback->closed 
State-Changed-By: lwhsu 
State-Changed-When: Fri Oct 8 05:33:30 UTC 2010 
State-Changed-Why:  
Submitter reports the problem is gone. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=144872 
>Unformatted:
