From owner-freebsd-current@FreeBSD.ORG Tue May 6 19:00:13 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 6C46437B401 for ; Tue, 6 May 2003 19:00:13 -0700 (PDT) Received: from aeimail.aei.ca (aeimail.aei.ca [206.123.6.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4826B43FA3 for ; Tue, 6 May 2003 19:00:09 -0700 (PDT) (envelope-from anarcat@anarcat.ath.cx) Received: from shall.anarcat.ath.cx (d3ss0kiwbmvenl5h@dsl-133-253.aei.ca [66.36.133.253]) by aeimail.aei.ca (8.11.6/8.10.1) with ESMTP id h47208721510; Tue, 6 May 2003 22:00:08 -0400 (EDT) Received: from lenny.anarcat.ath.cx (lenny.anarcat.ath.cx [192.168.0.4]) by shall.anarcat.ath.cx (Postfix) with SMTP id 2E6A0C9; Tue, 6 May 2003 22:00:08 -0400 (EDT) Received: by lenny.anarcat.ath.cx (sSMTP sendmail emulation); Tue, 6 May 2003 22:00:34 -0400 Date: Tue, 6 May 2003 22:00:34 -0400 From: The Anarcat To: Garrett Wollman Message-ID: <20030507020034.GC692@lenny.anarcat.ath.cx> References: <3EB8109D.2060307@isi.edu> <20030507083913.Y18014@gamplex.bde.org> <200305070126.h471QjNr067902@khavrinen.lcs.mit.edu> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="vEao7xgI/oilGqZ+" Content-Disposition: inline In-Reply-To: <200305070126.h471QjNr067902@khavrinen.lcs.mit.edu> User-Agent: Mutt/1.5.3i cc: current@freebsd.org Subject: Re: hardcoded -C argument to ${INSTALL} 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: Wed, 07 May 2003 02:00:13 -0000 --vEao7xgI/oilGqZ+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue May 06, 2003 at 09:26:45PM -0400, Garrett Wollman wrote: > < s= aid: >=20 > > I think this "remove stale pieces" issue is one that we have > > to find a decent solution to, because it keeps popping up > > every few months (in slightly different contexts), and it's > > going to drive us all nuts. >=20 > ...which is odd because releases have come with mtree files for quite > a few years now, and they contain all the information necessary to > compute the set difference between two arbitrary releases.=20 Not quite. If you're talking about the /etc/mtree files, they only deal with directories. > It wouldn't take too much programming to add a flag to mtree(8) > which implements the `read the spec file and output a list of files > which ought to be present' function, and then all you need is > sort(1) and comm(1) to determine which files went away for any pair > of releases since the mtree files started being distributed (which > includes all the ones that matter). Of course, you could just use > `mtree' to delete the old files for you, but you have to be very > careful when doing that not to delete the user's files, too. Well, I think mtree already does that: DESCRIPTION The mtree utility compares the file hierarchy rooted in the current directory against a specification read from the standard input. Messa= ges are written to the standard output for any files whose characteristics= do not match the specifications, or which are missing from either the file hierarchy or the specification. --=20 Advertisers, not governments, are the primary censors of media content=20 in the United States today. - C. Edwin Baker http://www.ad-mad.co.uk/quotes/freespeech.htm --vEao7xgI/oilGqZ+ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+uGjBttcWHAnWiGcRAuwzAKCUurf2slRbe9xl7yKlqYjYOg2HQgCaA+mR ax4u3LfrGfHC9bKZ/OzJLKc= =dHPT -----END PGP SIGNATURE----- --vEao7xgI/oilGqZ+--