Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Dec 2008 11:23:42 +0100
From:      "Alexey Shuvaev" <shuvaev@physik.uni-wuerzburg.de>
To:        Silver Salonen <silver.salonen@gmail.com>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: PYTHON_SITELIBDIR gets parsed incorrectly
Message-ID:  <20081210102342.GA11556@wep4035.physik.uni-wuerzburg.de>
In-Reply-To: <20930607.post@talk.nabble.com>
References:  <20930607.post@talk.nabble.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hello!

On Wed, Dec 10, 2008 at 12:57:52AM -0800, Silver Salonen wrote:
> 
> Hello.
> 
> I'm creating a port that uses python. I've set in Makefile:
> USE_PYTHON=     yes
> PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR:S|^${PREFIX}/||g}
> PLIST_SUB+=     PYTHON_SITELIBDIR="${PYTHON_SITELIBDIR}"
> 
> And pkg-plist has entries a'la:
> %%BINDINGS%%%%PYTHON_SITELIBDIR%%/
> 
> This %%BINDINGS%% gets replaced with "", so that should not be an issue.
> 
> Anyway, when I install port, +CONTENTS contains lines a'la:
> /usr/local/lib/python2.5/site-packages/museek/__init__.py
> 
This is wrong. They should be relative to ${LOCALBASE},
lib/python2.5/site-packages/bla-bla-bla
in this case.
Can't say why %) Examine the behavior of PYTHON_SITELIBDIR variable
in the Makefile.

> And when I try deinstalling it, I get errors a'la:
> pkg_delete: file
> '/usr/local//usr/local/lib/python2.5/site-packages/museek/__init__.py'
> doesn't exist
> 
> Why do these files get prefixed with $LOCALBASE (or $PREFIX)?
> 

0.02$,
Alexey.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081210102342.GA11556>