shebang problem with python, Was: [REL - head-i386-default][databases/postgresql-libpqxx] Failed for postgresql-libpqxx-4.0.1 in build
Antoine Brodin
antoine at FreeBSD.org
Thu Feb 13 19:46:58 UTC 2014
On Thu, Feb 13, 2014 at 8:22 PM, Palle Girgensohn <girgen at freebsd.org> wrote:
> Hi python@ and bapt@,
>
> I'm usnure how to fix this problem.
>
> postgresql-libpqxx needs python (shebang:ed) during the build process, and this is defined in the port using
>
> USE_PYTHON_BUILD= yes
> USES= gmake shebangfix
> SHEBANG_FILES= ${WRKSRC}/tools/splitconfig
>
>
> The shebangfix alters #!/usr/bin/python in tools/splitconfig to #!/usr/local/bin/python...
>
> But USE_PYTHON_BUILD only installs the python2 symlink, not the python symlink, so /usr/local/bin/python does not get installed in a clean room environment.
>
> I believe the port is agnostic to the version of python, so I don't want to enforce a specific version of python just for this port's build, but the build process does not automatically install the lang/python meta port.
>
> How is this supposed to work?
Hi,
You can use python_CMD= ${PYTHON_CMD} (currently installed python file name)
Since it's only a build dependency and the splitconfig file is not
packaged this shouldn't be a problem.
Cheers,
Antoine
More information about the freebsd-python
mailing list