ports/116278: [Patch]: Fix PYDISTUTILS_EGGINFODIR for ports that use a PREFIX different from python's PREFIX

Marcus von Appen mva at sysfault.org
Tue Sep 11 08:00:09 UTC 2007


>Number:         116278
>Category:       ports
>Synopsis:       [Patch]: Fix PYDISTUTILS_EGGINFODIR for ports that use a PREFIX different from python's PREFIX
>Confidential:   no
>Severity:       non-critical
>Priority:       high
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Sep 11 08:00:08 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Marcus von Appen
>Release:        FreeBSD 6.2-STABLE i386
>Organization:
>Environment:
System: FreeBSD medusa.sysfault.org 6.2-STABLE FreeBSD 6.2-STABLE #0: Tue Aug 21 09:51:56 CEST 2007 root at medusa.sysfault.org:/usr/obj/usr/src/sys/MEDUSA i386


	
>Description:

If a port uses a PREFIX different from the installation PREFIX of
lang/python25, the egg-info files are not recorded correctly within the
PLIST, if the port does not override PYDISTUTILS_EGGINFODIR within its
Makefile.

>How-To-Repeat:

Try to install and deinstall devel/py-vmaps (or any other port that does
not set PYDISTUTILS_EGGINFODIR) with a PREFIX different from
lang/python25's:

install:
[...]
running install_egg_info
Writing /usr/local/ports/test/lib/python2.5/site-packages/Vmaps-1.0-py2.5.egg-info
[...]

deinstall:
[...]
===>   Deinstalling py25-vmaps-1.1
pkg_delete: file '/usr/local/ports/test//usr/local/lib/python2.5/site-packages/Vmaps-1.0-py2.5.egg-info' doesn't exist
[...]

>Fix:

I am not entirely sure, if the following patch has negative
side-effect. I did not recognize one however.

--- /usr/ports/Mk/bsd.python.mk	2007-09-11 09:47:06.000000000 +0200
+++ /usr/ports/Mk/bsd.python.mk.new	2007-09-11 09:47:33.000000000 +0200
@@ -465,7 +465,7 @@
 PYDISTUTILS_PKGNAME?=	${PORTNAME}
 PYDISTUTILS_PKGVERSION?=${PORTVERSION}
 PYDISTUTILS_EGGINFO?=	${PYDISTUTILS_PKGNAME:C/[^A-Za-z0-9.]+/_/g}-${PYDISTUTILS_PKGVERSION:C/[^A-Za-z0-9.]+/_/g}-${PYTHON_VERSION:S/thon//}.egg-info
-PYDISTUTILS_EGGINFODIR?=${PYTHON_SITELIBDIR}
+PYDISTUTILS_EGGINFODIR?=${PYTHONPREFIX_SITELIBDIR}
 
 .if !defined(PYDISTUTILS_NOEGGINFO) && \
 	(defined(INSTALLS_EGGINFO) ||	\
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list