ports system woes

Frank Mayhar frank at exit.com
Wed Mar 26 07:09:07 PDT 2008

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.

Frank Mayhar frank at exit.com     http://www.exit.com/
Exit Consulting                 http://www.gpsclock.com/

More information about the freebsd-ports mailing list