From owner-freebsd-doc Sun Aug 26 2:30:43 2001 Delivered-To: freebsd-doc@freebsd.org Received: from infinitive.futureperfectcorporation.com (curie.sunesi.com [196.25.112.244]) by hub.freebsd.org (Postfix) with SMTP id 1262637B406 for ; Sun, 26 Aug 2001 02:30:38 -0700 (PDT) (envelope-from nbm@gerund.futureperfectcorporation.com) Received: (qmail 69419 invoked by uid 0); 26 Aug 2001 09:34:23 -0000 Received: from choke.sunesi.net (HELO gerund.futureperfectcorporation.com) (196.25.112.242) by infinitive.futureperfectcorporation.com with SMTP; 26 Aug 2001 09:34:23 -0000 Received: (qmail 18678 invoked by uid 1001); 26 Aug 2001 09:31:04 -0000 Date: Sun, 26 Aug 2001 11:31:04 +0200 From: Neil Blakey-Milner To: Dima Dorfman 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> References: <200108252220.f7PMK2Z43522@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200108252220.f7PMK2Z43522@freefall.freebsd.org>; from dima@unixfreak.org on Sat, Aug 25, 2001 at 03:20:02PM -0700 Organization: iTouch Labs X-Operating-System: FreeBSD 4.3-RELEASE i386 X-URL: http://mithrandr.moria.org/nbm/ Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org 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 > To: "Peter Avalos" > 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" 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