From nobody@FreeBSD.org  Tue Jun 16 06:44:59 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 3C26A106564A
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 16 Jun 2009 06:44:59 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 29F028FC21
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 16 Jun 2009 06:44:59 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n5G6iwRj016036
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 16 Jun 2009 06:44:58 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n5G6iw7G016035;
	Tue, 16 Jun 2009 06:44:58 GMT
	(envelope-from nobody)
Message-Id: <200906160644.n5G6iw7G016035@www.freebsd.org>
Date: Tue, 16 Jun 2009 06:44:58 GMT
From: Iwasa Kazmi <kzmizzz@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Package py25-icu-0.8.1 in 7.2-RELEASE fails to install
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         135619
>Category:       ports
>Synopsis:       devel/py-icu - Package py25-icu-0.8.1 in 7.2-RELEASE fails to install
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bland
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jun 16 06:50:01 UTC 2009
>Closed-Date:    Thu Jun 25 06:11:02 UTC 2009
>Last-Modified:  Thu Jun 25 06:11:02 UTC 2009
>Originator:     Iwasa Kazmi
>Release:        7.2-RELEASE
>Organization:
>Environment:
FreeBSD wms.localdomain 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Fri May  1 08:49:13 UTC 2009     root@walker.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
"pkg_add py25-icu-0.8.1.tgz" fails on 7.2-RELEASE.
---------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/bin/easy_install-2.5", line 8, in <module>
    load_entry_point('setuptools==0.6c9', 'console_scripts', 'easy_install-2.5')()
  File "/usr/local/lib/python2.5/site-packages/setuptools-0.6c9-py2.5.egg/setuptools/command/easy_install.py", line 1671, in main
  File "/usr/local/lib/python2.5/site-packages/setuptools-0.6c9-py2.5.egg/setuptools/command/easy_install.py", line 1659, in with_ei_usage
  File "/usr/local/lib/python2.5/site-packages/setuptools-0.6c9-py2.5.egg/setuptools/command/easy_install.py", line 1675, in <lambda>
  File "/usr/local/lib/python2.5/distutils/core.py", line 151, in setup
    dist.run_commands()
  File "/usr/local/lib/python2.5/distutils/dist.py", line 974, in run_commands
    self.run_command(cmd)
  File "/usr/local/lib/python2.5/distutils/dist.py", line 994, in run_command
    cmd_obj.run()
  File "/usr/local/lib/python2.5/site-packages/setuptools-0.6c9-py2.5.egg/setuptools/command/easy_install.py", line 211, in run
  File "/usr/local/lib/python2.5/site-packages/setuptools-0.6c9-py2.5.egg/setuptools/command/easy_install.py", line 446, in easy_install
  File "/usr/local/lib/python2.5/site-packages/setuptools-0.6c9-py2.5.egg/setuptools/command/easy_install.py", line 476, in install_item
  File "/usr/local/lib/python2.5/site-packages/setuptools-0.6c9-py2.5.egg/setuptools/command/easy_install.py", line 655, in install_eggs
  File "/usr/local/lib/python2.5/site-packages/setuptools-0.6c9-py2.5.egg/setuptools/command/easy_install.py", line 930, in build_and_install
  File "/usr/local/lib/python2.5/site-packages/setuptools-0.6c9-py2.5.egg/setuptools/command/easy_install.py", line 919, in run_setup
  File "/usr/local/lib/python2.5/site-packages/setuptools-0.6c9-py2.5.egg/setuptools/sandbox.py", line 27, in run_setup
  File "/usr/local/lib/python2.5/site-packages/setuptools-0.6c9-py2.5.egg/setuptools/sandbox.py", line 63, in run
  File "/usr/local/lib/python2.5/site-packages/setuptools-0.6c9-py2.5.egg/setuptools/sandbox.py", line 29, in <lambda>
  File "setup.py", line 40, in <module>
KeyError: 'freebsd7'
pkg_add: command '/usr/bin/env PYTHONPATH=/usr/local/lib/python2.5/site-packages  /usr/local/bin/easy_install-2.5 -q -N -S /usr/local/lib/python2.5/site-packages  -d /usr/local/lib/python2.5/site-packages  -s /usr/local/bin  PyICU==0.8.1' failed
---------------------------------------------------

It extracts egg package in:
PyICU-0.8.1-py2.5-freebsd-7.2-PRERELEASE-i386.egg

but is doesn't match with my environment.
----------------------------------------------------
> python -c 'import distutils.util; print distutils.util.get_platform()'
freebsd-7.2-RELEASE-i386
----------------------------------------------------
so easy_install cannot find appropriate package.

I reported same kind problem 1 month ago. See PR# 134734.

The packaging process for the "RELEASE" packages may needs improvement
for avoiding this issue.
>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->bland 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Tue Jun 16 08:31:00 UTC 2009 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=135619 
State-Changed-From-To: open->closed 
State-Changed-By: bland 
State-Changed-When: Thu Jun 25 06:09:08 UTC 2009 
State-Changed-Why:  
I think in general the behaviour you complaning about is correct. Well some 
sort of :-) Technically your py-icu package was built for the different OS 
version. Pleasei note 7.2-RELEASE APIs are not necessary same to 7.2-PRELEASE. 
And since package contains binary bits inside there is no guarantee that 
there will be no problem around. 

Please rebuild py-icu from the ports collection. 

In case your complain is about package from the FreeBSD 7.2-RELEASE 
distribution media you may want to raise this question to the releng team. 

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