Date: Sun, 26 Aug 2001 11:31:04 +0200 From: Neil Blakey-Milner <nbm@mithrandr.moria.org> To: Dima Dorfman <dima@unixfreak.org> Cc: freebsd-doc@freebsd.org, FreeBSD-gnats-submit@freebsd.org Subject: Re: docs/29740: [PATCH] Setting WRKDIRPREFIX=/usr/obj is a bad idea, but not commented Message-ID: <20010826113104.A16096@mithrandr.moria.org> In-Reply-To: <200108252220.f7PMK2Z43522@freefall.freebsd.org>; from dima@unixfreak.org on Sat, Aug 25, 2001 at 03:20:02PM -0700 References: <200108252220.f7PMK2Z43522@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat 2001-08-25 (15:20), Dima Dorfman wrote: > The following reply was made to PR docs/29740; it has been noted by GNATS. > > From: Dima Dorfman <dima@unixfreak.org> > To: "Peter Avalos" <pavalos@theshell.com> > Cc: FreeBSD-gnats-submit@freebsd.org > Subject: Re: docs/29740: [PATCH] Setting WRKDIRPREFIX=/usr/obj is a bad idea, but not commented > Date: Sat, 25 Aug 2001 15:14:31 -0700 > > "Peter Avalos" <pavalos@theshell.com> writes: > > > It seems wrong to tell someone not to do something and not > > > provide an explanation. > > > > I was thinking the same thing, but I honestly don't know why this > > confuses make so much. Perhaps someone who can explain this would > > like to submit a better patch. > > It sounds like this is a bug in make(1) that should be fixed (when I > first read the PR, I thought this was a documented `feature' of some > sorts). Perhaps you (or whoever was having this problem) could file a > PR against that with some analysis, and/or at least the simplest test > case? It's not a bug in make(1), it's what make(1) is supposed to do. It checks if ${OBJDIRPREFIX}/${.CURDIR} exists, and if so, changes directory to that before executing commands in targets. However, the ports system and individual ports tend not to take that into account. The reason the ports directory gets created is that ${WRKDIRPREFIX}/${WRKDIR} is created to put work in. Since WRKDIRPREFIX=OBJDIRPREFIX=/usr/obj, ${OBJDIRPREFIX}/${.CURDIR} is part of the directory tree created. Then the problems start... Basically, it's silly that we require maintainers/porters to worry about this due to one possibility of locations specified in WRKDIRPREFIX. Neil -- Neil Blakey-Milner nbm@mithrandr.moria.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010826113104.A16096>