From owner-freebsd-ports@FreeBSD.ORG Wed Oct 27 16:46:57 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AC7B716A4CE for ; Wed, 27 Oct 2004 16:46:57 +0000 (GMT) Received: from smtp.infracaninophile.co.uk (happy-idiot-talk.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id E1A0743D2F for ; Wed, 27 Oct 2004 16:46:56 +0000 (GMT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost.infracaninophile.co.uk [IPv6:::1])i9RGknbS078297 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 27 Oct 2004 17:46:49 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)i9RGkn7P078296; Wed, 27 Oct 2004 17:46:49 +0100 (BST) (envelope-from matthew) Date: Wed, 27 Oct 2004 17:46:49 +0100 From: Matthew Seaman To: Randy Bush Message-ID: <20041027164649.GB77712@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Randy Bush , freebsd ports References: <16766.40359.311280.619036@roam.psg.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="CdrF4e02JqNVZeln" Content-Disposition: inline In-Reply-To: <16766.40359.311280.619036@roam.psg.com> User-Agent: Mutt/1.4.2.1i X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.5.6 (smtp.infracaninophile.co.uk [IPv6:::1]); Wed, 27 Oct 2004 17:46:50 +0100 (BST) X-Virus-Scanned: clamd / ClamAV version devel-20040904, clamav-milter version 0.75l on smtp.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.8 required=5.0 tests=ALL_TRUSTED,AWL autolearn=ham version=3.0.1 X-Spam-Checker-Version: SpamAssassin 3.0.1 (2004-10-22) on happy-idiot-talk.infracaninophile.co.uk cc: freebsd ports Subject: Re: pkgdb rebuild X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Oct 2004 16:46:57 -0000 --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 in /var/db/pkg ... Failed `Inappr= opriate file type or format'; rebuild needed] [Rebuilding the pkgdb in /var/db/pkg ... - 439 packages found (-0 +439) ............= ...........................................................................= ...........................................................................= ...........................................................................= ...........................................................................= ...........................................................................= .................................................... done] > ---> Uninstalling the old version > [Updating the pkgdb in /var/db/pkg ... Inappropriate fi= le type or format - /var/db/pkg/pkgdb; rebuild needed] [Rebuilding the pkgd= b 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--