From owner-cvs-src@FreeBSD.ORG Sun Jul 24 10:07:22 2005 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0FE5116A41F; Sun, 24 Jul 2005 10:07:22 +0000 (GMT) (envelope-from corecode@fs.ei.tum.de) Received: from stella.fs.ei.tum.de (stella.fs.ei.tum.de [129.187.54.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4E91843D46; Sun, 24 Jul 2005 10:07:18 +0000 (GMT) (envelope-from corecode@fs.ei.tum.de) Received: from localhost (localhost [127.0.0.1]) by localhost.fs.ei.tum.de (Postfix) with ESMTP id 0A1138D7A5; Sun, 24 Jul 2005 12:07:15 +0200 (CEST) Received: from stella.fs.ei.tum.de ([127.0.0.1]) by localhost (stella [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 26473-06; Sun, 24 Jul 2005 12:07:11 +0200 (CEST) Received: from [84.155.198.65] (p549BC641.dip.t-dialin.net [84.155.198.65]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (Client did not present a certificate) by stella.fs.ei.tum.de (Postfix) with ESMTP id 2C3778D7A1; Sun, 24 Jul 2005 12:07:11 +0200 (CEST) In-Reply-To: <20050724011629.GK14567@elvis.mu.org> References: <200507231942.j6NJgdks037508@repoman.freebsd.org> <42E2A029.1090404@gmail.com> <42E2DA50.2000205@FreeBSD.org> <20050724011629.GK14567@elvis.mu.org> Mime-Version: 1.0 (Apple Message framework v622) Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="Apple-Mail-7-11062709" Message-Id: Content-Transfer-Encoding: 7bit From: Simon 'corecode' Schubert Date: Sun, 24 Jul 2005 12:07:47 +0200 To: Maxime Henrion X-Pgp-Agent: GPGMail 1.0.1 (v33, 10.3) X-Mailer: Apple Mail (2.622) X-Virus-Scanned: by amavisd-new at fs.ei.tum.de Cc: cvs-src@FreeBSD.org, Doug Barton , cvs-all@FreeBSD.org, src-committers@FreeBSD.org Subject: Re: cvs commit: src ObsoleteFiles.inc X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Jul 2005 10:07:22 -0000 --Apple-Mail-7-11062709 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed On 24.07.2005, at 03:16, Maxime Henrion wrote: > For what it's worth, I'd love to see a mechanism similar to the > following: > > - We ensure every file installed when doing an installworld gets > installed through bsd.*.mk. I thought this was already the case > but ru@ told me it's not. > > - We can then add some kind of special make target, for instance > build-files-list that generates a file with all the files going > to be installed by installworld. > > - At installworld time we install this special file somewhere. I looked into this when I wanted to do this for DragonFly (but I got sidetracked). There are few methods in the tree (at least in DragonFly, I don't think it's completely different in FreeBSD) by which files get installed: - mtree - ${INSTALL} - ln - zic (needs more work) there might be some other things as well, but that's the major part by which about 98% of all files are being covered. This means, after converting all occurences of `ln' to ${LN} (done in DragonFly, tho there are some things you can overlook) and `mtree' to ${MTREE}, ${INSTALL}, ${LN} and ${MTREE} can be replaced by wrapper scripts which parse the parameters and record the created files into some kind of log. Storing these logs in, let's say /var/db/basefiles, let's you find out files which were removed just by looking if a file doesn't appear in the last log anymore. I have to agree that wrapping the commands is a bit hackish, but it basically works. Oh, of course this system also needs a static list of files that were removed previously, so that it can bootstrap (it can only catch files that were removed since the last time you ran install-with-file-logging). cheers simon -- Serve - BSD +++ RENT this banner advert +++ ASCII Ribbon /"\ Work - Mac +++ space for low $$$ NOW!1 +++ Campaign \ / Party Enjoy Relax | http://dragonflybsd.org Against HTML \ Dude 2c 2 the max ! http://golden-apple.biz Mail + News / \ --Apple-Mail-7-11062709 content-type: application/pgp-signature; x-mac-type=70674453; name=PGP.sig content-description: This is a digitally signed message part content-disposition: inline; filename=PGP.sig content-transfer-encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (Darwin) iD8DBQFC42h2r5S+dk6z85oRApnmAKDGhalJ8mOWWuxsWQ0yneSZZRT32wCfc3cC vxO17mpHIcOcERJX4BMIGr0= =dvMw -----END PGP SIGNATURE----- --Apple-Mail-7-11062709--