shebang problem with python, Was: [REL - head-i386-default][databases/postgresql-libpqxx] Failed for postgresql-libpqxx-4.0.1 in build
Palle Girgensohn
girgen at FreeBSD.org
Thu Feb 13 20:01:28 UTC 2014
Lovely, thank a bundle!
Palle
13 feb 2014 kl. 20:46 skrev Antoine Brodin <antoine at FreeBSD.org>:
> 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 495 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/freebsd-python/attachments/20140213/3bababe9/attachment.sig>
More information about the freebsd-python
mailing list