Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Jan 2001 17:39:43 +0000
From:      Ben Smithurst <ben@FreeBSD.org>
To:        Chris Faulhaber <jedgar@fxp.org>
Cc:        Mark Murray <mark@grondar.za>, Kris Kennaway <kris@FreeBSD.ORG>, freebsd-audit@FreeBSD.ORG
Subject:   Re: temp dirs in Makefile.inc1
Message-ID:  <20010113173943.G35575@strontium.scientia.demon.co.uk>
In-Reply-To: <20010113114415.A21411@peitho.fxp.org>
References:  <20010113083623.A44479@peitho.fxp.org> <200101131616.f0DGGoI20517@gratis.grondar.za> <20010113114415.A21411@peitho.fxp.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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.<pid> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010113173943.G35575>