修正

20060703:
Because of portupgrade had a bugproblem with detecting of Berkley DB version 2+ or newer, and athe default database format is now set to use thisthese versions, you can getend up with a portupgrade don'tthat does not work with older databases. A quick fix is removingto remove the databases, type:
'rm /var/db/pkg/pkgdb.db /usr/ports/INDEX*.db'.
portupgrade will recreate them automaticaly. It's does absolutely no harm.
If you don't not want remove the databases, you should detect what database type do you use, and set the port options for portupgrade accordingly. Follow these instructions:

  • run ''pkgdb -fu' *before* upgrading and take a look on the output. You can see database format there as: format:XXX, where XXX is your current database format.
  • Go to portupgrade port directory and configure the port with `make config' command. If you have bdb_* format, then turn on the BDB4 option, i. If you have bdb1_* format, then turn off BDB4 and turn on the BDB1 option. If you have dbd_hash format, then turn off all options.
  • Upgrade portupgrade.

Note: if you change database format with changing port options, you should remove the ruby-bdb* port that you don't need anymore or to. Alternatively, you can hard code database format in your pkgtools.conf.

commit log

  • Fix the grammar in my English
Submitted by
Matthias Andree

$FreeBSD: ports/UPDATING,v 1.358 2006/07/07 06:12:38 sem Exp $