From owner-freebsd-ports@FreeBSD.ORG Wed Mar 26 14:09:07 2008 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C7F051065672; Wed, 26 Mar 2008 14:09:07 +0000 (UTC) (envelope-from frank@exit.com) Received: from tinker.exit.com (tinker.exit.com [206.223.0.1]) by mx1.freebsd.org (Postfix) with ESMTP id 301E48FC17; Wed, 26 Mar 2008 14:09:06 +0000 (UTC) (envelope-from frank@exit.com) Received: from jill.exit.com (jill.exit.com [206.223.0.4]) by tinker.exit.com (8.14.1/8.14.1) with ESMTP id m2QE8eZ9050680; Wed, 26 Mar 2008 06:08:40 -0800 (PST) (envelope-from frank@exit.com) DKIM-Signature: v=1; a=rsa-sha1; c=simple/simple; d=exit.com; s=tinker; t=1206540520; bh=nxIvCDZN4dzRWitN4+73+oMGqsA=; h=X-Authentication-Warning:Subject:From:Reply-To:To:Cc:In-Reply-To: References:Content-Type:Content-Transfer-Encoding:Organization: Date:Message-Id:Mime-Version:X-Mailer; b=Q+1uDF2UD/4P+FoBACkNgkg+t 4r774KDGVDXQlbOoaG/MhHMwdSkO/jZiA4a+1+8aa3Sw1Rw/5qqrGCTCSR/l91LjM2a mQoGL4VB+Vh5NbC3qWvllOcUly9pjHzTl3bx8mX5FSgoufLgjUfXhYSMDPShSONNyh6 mILEymnTZ6z4= Received: from jill.exit.com (localhost [127.0.0.1]) by jill.exit.com (8.14.1/8.14.1) with ESMTP id m2QE8dS5045382; Wed, 26 Mar 2008 06:08:39 -0800 (PST) (envelope-from frank@exit.com) Received: (from frank@localhost) by jill.exit.com (8.14.1/8.14.2/Submit) id m2QE8dnN045369; Wed, 26 Mar 2008 07:08:39 -0700 (PDT) (envelope-from frank@exit.com) X-Authentication-Warning: jill.exit.com: frank set sender to frank@exit.com using -f From: Frank Mayhar To: Pav Lucistnik In-Reply-To: <20080326135806.M17639@FreeBSD.org> References: <20080326131800.GA75243@lpthe.jussieu.fr> <20080326135806.M17639@FreeBSD.org> Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: Exit Consulting Date: Wed, 26 Mar 2008 07:08:38 -0700 Message-Id: <1206540518.45634.14.camel@jill.exit.com> Mime-Version: 1.0 X-Mailer: Evolution 2.22.0 FreeBSD GNOME Team Port X-Virus-Scanned: ClamAV 0.92/6396/Wed Mar 26 03:29:12 2008 on tinker.exit.com X-Virus-Status: Clean Cc: soralx@cydem.org, Michel Talon , freebsd-ports@freebsd.org Subject: Re: ports system woes X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: frank@exit.com List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Mar 2008 14:09:07 -0000 On Wed, 2008-03-26 at 14:59 +0100, Pav Lucistnik wrote: > On Wed, 26 Mar 2008 14:18:00 +0100, Michel Talon wrote > > > In fact last year i wrote a python script which reads all the > > /var/db/pkg/+CONTENTS files, and fixes all the +REQUIRED_BY files, > > assuming they are corrupted. Moreover it follows the MOVED file. > > So you basically reimplemented pkgdb -F in python? No. I'm not sure what he did implement, but it's not "pkgdb -F". > > As far as i remember this program > > runs in a few *seconds* certainly not minutes like it is said here > > Mind that the original poster is using a very low-spec notebook with next to > none RAM. That having been said, O(n^2) algorithms are generally not a good idea. > > solution is to use sqlite and not some half-assed solution like a > > Berkeley database, > > Solution is to use tools that are available in our base system. SQLite is not. Indeed. -- Frank Mayhar frank@exit.com http://www.exit.com/ Exit Consulting http://www.gpsclock.com/ http://www.exit.com/blog/frank/ http://www.zazzle.com/fmayhar*