From owner-freebsd-ports@FreeBSD.ORG Wed May 7 13:37:49 2014 Return-Path: Delivered-To: ports@freeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 758FEDDF; Wed, 7 May 2014 13:37:49 +0000 (UTC) Received: from smtprelay01.ispgateway.de (smtprelay01.ispgateway.de [80.67.31.28]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 336E09E7; Wed, 7 May 2014 13:37:49 +0000 (UTC) Received: from [89.182.179.0] (helo=localhost) by smtprelay01.ispgateway.de with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1Wi22V-0002It-Eq; Wed, 07 May 2014 15:37:39 +0200 Date: Wed, 7 May 2014 15:37:40 +0200 From: Marcus von Appen To: Glen Barber Subject: Re: pgtune: doesn't check for python Message-ID: <20140507133740.GA905@medusa.sysfault.org> Reply-To: Marcus von Appen Mail-Followup-To: Glen Barber , ports@freeBSD.org References: <53692E61.5030306@yahoo.com> <44lhud4uyq.fsf@lowell-desk.lan> <536A2DC5.4080809@yahoo.com> <20140507132343.GE69199@hub.FreeBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="tKW2IUtsqtDRztdT" Content-Disposition: inline In-Reply-To: <20140507132343.GE69199@hub.FreeBSD.org> User-Agent: Mutt/1.5.23 (2014-03-12) X-Df-Sender: MTEyNTc0Mg== Cc: ports@freeBSD.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 May 2014 13:37:49 -0000 --tKW2IUtsqtDRztdT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 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 --tKW2IUtsqtDRztdT Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (FreeBSD) iEYEARECAAYFAlNqNyQACgkQi68/ErJnpkeo5gCgusHDOBF+c+uwaE+xi6iVHcrM 2wIAoJ5uETe/HQsmik5dyYW/BQUeNCJG =8Fea -----END PGP SIGNATURE----- --tKW2IUtsqtDRztdT--