Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 01 Aug 2012 05:44:35 +0700
From:      Jan Beich <jbeich@tormail.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/170301: [patch] misusage of PYTHON_SITELIBDIR (non-default PREFIX)
Message-ID:  <1SwLAf-000GoH-47@internal.tormail.org>
Resent-Message-ID: <201207312250.q6VMoA4r096545@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         170301
>Category:       ports
>Synopsis:       [patch] misusage of PYTHON_SITELIBDIR (non-default PREFIX)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jul 31 22:50:09 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Jan Beich
>Release:        FreeBSD 10.0-CURRENT amd64
>Organization:
>Environment:
>Description:
Python ports install into PYTHONPREFIX_SITELIBDIR, not PYTHON_SITELIBDIR.
The list is not complete, suggest a better regexp than

  $ find . -name 'Makefile*' -exec grep '^DATADIR.*PYTHON_SITELIBDIR'
>How-To-Repeat:
$ make install deinstall PREFIX=/tmp/aaa PKG_DBDIR=/tmp/pkg
$ find /tmp/aaa/ ! -type d
/tmp/aaa/lib/python2.7/site-packages/bugz/cli.py
/tmp/aaa/lib/python2.7/site-packages/bugz/bugzilla.py
/tmp/aaa/lib/python2.7/site-packages/bugz/config.py
/tmp/aaa/lib/python2.7/site-packages/bugz/__init__.py
[...]
>Fix:
--- python_prefix.diff begins here ---
Index: devel/pybugz/Makefile
===================================================================
--- devel/pybugz/Makefile	(revision 301674)
+++ devel/pybugz/Makefile	(working copy)
@@ -24,7 +24,7 @@ USE_PYTHON=	2.5+
 USE_PYDISTUTILS=yes
 
 PLIST_FILES=	bin/bugz
-DATADIR=	${PYTHON_SITELIBDIR}/bugz
+DATADIR=	${PYTHONPREFIX_SITELIBDIR}/bugz
 PORTDATA=	*
 
 .include <bsd.port.mk>
Index: x11-toolkits/py-wax/Makefile
===================================================================
--- x11-toolkits/py-wax/Makefile	(revision 301674)
+++ x11-toolkits/py-wax/Makefile	(working copy)
@@ -20,7 +20,7 @@ RUN_DEPENDS=	${PYTHON_SITELIBDIR}/${WX_PYTHON_DIR}
 NO_BUILD=	yes
 USE_PYTHON=	yes
 
-DATADIR=	${PYTHON_SITELIBDIR}
+DATADIR=	${PYTHONPREFIX_SITELIBDIR}
 
 FIND_DIRS=	-type d \! -empty
 FIND_DATA=	-type f
Index: print/py-pyscript/Makefile
===================================================================
--- print/py-pyscript/Makefile	(revision 301674)
+++ print/py-pyscript/Makefile	(working copy)
@@ -21,7 +21,7 @@ RUN_DEPENDS=	latex:${PORTSDIR}/print/teTeX-base \
 USE_PYTHON=	yes
 USE_PYDISTUTILS=	yes
 
-DATADIR=	${PYTHON_SITELIBDIR}/${PORTNAME}
+DATADIR=	${PYTHONPREFIX_SITELIBDIR}/${PORTNAME}
 
 PYSCRIPT_EXAMPLES=	doc/examples/*.py
 PYSCRIPT_MANUAL=	doc/manual/pyscript.pdf
--- python_prefix.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1SwLAf-000GoH-47>