From owner-freebsd-ports@FreeBSD.ORG Thu May 2 20:00:19 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id B69DF7A3 for ; Thu, 2 May 2013 20:00:19 +0000 (UTC) (envelope-from mezz.freebsd@gmail.com) Received: from mail-ve0-x236.google.com (mail-ve0-x236.google.com [IPv6:2607:f8b0:400c:c01::236]) by mx1.freebsd.org (Postfix) with ESMTP id 7B5821306 for ; Thu, 2 May 2013 20:00:19 +0000 (UTC) Received: by mail-ve0-f182.google.com with SMTP id jx10so911590veb.13 for ; Thu, 02 May 2013 13:00:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type:content-transfer-encoding; bh=k74Jya+OE+qRr4huYAk+a/D0lp5UrBo8v6IBLVPMCPo=; b=N3t6JofWpE4sOT9EmsAX86riw47gu7ZLEL/Od9LRJAmlBL2Rzu55eU+uV/n49cb6gV EvR4OuUxY02JKtujrn5OGLlhj1jUwcDhDglnTEeGJ2J7WXOxkEZiAiMEuQVKhtiUCRvG KPLKGZUEa/5jWipwfnbSFTY0wAG91mBj9msOfC4ehzZcWBxjPp0WE8izB3TfWC2lgGkV A0LVtTPk4gTos886cFy0ySO6E7jFJD8ENB4OIu8jOVXIWfWsLSTiYzCxLH8eJF+/nXmQ Tp7ZO1P1993w3JRn93FmvWRTuq0jOI+b50U1fcIgL++COF7nkLmyvm+belbo5kwEVQTj FOJQ== MIME-Version: 1.0 X-Received: by 10.220.66.212 with SMTP id o20mr2721210vci.2.1367524818929; Thu, 02 May 2013 13:00:18 -0700 (PDT) Received: by 10.58.74.197 with HTTP; Thu, 2 May 2013 13:00:18 -0700 (PDT) In-Reply-To: <5182C3DE.7040006@wasikowski.net> References: <20130430103821.GJ3577@ithaqua.etoilebsd.net> <1786370.b1sXK5t6Pv@pcoliver.heesakkers.info> <518276B1.80000@wasikowski.net> <3801459.Q9n94ffT6F@pcoliver.heesakkers.info> <5182C3DE.7040006@wasikowski.net> Date: Thu, 2 May 2013 15:00:18 -0500 Message-ID: Subject: Re: [BRAINSTORM] shebang fixing framework From: Jeremy Messenger To: =?ISO-8859-2?Q?=A3ukasz_W=B1sikowski?= Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: quoted-printable Cc: Oliver Heesakkers , 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, 02 May 2013 20:00:19 -0000 On Thu, May 2, 2013 at 2:51 PM, =A3ukasz W=B1sikowski wrote: > W dniu 2013-05-02 20:29, Oliver Heesakkers pisze: > >> Op do 02 mei 2013 16:22:41 schreef =A3ukasz W=B1sikowski: > >>> /usr/bin/env is not good in all the situation. Look at >>> www.freebsd.org/cgi/query-pr.cgi?pr=3D177481 - /usr/bin/env is not work= ing >>> when using 'service' to start daemons. We should change PATH used by >>> 'service' to include /usr/local/bin and /usr/local/sbin or stop using >>> /usr/bin/env to start rc.d scripts. >> >> >> A question that arises from reading that pr is why service doesn't inclu= de >> /usr/local/bin and /usr/local/sbin in its PATH, if it does your problem = would >> probably dissapear. > > That would probably be the best fix. > >> I have no /usr/bin/perl symlink, in the pure-ftpd port directory I do: >> >> make extract >> head -n1 work/pure-ftpd-1.0.36/configuration-file/pure-config.pl.in >> #! @PERL@ >> >> >> After installation the shebang reads: >> #! /usr/local/bin/perl >> >> and I can use service to start or stop the daemon without any hacking. > > That is interesting. service(8) clearly states that PATH is set to > /sbin:/bin:/usr/sbin:/usr/bin, so perl interpreter in /usr/local/bin > should not work (like it doesn't in my case). The gdm's RC script has to set (export) PATH to make everything work. > -- > best regards, > Lukasz Wasikowski -- mezz.freebsd@gmail.com - mezz@FreeBSD.org FreeBSD GNOME Team http://www.FreeBSD.org/gnome/ - gnome@FreeBSD.org