From owner-freebsd-current@FreeBSD.ORG Sun May 25 00:48:27 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EF6AE37B401; Sun, 25 May 2003 00:48:27 -0700 (PDT) Received: from yello.shallow.net (yello.shallow.net [203.18.243.120]) by mx1.FreeBSD.org (Postfix) with ESMTP id 12D8F43FA3; Sun, 25 May 2003 00:48:25 -0700 (PDT) (envelope-from joshua@shallow.net) Received: by yello.shallow.net (Postfix, from userid 1001) id C770A2A99; Sun, 25 May 2003 17:48:23 +1000 (EST) Date: Sun, 25 May 2003 17:48:23 +1000 From: Joshua Goodall To: Ruslan Ermilov Message-ID: <20030525074823.GK91207@roughtrade.net> References: <20030523203517.GA93787@attbi.com> <20030524034419.GA63643@sunbay.com> <20030524084432.GA509@roughtrade.net> <20030524174817.GA42456@sunbay.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030524174817.GA42456@sunbay.com> User-Agent: Mutt/1.5.4i cc: freebsd-current@freebsd.org Subject: Re: Updating -CURRENT, what about outdated files? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 May 2003 07:48:28 -0000 On Sat, May 24, 2003 at 08:48:17PM +0300, Ruslan Ermilov wrote: > On Sat, May 24, 2003 at 06:44:32PM +1000, Joshua Goodall wrote: > > On Sat, May 24, 2003 at 06:44:19AM +0300, Ruslan Ermilov wrote: > > > I do this a lot too. And I use "find . -mtime +1 ! -type d" to > > > seek for the stale stuff. This of course requires that you're > > > not running with ``INSTALL="install -C"'' in /etc/make.conf. > > > > Is there any part of installworld that uses tools other than > > rm, mtree, install and ln? > > > Sure, a lot of. We use all tools that are copied into the > ${INSTALLTMP} as the first step of installworld. I must correct myself. I should have written "Is there any part of installworld where files/dirs/links are installed using tools other than ..." Actually the total list seems really short to me; [ awk cat chflags chmod chown date echo egrep find grep ln make mkdir mtree mv pwd_mkdb rm sed sh sysctl test true uname wc zic I can think of three methods; i) a simple wrapper that attempts to parse the subset of invocations used by installworld, and maintain a log, ii) an LD_PRELOAD-based wrapper, taking advantage of recent dynamic linkage changes, iii) building installation editions of those tools, so that they maintain a log of activity. Obviously not all are attractive. > Some files are only installed if the destination does not yet > exist, and there you are going to have a problem with this > approarch. Either way, the file exists. I wasn't looking for anything more sophisticated than that in a first pass at this. Other than the general case of using install -C, can you point out any specific examples? I thought that was the point of mergemaster; to manage elements of the distribution where simply overwriting would be inappropriate. J -- Joshua Goodall "tea makes itself" joshua@roughtrade.net - Ana Susanj