From owner-freebsd-stable@FreeBSD.ORG Wed Feb 28 23:27:32 2007 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F247516A405 for ; Wed, 28 Feb 2007 23:27:32 +0000 (UTC) (envelope-from andrew@areilly.bpa.nu) Received: from omta04sl.mx.bigpond.com (omta04sl.mx.bigpond.com [144.140.93.156]) by mx1.freebsd.org (Postfix) with ESMTP id 8E37813C491 for ; Wed, 28 Feb 2007 23:27:32 +0000 (UTC) (envelope-from andrew@areilly.bpa.nu) Received: from oaamta04sl.mx.bigpond.com ([144.132.228.157]) by omta04sl.mx.bigpond.com with ESMTP id <20070228232730.HZUB10056.omta04sl.mx.bigpond.com@oaamta04sl.mx.bigpond.com> for ; Wed, 28 Feb 2007 23:27:30 +0000 Received: from areilly.bpa.nu ([144.132.228.157]) by oaamta04sl.mx.bigpond.com with ESMTP id <20070228232730.LUQY18620.oaamta04sl.mx.bigpond.com@areilly.bpa.nu> for ; Wed, 28 Feb 2007 23:27:30 +0000 Received: (qmail 53042 invoked by uid 501); 28 Feb 2007 23:24:40 -0000 Date: Thu, 1 Mar 2007 10:24:40 +1100 From: Andrew Reilly To: Daniel Eischen Message-ID: <20070228232440.GA52836@duncan.reilly.home> References: <20070228042229.GA33810@duncan.reilly.home> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.2i Cc: freebsd-stable@freebsd.org, freebsd-ports@freebsd.org Subject: Re: Apache13/MoinMoin/Python vs PATH? What changed? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Feb 2007 23:27:33 -0000 Hi Daniel, On Wed, Feb 28, 2007 at 08:41:00AM -0500, Daniel Eischen wrote: > On Wed, 28 Feb 2007, Andrew Reilly wrote: > >Funny thing happened after the last upgrade (upgraded to > >6-STABLE yesterday): the moinmoin wiki that I've been > >playing with stopped working. A little fiddling found > >that I could make it work again by changing the shebang > >at the top of /usr/local/www/wiki/moin.cgi (ScriptAlias > >points there, in httpd.conf) from #!/usr/bin/env python to > >#!/usr/local/bin/python > > See this thread: > > http://groups.google.com/group/mailing.freebsd.cvs/browse_thread/thread/a0344851d94df36f/e94a3c524ff22732?lnk=st&q=&rnum=3#e94a3c524ff22732 > > If that link doesn't work, search groups.google.com, > "/usr/bin/env python group:*freebsd*" and see the > "cvs commit: src/etc rc.subr" thread. Thanks for the link: it worked fine for me. I'm a little surprised that I appear to be the first one bringing up a problem with this change, given that it happened three months ago. Since there was no warning in UPDATING, were all of the python ports patched at about the same time? (I haven't done a portupgrade all that recently: just FreeBSD itself.) What is the approved "fix" for this problem? Setting a PATH that includes /usr/local/bin in /usr/local/etc/rc.d/apache.sh? Or the shebang patch to the python script itself, that I have already made? Personally, I agree that the env trick is a nasty hack, and the ports patch mechanism should be well able to tell the script where the right python interpreter is. Particularly since there can legitimately be more than one in the system. Cheers, -- Andrew