Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Oct 2004 17:46:49 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        Randy Bush <randy@psg.com>
Cc:        freebsd ports <freebsd-ports@freebsd.org>
Subject:   Re: pkgdb rebuild
Message-ID:  <20041027164649.GB77712@happy-idiot-talk.infracaninophile.co.uk>
In-Reply-To: <16766.40359.311280.619036@roam.psg.com>
References:  <16766.40359.311280.619036@roam.psg.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--CdrF4e02JqNVZeln
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Oct 26, 2004 at 11:55:35AM -0700, Randy Bush wrote:
> portupgrade -fav is continually rebuilding the pkgdb
>=20
> --->  Uninstallation of openldap-server-2.2.14 started at: Tue, 26 Oct 20=
04 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 `Inappr=
opriate 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 fi=
le type or format - /var/db/pkg/pkgdb; rebuild needed] [Rebuilding the pkgd=
b <format:dbm_hash> in /var/db/pkg ... - 439 packages found (-0 +439) .....=
...........................................................................=
......................
>=20
> this is *very* time consuming.  i have done
>=20
>    portsdb -Uu
>    pkgdb -Uu
>    pkgdb -Ff
>=20
> to no avail
>=20
> 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=3D1.6&r2=3D1.7

A workaround is to set the following in the environment:

    # setenv PORTS_DBDRIVER=3Dbdb1_hash
    # setenv PKG_DBDRIVER=3Dbdb1_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


--=20
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

--CdrF4e02JqNVZeln
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (FreeBSD)

iD8DBQFBf9D5iD657aJF7eIRAp+1AJ4ywx95jP9DVdq4Rj4svxDq9ixQtQCcDn+4
5mVmbVSvTi2npP4Y15pt6Bg=
=mWj5
-----END PGP SIGNATURE-----

--CdrF4e02JqNVZeln--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041027164649.GB77712>