From owner-freebsd-audit Sat Jan 13 9:48:50 2001 Delivered-To: freebsd-audit@freebsd.org Received: from scientia.demon.co.uk (scientia.demon.co.uk [212.228.14.13]) by hub.freebsd.org (Postfix) with ESMTP id 6BE6037B400; Sat, 13 Jan 2001 09:48:32 -0800 (PST) Received: from strontium.scientia.demon.co.uk ([192.168.91.36] ident=root) by scientia.demon.co.uk with esmtp (Exim 3.20 #1) id 14HUeV-0008kC-00; Sat, 13 Jan 2001 17:39:43 +0000 Received: (from ben@localhost) by strontium.scientia.demon.co.uk (8.11.1/8.11.1) id f0DHdhr66659; Sat, 13 Jan 2001 17:39:43 GMT (envelope-from ben) Date: Sat, 13 Jan 2001 17:39:43 +0000 From: Ben Smithurst To: Chris Faulhaber Cc: Mark Murray , Kris Kennaway , freebsd-audit@FreeBSD.ORG Subject: Re: temp dirs in Makefile.inc1 Message-ID: <20010113173943.G35575@strontium.scientia.demon.co.uk> References: <20010113083623.A44479@peitho.fxp.org> <200101131616.f0DGGoI20517@gratis.grondar.za> <20010113114415.A21411@peitho.fxp.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010113114415.A21411@peitho.fxp.org> Sender: owner-freebsd-audit@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Chris Faulhaber wrote: > I just successfully finished a buildworld/installworld with the > following patch. Unfortunately, it does not provide all the > safety mktemp(1) would have if the -u options was not used, but > is better than $TMPDIR/install. and works with the current > build structure. I'd say if you're going to fix it, fix it properly, but I guess others may have other views. Hmm, what about something like: INSTALLTMP?= /nonexistent (or something, just so paths which include it don't end up with an empty bit which might get treated as "current directory".) installworld: ${MAKE} -f Makefile.inc1 realinstallworld INSTALLTMP=`mktemp -d -t install` and rename the installworld target to realinstallworld? Or is that a bit ugly? It seems it would work to me, though I haven't tested it. -- Ben Smithurst / ben@FreeBSD.org / PGP: 0x99392F7D To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-audit" in the body of the message