pgtune: doesn't check for python

Marcus von Appen mva at FreeBSD.org
Wed May 7 13:37:49 UTC 2014


On, Wed May 07, 2014, Glen Barber wrote:

> On Wed, May 07, 2014 at 08:57:41AM -0400, pathiaki2 wrote:
> > On 05/07/2014 08:46, Lowell Gilbert wrote:
> > >pathiaki2 <pathiaki2 at yahoo.com> writes:
> > >
> > >>/usr/ports/databases/pgtune....
> > >>
> > >>It doesn't check to see if python is installed.  Python is required to
> > >>run this.
> > >That's strange. pgtune defines USE_PYTHON, which adds python to both the
> > >build and run dependencies. It *should* work correctly...
> > Bizarre.  I installed it and it didn't.
> >
> > When I tried to run it, it stated: "Program not found".
> >
> > So, I checked the top of the pgtune 'executable' and found it referenced
> > Python.  So, I installed python and it ran just fine. *shrug*
> >
> > I'm on 10.0 and a recent portsnap.  I was doing this in a jail.
> >
>
> This is because the lang/pythonN.M ports do not explicitly require
> lang/python (which only creates a symlink to the default python
> interpreter).
>
> I'll see what I can do to fix this.

pgtune should fix the shebang lines or whatever it uses and set them to the
appropriate PYTHON_CMD value (check astro/py-metar for an example with the
shebangfix).

It's not compatible with Python 3.x, too, so it should USE_PYTHON=2 instead
of USE_PYTHON=yes.

Cheers
Marcus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20140507/332d5664/attachment.sig>


More information about the freebsd-ports mailing list