From owner-freebsd-ports@FreeBSD.ORG Wed Apr 10 11:55:44 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 7EC1C3C5 for ; Wed, 10 Apr 2013 11:55:44 +0000 (UTC) (envelope-from baptiste.daroussin@gmail.com) Received: from mail-wg0-f46.google.com (mail-wg0-f46.google.com [74.125.82.46]) by mx1.freebsd.org (Postfix) with ESMTP id 13F1B9E3 for ; Wed, 10 Apr 2013 11:55:43 +0000 (UTC) Received: by mail-wg0-f46.google.com with SMTP id j13so367576wgh.1 for ; Wed, 10 Apr 2013 04:55:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:date:from:to:cc:subject:message-id:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=V7LGDpnNc0bmf4NSlPcZFtRThxVKMba3a8pZ7gsBvNo=; b=Lbsl9JstnJDPC3U2Oea2UM/pi6ij3qBB10U9VflnOmXGzi2eGud5dY9h3EOKhaN+hn lNC3UZsKwpCX9FlSTT8tXBM8vsg5NJcu2O66yFWKn5hJ787n5Pe6XGrXgqwO48/rhEIh JXhZO0nQYzgnsANmfYw9gfCDfS5XbGctQ+bC5kWef7y9GEEeGyXUCr58phIHMb8FYEF9 i4OBe1oQTBqo831rBqYG23d3JmcL4WPjwu2s6QpsHOZ+vi1QO3R9Iy7MxqrOwBciWWOy FXUYDXt5oCwUvrlh7PleaN8DvtYIOJjqvcUczwvA+V6pAv1jqdKBUq11SHA6fU63RVfr XXvg== X-Received: by 10.180.189.205 with SMTP id gk13mr26171653wic.25.1365594943025; Wed, 10 Apr 2013 04:55:43 -0700 (PDT) Received: from ithaqua.etoilebsd.net (ithaqua.etoilebsd.net. [37.59.37.188]) by mx.google.com with ESMTPS id ek4sm31311324wib.11.2013.04.10.04.55.40 (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 10 Apr 2013 04:55:41 -0700 (PDT) Sender: Baptiste Daroussin Date: Wed, 10 Apr 2013 13:55:38 +0200 From: Baptiste Daroussin To: Chris Rees Subject: Re: www/nginx pkg-plist + pkgng (detectable?) Message-ID: <20130410115538.GA95891@ithaqua.etoilebsd.net> References: <20130330034028.0f8cefc8@bsd64.grem.de> <5156C0D9.50909@FreeBSD.org> <20130330142320.38010126@bsd64.grem.de> <20130408103118.67ea695a@bsd64.grem.de> <20130409205950.677a6812@bsd64.grem.de> <20130410061331.GA74304@ithaqua.etoilebsd.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="AqsLC8rIMeq19msA" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Cc: FreeBSD Mailing List , Michael Gmelin 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: Wed, 10 Apr 2013 11:55:44 -0000 --AqsLC8rIMeq19msA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Apr 10, 2013 at 09:02:29AM +0100, Chris Rees wrote: > On 10 April 2013 07:13, Baptiste Daroussin wrote: > > On Tue, Apr 09, 2013 at 08:59:50PM +0200, Michael Gmelin wrote: > >> On Tue, 9 Apr 2013 19:43:15 +0100 > >> Chris Rees wrote: > >> > >> > >> > > >> > No, it's a bug in pkgng; it should respect @cwd. > >> > > > > > No it is not. > > > > While i agree with pkgng that should repect @cwd (it surely does) > > > > There is nothing written anywhere that will waranty you that the @exec = line will > > be parsed in order ro prepend @cwd path to a path you provide. the only= thing > > doing that is %D. > > > > A user MUST add %D and have complete path in @exec lines > > > > In fact in that case it works by chance becauce of how pkg_install trea= t plist. >=20 > Am I misunderstanding the meaning of "current working directory"? >=20 > When mkdir is called, it should create the directory in @cwd. > pkg_install's behaviour is correct here, and pkgng's is not. >=20 > Chris Now one of the major difference between pkg_* and pkgng is that plist is no= more a script, as it should have never been meaning current directory means noth= ing. As all of the plist (meaning 99%) of the uses the %D as they should do and = %D is expected to the lastet @cwd "path" then it works correctly. keeping plist as a script is a total non sense and has been avoided by most= of the maintainer for the last years (almost noone used @cwd that way) for good reason. regards, Bapt --AqsLC8rIMeq19msA Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAlFlUzoACgkQ8kTtMUmk6Ez3bACghhNo/T9dIwL1YYER0/Bhx+p1 OIwAn0hctXcxpukyvofTKf9ZJ23EWqzE =DNC4 -----END PGP SIGNATURE----- --AqsLC8rIMeq19msA--