From owner-freebsd-ports@FreeBSD.ORG Thu Jun 20 07:17:57 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id E4230F91 for ; Thu, 20 Jun 2013 07:17:57 +0000 (UTC) (envelope-from baptiste.daroussin@gmail.com) Received: from mail-we0-x230.google.com (mail-we0-x230.google.com [IPv6:2a00:1450:400c:c03::230]) by mx1.freebsd.org (Postfix) with ESMTP id 7893A1E70 for ; Thu, 20 Jun 2013 07:17:57 +0000 (UTC) Received: by mail-we0-f176.google.com with SMTP id t56so5137712wes.35 for ; Thu, 20 Jun 2013 00:17:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=CZGLNOtWK/mLhw9QhiW3jTWNXa4ttJ7Zkx3I3T0CHus=; b=nytPQ4//0eQHNFuUGcL/eRJKyPOmkPMOH6mj0Fuefcf1xofMzt+LOmkBGk5RsIvaY6 q3LXixzbsAATndocKx62+c5Fw32T6L0ZNCMo0KriaDxDjA07BJbtEEWqdilbEO/LKBgw h1go7rby86J56O8qmBkbif0rbon6vywYtFBQJSakEjhL27BygKHTSvS34ab7u1J28oQ6 FiDSot4DoIzYuJCNWWSuIvkqRwShKjYlogxctqWlU4FqM6uFu+t4RCi9yZ3GPnrKZ1eA RePuXWYyeq5q1kAVroCvVRU/tMB+//mA7/oyNaX5G5YDipyhcKxh3WmGAg655NopE74W uOZw== X-Received: by 10.194.173.71 with SMTP id bi7mr4766376wjc.2.1371712676590; Thu, 20 Jun 2013 00:17:56 -0700 (PDT) Received: from ithaqua.etoilebsd.net (ithaqua.etoilebsd.net. [37.59.37.188]) by mx.google.com with ESMTPSA id b11sm14028118wiv.10.2013.06.20.00.17.54 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 20 Jun 2013 00:17:55 -0700 (PDT) Sender: Baptiste Daroussin Date: Thu, 20 Jun 2013 09:17:53 +0200 From: Baptiste Daroussin To: James Subject: Re: www/rubygem-passenger now requires bash? Message-ID: <20130620071752.GB23721@ithaqua.etoilebsd.net> References: <71c953f9ebbd220a72258fb1dbf322f8.squirrel@mouf.net> <20130611131221.3a222e13@scorpio> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="KFztAG8eRSV9hGtP" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Cc: FreeBSD-ports X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Jun 2013 07:17:58 -0000 --KFztAG8eRSV9hGtP Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jun 11, 2013 at 02:03:13PM -0500, James wrote: > On Tue, Jun 11, 2013 at 12:12 PM, Jerry wrote: >=20 > > I totally agree. Plus, perhaps the port can be modified to use "env" > > to locate bash; ie, "\usr\bin\env bash". I use it all the time for > > shell scripts that I write for various systems and it hasn't failed > > me yet. >=20 > Aye. bapt@ is working on a solution for this. I'm not sure where > it's at right now, but it looks really handy. He's proposing a > framework that automatically fixes the path in shebangs. It's less > fragile than env(1) when dealing with daemons=E2=80=94those start up = with > a stock path unless you change /etc/rc or related. >=20 > I run into this problem sometimes too. I build ports to a > non-standard prefix so anything that hard-codes /usr/local is > apparent. :) At the moment I patch or substitute the scripts which > works fine, but bapt's solution is better. >=20 It is committed and available in the ports tree right now via: USES=3D sheb= angfix. But here it is another problem, apparently the reason for bash is that upst= ream expect it to parse .bashrc where they seems to recommand some people to put configuration variables. IMHO, someone that knows a bit how passenger works should contact them and tell them they could use for instance .profile inst= ead of .bashrc and always run /bin/sh instead of bash, I haven't dig the proble= m at all, but it doesn't seem like they really use bash only feature or anything else. regards, Bapt --KFztAG8eRSV9hGtP Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAlHCrKAACgkQ8kTtMUmk6EwqsQCguXvtWsmSHeI9//8mPtU37Fzc CMoAoJQou7XwwhE+EUNBcjdG4ggr3V2A =dnSr -----END PGP SIGNATURE----- --KFztAG8eRSV9hGtP--