From owner-freebsd-hackers@FreeBSD.ORG Tue May 3 12:25:30 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A2BB116A4CE; Tue, 3 May 2005 12:25:30 +0000 (GMT) Received: from mxsf06.cluster1.charter.net (mxsf06.cluster1.charter.net [209.225.28.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2C63543D77; Tue, 3 May 2005 12:25:30 +0000 (GMT) (envelope-from c0ldbyte@myrealbox.com) Received: from mxip08.cluster1.charter.net (mxip08a.cluster1.charter.net [209.225.28.138])j43CPSwY014702; Tue, 3 May 2005 08:25:28 -0400 Received: from 24-247-253-134.dhcp.aldl.mi.charter.com (HELO eleanor.us1.wmi.uvac.net) (24.247.253.134) by mxip08.cluster1.charter.net with ESMTP; 03 May 2005 08:25:28 -0400 X-Ironport-AV: i="3.92,148,1112587200"; d="scan'208"; a="895558091:sNHT13385492" Date: Tue, 3 May 2005 12:25:24 +0000 (UTC) From: c0ldbyte To: Denis Peplin In-Reply-To: <427743ED.6020200@FreeBSD.org> Message-ID: <20050503120958.Y42342@eleanor.us1.wmi.uvac.net> References: <427743ED.6020200@FreeBSD.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed cc: hackers@freebsd.org Subject: Re: mergemaster improvement (auto-update for not modified files) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 May 2005 12:25:30 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tue, 3 May 2005, Denis Peplin wrote: > Hello! > > The mergemaster with this is test patch (attached) > can auto-update files that was not modified. > > It do this by compairing each file with it's CVS > copy. If file was not modified, it can be rewritten. > > This dramatically redices amount of files that require > admin's attention. > > There is one major problem here: > This can be done in single-user mode only if your > have local CVS repository, because if local CVS is > not exist, anoncvs is used. > > Possible solutions: > 1. Pre-checkout files in pre-buildworld mode. > 2. Setup CVSup collection for subset of required files > (is it possible?), and then keep this small collection > up-to-date locally. > 3. Store checksum for every config file installed, > then compare with this checksum on updating. > > BTW, tracking checksums can be very useful for > base system too, because checksums can help to do > clean updates (with removal of old files that was not > overwritten). > IMHO this isnt something that should be included with mergemaster due to the following things. 1). It should upgrade a file if the files cvs id doesnt match and provide you with a merge option, which it allready does both of those as it is now. 2). Only upgrading files that havent been changed is going to result in a positive false situation where the user actually thinks that his/her system has been fully upgraded and when in fact it hasnt, leaving added lines to files out where they should have been merged in. Preferably also IMHO this patch to mergemaster should be or would be better off renamed to another project and/or an option for people to compile into the system if they wish to have that kind of functionality. E.g: System/Addon for world through the use of a set variable in /etc/make.conf.local or something similiar. But with all due respect, This just seems like another case of a "Bike Shed" incident. Best regards to humor. --c0ldbyte - -- ( When in doubt, use brute force. -- Ken Thompson 1998 ) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) Comment: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xF7DF979F Comment: Fingerprint = D1DC 0AA4 1C4E EAD4 24EB 7E77 B261 50BA F7DF 979F iD8DBQFCd223smFQuvffl58RAtAXAJ4+2oKEilJOWvOY2IncqbX3sjTYSwCfXe8b 5UCgbuWk6dsHkJBZb+t8YtA= =070g -----END PGP SIGNATURE-----