Having problems with my ports configuration

Shaun Amott shaun at FreeBSD.org
Sat Mar 1 03:12:23 UTC 2008

On Fri, Feb 29, 2008 at 12:25:06PM -0800, Patrick Mahan wrote:
> One of the issues that came out of this was it seemed that the
> ports database (/var/db/pkg/pkgdb.db) was corrupt.  So I tried
> to rebuild it by deleting it and setting PKG_DBDIR).  I issued
> a 'portsdb -Uu' and it fails -

Do you have anything left under /var/db/pkg (presumably not, unless you
still have PKG_DBDIR set)?

> host# portsdb -Uu
> Updating the ports index ... Generating INDEX.tmp - please 
> wait..p5-DateTime-Calendar-Japanese-0.06001: 
> "/usr/ports/japanese/p5-DateTime-Calendar-Japanese-Era" non-existent -- 
> dependency list incomplete
> ===> devel/p5-DateTime-Calendar-Japanese failed
> *** Error code 1
> 1 error

Looks like you might have an old ports tree. Have you updated it lately?

> So, somehow, I have managed to seriously hammer my ports/package
> installation.  Is there a way to recover this info?  Is there any
> way of determing just what is installed (I know of a few: Perl,
> emacs, etc) from info stored under '/usr/ports'?

If you just removed the portupgrade database (which is all you
mentioned), you haven't lost anything important: it can be regenerated.
If the whole of /var/db/pkg was obliterated, you'll have to reinstall
everything. If you know what version of each port you had installed
(plus the OPTIONS, etc., used), installing over the top of what you have
now is probably the best you can do.

Shaun Amott // PGP: 0x6B387A9A
"A foolish consistency is the hobgoblin
of little minds." - Ralph Waldo Emerson
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20080301/c85a939a/attachment.pgp

More information about the freebsd-ports mailing list