Subject: Re: Python buildlink?
To: None <>
From: Amitai Schlair <>
List: tech-pkg
Date: 07/26/2002 18:10:20
"Julio Merino" <> wrote:

> I'm trying to package subversion, a CVS replacement tool:
> The package needs to use python greater than 2.0. As somebody
suggested for
> the mailman package, I've included in the Makefile.


You don't need to (and probably shouldn't) include
directly. Instead, include either or (or both, in some cases), and they will include for you.

The default version requirements are as follows:

- If no Python is installed, or the installed Pythons are all older than
2.0, lang/python21 will be installed.

- If a Python package >= 2.0 is installed, it will be used.

If that meets Subversion's needs, you don't need to do anything further.

> Although, the package itself wants to run python as "python" itself,
> it's in the path.
> The first problem is that there is no such python binary. I was
thinking of adding
> some kind of stuff to link the choosed binary by into
> ${BUILDLINK_DIR}/bin/python. But... where should this stuff go? Maybe
> Maybe in a (note that this is not really a
> Patching the package itself is not a good idea, as the patch would
need to include
> something like python2.1, hardcoding a version number inside.

I'd recommend fixing those paths in two steps. First, patch the
problematic instances of "python" to @PYTHONBIN@. Then, override the
pre-configure target and use sed to replace @PYTHONBIN@ with

- Amitai