Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Apr 2013 13:55:38 +0200
From:      Baptiste Daroussin <bapt@freebsd.org>
To:        Chris Rees <utisoft@gmail.com>
Cc:        FreeBSD Mailing List <freebsd-ports@freebsd.org>, Michael Gmelin <freebsd@grem.de>
Subject:   Re: www/nginx pkg-plist + pkgng (detectable?)
Message-ID:  <20130410115538.GA95891@ithaqua.etoilebsd.net>
In-Reply-To: <CADLo839mvnemkWaKz4wbHZChQWSj0%2BtVgBOwTLuW12mGf0Of2g@mail.gmail.com>
References:  <20130330034028.0f8cefc8@bsd64.grem.de> <5156C0D9.50909@FreeBSD.org> <20130330142320.38010126@bsd64.grem.de> <20130408103118.67ea695a@bsd64.grem.de> <CADLo838OFhmA6AQNuHPjP=Kfw9Co9vWh3XqxrFkEH-dgb81pzA@mail.gmail.com> <20130409205950.677a6812@bsd64.grem.de> <20130410061331.GA74304@ithaqua.etoilebsd.net> <CADLo839mvnemkWaKz4wbHZChQWSj0%2BtVgBOwTLuW12mGf0Of2g@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--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 <bapt@freebsd.org> 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 <utisoft@gmail.com> 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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130410115538.GA95891>