From owner-freebsd-current Tue Jun 25 10:42:13 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id KAA21276 for current-outgoing; Tue, 25 Jun 1996 10:42:13 -0700 (PDT) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id KAA21269 for ; Tue, 25 Jun 1996 10:42:09 -0700 (PDT) Received: (from bde@localhost) by godzilla.zeta.org.au (8.6.12/8.6.9) id DAA17962; Wed, 26 Jun 1996 03:38:24 +1000 Date: Wed, 26 Jun 1996 03:38:24 +1000 From: Bruce Evans Message-Id: <199606251738.DAA17962@godzilla.zeta.org.au> To: bde@zeta.org.au, jkh@time.cdrom.com Subject: Re: Building inside of /usr/src? Cc: freebsd-current@FreeBSD.org, nate@sri.MT.net Sender: owner-current@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk >> It will normally fail because normal users won't have write permission >> in /usr/obj, and in any case it only applies for building standard >If normal users want to build sources like this then they should >probably either not use obj (same problem existed before after all, >they just had the option of "fixing" it differently) or they should >set MAKEOBJDIR to point to a hierarchy where they DO have write >permission. Yes, but MAKEOBJDIR's operation is inconvenient for this since the full path to the current directory gets appended to it. If my source is in ~/src which is N levels below /, the obj dirs will go N levels below $MAKEOBJDIR. For MAKEOBJDIR=~/obj, I would like paths involving ~/src to be substituted to ~/obj (much like the old bsd.prog.mk did). This can almost be done by allowing MAKEOBJDIR to be a subsitution pattern (make probably needs to parse it specially). >> There is no reason to break the old behaviour. If you want to break >> it, break it properly by removing the builtin /usr/obj path which is >> at best right for building /usr/src. >Where would you recommend I set it then? I don't like putting it Put it in bsd.own.mk or somewhere that gets included everwhere for building /usr/src (and ports?). bsd.own.mk and (/etc/mk.conf) currently get included in sys.mk. This should be fixed soon - include bsd.own.mk only in bsd.*.mk and split up /etc/make.conf... >in make either, it was simply the least invasive change to modify >the meaning of MAKEOBJDIR and adjust _PATH_OBJDIR to match. If >you want to eliminate the default value entirely then I guess we >could set it in sys.mk - would that make you happier? :-) If it has the old semantics (for "obj"). Bruce