From owner-freebsd-hackers@FreeBSD.ORG Thu Feb 15 17:31:01 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6893416A408 for ; Thu, 15 Feb 2007 17:31:01 +0000 (UTC) (envelope-from dom@helenmarks.co.uk) Received: from mailhost.graphdata.co.uk (mailhost.graphdata.co.uk [195.12.22.194]) by mx1.freebsd.org (Postfix) with ESMTP id 2483713C4A3 for ; Thu, 15 Feb 2007 17:30:59 +0000 (UTC) (envelope-from dom@helenmarks.co.uk) Received: from localhost (localhost [127.0.0.1]) by mailhost.graphdata.co.uk (Postfix) with ESMTP id 098D111402A for ; Thu, 15 Feb 2007 17:13:11 +0000 (GMT) X-Virus-Scanned: amavisd-new at graphdata.co.uk Received: from mailhost.graphdata.co.uk ([127.0.0.1]) by localhost (mailhost.graphdata.co.uk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IIwXo42ySuzO for ; Thu, 15 Feb 2007 17:13:03 +0000 (GMT) Received: from gdc083.internal.graphdata.co.uk (gdc083.internal.graphdata.co.uk [192.168.0.86]) by mailhost.graphdata.co.uk (Postfix) with SMTP id 75AC811402F for ; Thu, 15 Feb 2007 17:13:03 +0000 (GMT) Date: Thu, 15 Feb 2007 17:13:03 +0000 From: Dominic Marks To: freebsd-hackers@freebsd.org Message-Id: <20070215171303.2e3dc80b.dom@helenmarks.co.uk> In-Reply-To: <20070215165228.GA72462@lpthe.jussieu.fr> References: <20070215165228.GA72462@lpthe.jussieu.fr> X-Mailer: Sylpheed 2.3.1 (GTK+ 2.10.6; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: portupgrade O(n^m)? and pkgupgrade X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Feb 2007 17:31:01 -0000 On Thu, 15 Feb 2007 17:52:29 +0100 Michel Talon wrote: > As a tentative solution to the problem in the subject, i have corrected > still more bugs in my program pkguprade. The last version is at > http://www.lpthe.jussieu.fr/~talon/pkgupgrade > > I had observed on my own machine two problems, one being that the > topological sort was scrambled, this i have discovered was due to a bad > use of the python sort() function (although i don't understand clearly > why the syntax was bad), the other had to do with ports being moved in > the MOVED files and whose moves were accounted incorrectly. This is > a hairy problem with the FreeBSD ports sytem. > > As an example of running pkgupgrade, here is what i get after having > upgraded the port tree from 6.2-RELEASE to current: > niobe% ./pkgupgrade > There are now 711 packages installed. > Collecting installed packages. > Building the updated index. > Building and filling the dependency DAG. > Printing the upgrade list in UpgradeLog > Total time spent in analysis: 01 minutes 29 seconds. > Second phase, downloads and backups. > Total time spent in downloads: 00 minutes 13 seconds. > Total time spent in backups: 00 minutes 15 seconds. > Writing upgrade shell script. > Will remove 3 old packages. > Will install 17 new binary packages. > Will compile 8 ports. > All tasks completed. > ****************************************************************** > Total time: 01 minutes 53 seconds. > At first sight, the shell script which has been produced, UpgradeShell > seems reasonable. Of course such a program can only gain very good > reliability by testing, but testing is always dangerous ..., except > perhaps on testing machines, but i don't have any. You could use a jail for this, although a separate system is always nice. > -- > > Michel TALON > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"