From owner-freebsd-current@FreeBSD.ORG Mon Oct 25 11:59:52 2004 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 3321F16A4CE for ; Mon, 25 Oct 2004 11:59:52 +0000 (GMT) Received: from freebee.digiware.nl (dsl439.iae.nl [212.61.63.187]) by mx1.FreeBSD.org (Postfix) with ESMTP id B370A43D5D for ; Mon, 25 Oct 2004 11:59:50 +0000 (GMT) (envelope-from wjw@withagen.nl) Received: from [212.61.27.71] (dual [212.61.27.71]) by freebee.digiware.nl (8.12.10/8.12.10) with ESMTP id i9PBxb9S033769; Mon, 25 Oct 2004 13:59:37 +0200 (CEST) (envelope-from wjw@withagen.nl) Message-ID: <417CEAA8.9000709@withagen.nl> Date: Mon, 25 Oct 2004 13:59:36 +0200 From: Willem Jan Withagen User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Alexander Leidinger References: <20041016142502.6362d396@Magellan.Leidinger.net> <20041023.194558.63828926.imp@bsdimp.com> <20041024124805.378e6bc3@Magellan.Leidinger.net> <20041024131927.GA60644@voi.aagh.net> <1098703716.417ce36428e2a@netchild.homeip.net> In-Reply-To: <1098703716.417ce36428e2a@netchild.homeip.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: current@freebsd.org cc: "M. Warner Losh" Subject: Re: RFC: automated way of removing old base system files (only for a recent 6-current!) 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: Mon, 25 Oct 2004 11:59:52 -0000 Alexander Leidinger wrote: > Zitat von Thomas Hurst : > > >>* Alexander Leidinger (Alexander@Leidinger.net) wrote: >> >> >>>But mtree doesn't has an option to ask the user if he really wants to >>>delete those files (at least it's not very obvious if you fast-read >>>the man-page). Even if they are old base system files, I don't want to >>>just remove them without explicit permission. Better safe than sorry. >>>But maybe I'm paranoid (at least for files and directories, but I >>>strongly discourage the automated removal of old libs). >> >>Can you move them to another directory like portupgrade? Then just >>leave it up to the user to clean out lib/compat/old or so? > > > Libraries which get removed this way are supposed to appear as an comapt > distribution of some kind... e.g. ports/misc/compat4x. So the intended way > of operation would be to either install the compat port and remove the old > libs, or to reinstall every port with the right dependencies to the new > libs and remove the old libs. > > Warner and I are talking how to implement the "remove the old libs" step. My > approach allows a "run and abort if necessary" behavior, while Warners > suggestion is a "fire and get burned if you forgot something" scenario (you > could have a look at the files which specify what is supposed to get removed, > but this view isn't filtered and additionally you have to know where the > filelist is stored). Dagerous remark, but..... Why don't you do it the M$-way, and move al that is to be delete to the side somewhere, and inform the user about the location. Het then himself can either retrieve what he should not have deleted, or after due time delete it himself? That would make Warners approach not quite as dramatic as you make it sound. --WjW