Date: Mon, 21 Aug 2006 12:27:20 +0100 From: Florent Thoumie <flz@FreeBSD.org> To: Kris Kennaway <kris@obsecurity.org> Cc: cvs-src@freebsd.org, src-committers@freebsd.org, "Raphael H. Becker" <rabe@p-i-n.com>, cvs-all@freebsd.org Subject: Re: PKGDIR ambiguous (was: cvs commit: src/usr.sbin/pkg_install/info info.h main.c perform.c pkg_info.1 src/usr.sbin/pkg_install/add add.h main.c perform.c pkg_add.1 src/usr.sbin/pkg_install/lib lib.h url.c) Message-ID: <1156159640.53353.29.camel@mayday.esat.net> In-Reply-To: <20060821110753.GA99959@xor.obsecurity.org> References: <200601161951.k0GJpfNx017833@repoman.freebsd.org> <20060821080945.A48690@p-i-n.com> <20060821110753.GA99959@xor.obsecurity.org>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
On Mon, 2006-08-21 at 07:07 -0400, Kris Kennaway wrote:
> On Mon, Aug 21, 2006 at 08:09:45AM +0200, Raphael H. Becker wrote:
> >
> > Hi Florent,
> >
> > PKGDIR is ambiguous in the context of ports and packages.
> >
> > I set PKGDIR=/some/where/my/pkg in my /etc/profile which causes the
> > ports to fail badly creating any packages:
> >
> > It is used in ports/Mk/bsd.port.mk:
> > # PKGDIR - A directory containing any package creation
> > # files.
> > # Default: ${MASTERDIR}
> > [...]
> > PKGDIR?= ${MASTERDIR}
> >
> > Havin set PKGDIR statically is a very bad idea here.
>
> Yes, PKGDIR is incorrect in this usage. The documented place where
> packages are stored is:
>
> # PACKAGES - A top level directory where all packages go (rather than
> # going locally to each port).
> # Default: ${PORTSDIR}/packages
> #
PACKAGES is a better choice than PKGDIR, but I'd like to avoid confusion
between "cached" packages (as in, copies of downloaded packages), and
"home-brewed" packages. That's why I was proposing PKG_CACHEDIR.
Moreover, I think there's no easy way to find the category of a package
before it is downloaded.
--
Florent Thoumie
flz@FreeBSD.org
FreeBSD Committer
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.4 (FreeBSD)
iD8DBQBE6ZiYMxEkbVFH3PQRAjeEAJ93zU7wJV9XIEPYHns36zlvpAXSvACeL2bK
ZorB0Mv6ms/FwGVL0UmxxO4=
=9THo
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1156159640.53353.29.camel>
