pkgdb rebuild
Matthew Seaman
m.seaman at infracaninophile.co.uk
Wed Oct 27 09:46:57 PDT 2004
On Tue, Oct 26, 2004 at 11:55:35AM -0700, Randy Bush wrote:
> portupgrade -fav is continually rebuilding the pkgdb
>
> ---> Uninstallation of openldap-server-2.2.14 started at: Tue, 26 Oct 2004 11:51:04 -0700
> ---> Fixing up dependencies before creating a package
> ---> Backing up the old version
> [Updating the pkgdb <format:bdb1_btree> in /var/db/pkg ... Failed `Inappropriate file type or format'; rebuild needed] [Rebuilding the pkgdb <format:bdb1_btree> in /var/db/pkg ... - 439 packages found (-0 +439) ....................................................................................................................................................................................................................................................................................................................................................................................................................................................... done]
> ---> Uninstalling the old version
> [Updating the pkgdb <format:dbm_hash> in /var/db/pkg ... Inappropriate file type or format - /var/db/pkg/pkgdb; rebuild needed] [Rebuilding the pkgdb <format:dbm_hash> in /var/db/pkg ... - 439 packages found (-0 +439) ......................................................................................................
>
> this is *very* time consuming. i have done
>
> portsdb -Uu
> pkgdb -Uu
> pkgdb -Ff
>
> to no avail
>
> please send clue!
You don't say what OS version you're using. If it isn't a recent
4.10-STABLE, 5.3-STABLE 6-CURRENT or one of the 5.3-BETA/RCn then you
may be hitting the same bug in the bdb1_btree support in the base
system that caused ruby to dump core while running portsdb.
This is the fix that was applied to the listed branches:
http://www.freebsd.org/cgi/cvsweb.cgi/src/lib/libc/db/btree/bt_split.c.diff?r1=1.6&r2=1.7
A workaround is to set the following in the environment:
# setenv PORTS_DBDRIVER=bdb1_hash
# setenv PKG_DBDRIVER=bdb1_hash
which will cause portupgrade to use the hash format rather than the
btree format. Other, similar, fixes can be applied -- check the
archives for possibilities.
Cheers,
Matthew
--
Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks
Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614 Bucks., SL7 1TH UK
-------------- 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/20041027/80048260/attachment.bin
More information about the freebsd-ports
mailing list