Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Feb 2014 20:46:57 +0100
From:      Antoine Brodin <antoine@FreeBSD.org>
To:        Palle Girgensohn <girgen@freebsd.org>
Cc:        pkg-fallout-builder@freebsd.org, python@freebsd.org, "pkg-fallout@freebsd.org" <pkg-fallout@freebsd.org>, pgsql@freebsd.org
Subject:   Re: shebang problem with python, Was: [REL - head-i386-default][databases/postgresql-libpqxx] Failed for postgresql-libpqxx-4.0.1 in build
Message-ID:  <CAALwa8=0JKMJk6V9n6QcO19hN2z-4N9wMsEOJUF449EkrddOtw@mail.gmail.com>
In-Reply-To: <FD6E18AE-765A-42A5-AEEA-05475EE4B5F2@FreeBSD.org>
References:  <201402131903.s1DJ3Q6q070999@beefy1.isc.freebsd.org> <FD6E18AE-765A-42A5-AEEA-05475EE4B5F2@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Feb 13, 2014 at 8:22 PM, Palle Girgensohn <girgen@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAALwa8=0JKMJk6V9n6QcO19hN2z-4N9wMsEOJUF449EkrddOtw>