Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Feb 2014 21:01:24 +0100
From:      Palle Girgensohn <girgen@FreeBSD.org>
To:        Antoine Brodin <antoine@FreeBSD.org>
Cc:        pkg-fallout-builder@freebsd.org, Baptiste Daroussin <bapt@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:  <81003877-D3DF-41F8-A4AC-63A274B72DCB@FreeBSD.org>
In-Reply-To: <CAALwa8=0JKMJk6V9n6QcO19hN2z-4N9wMsEOJUF449EkrddOtw@mail.gmail.com>
References:  <201402131903.s1DJ3Q6q070999@beefy1.isc.freebsd.org> <FD6E18AE-765A-42A5-AEEA-05475EE4B5F2@FreeBSD.org> <CAALwa8=0JKMJk6V9n6QcO19hN2z-4N9wMsEOJUF449EkrddOtw@mail.gmail.com>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
Lovely, thank a bundle!

Palle

13 feb 2014 kl. 20:46 skrev Antoine Brodin <antoine@FreeBSD.org>:

> 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


[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - http://gpgtools.org

iQEcBAEBAgAGBQJS/SSUAAoJEIhV+7FrxBJDVPYIAIIflVewUEnV+q1VvimYrkdM
1fUvpu4vfb5yh5pn5KjdDnBTRxTBNxTOLur5LTMrp8qD8g3OEze/4X1TqJRJv0Q2
JgNURaePsVRGBMSZkyxiufwixNj7Ou5Oh7rgJGZt7GxH/LnMLmSpsD9kLGSFEl1q
ipzFxMIsmcU94Sw492pa8hAoi4jOzmZJAK+o0ezgxN4d5TLFmWVFernXY43ZSilI
D6OtkPTJDZJb5nEZcfp2uCmNBV3YgfViAjIMtUBEGvP/JrEmWZnCgz6C91/CRJlQ
HhDUAZQSW/Uh0hUzques2c7Ua+zGl41f6yNgGcyS4tqawQX3Y6imCeXW0qjuDpg=
=2vcj
-----END PGP SIGNATURE-----
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?81003877-D3DF-41F8-A4AC-63A274B72DCB>