ports/134734: Package py25-ldap2 in 7.2-RELEASE fails to install
Iwasa Kazmi
kzmizzz at gmail.com
Wed May 20 01:50:02 UTC 2009
>Number: 134734
>Category: ports
>Synopsis: Package py25-ldap2 in 7.2-RELEASE fails to install
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Wed May 20 01:50:01 UTC 2009
>Closed-Date:
>Last-Modified:
>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 at walker.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
>Description:
"py25-ldap2-2.3.5_2.tbz" couldn't install with pkg_add.
---------------
> pkg_add py25-ldap2-2.3.5_2.tbz
No local packages or download links found for python-ldap==2.3.5
error: Could not find suitable distribution for Requirement.parse('python-ldap==2.3.5')
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 python-ldap==2.3.5' failed
---------------
I'm using 7.2-RELEASE, so I obtained "py25-ldap2-2.3.5_2.tbz" from:
ftp://ftp3.jp.freebsd.org/pub/FreeBSD/releases/i386/7.2-RELEASE/packages/
Pkg_add extracts files in:
/usr/local/lib/python2.5/site-packages/python_ldap-2.3.5-py2.5-freebsd-7.2-PRERELEASE-i386.egg
Then executes easy_install:
/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 python-ldap==2.3.5
But it fails to find appropriate egg package
because "platform" field in egg's name doesn't match with
current environment.
My "platform" is:
-------------------
> python -c 'import distutils.util; print distutils.util.get_platform()'
freebsd-7.2-RELEASE-i386
-------------------
In -RELEASE distribution, py25-ldap2.tbz *should* be packed
so that the files will be extracted in:
python_ldap-2.3.5-py2.5-freebsd-7.2-RELEASE-i386.egg
>How-To-Repeat:
>Fix:
Change name of the destination directory from
python_ldap-2.3.5-py2.5-freebsd-7.2-PRERELEASE-i386.egg
to
python_ldap-2.3.5-py2.5-freebsd-7.2-RELEASE-i386.egg
or ommit platform field.
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list