Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Oct 2004 18:41:17 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        "Mire, John" <jmire@lsuhsc.edu>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Portupgrade problem, possible pkgdb problem?
Message-ID:  <20041007174117.GA2329@happy-idiot-talk.infracaninophile.co.uk>
In-Reply-To: <F414F4699FE1CF46B9DB1CE71D04BACB0E0C50F5@sh-exch.lsuhsc-s.edu>
References:  <F414F4699FE1CF46B9DB1CE71D04BACB0E0C50F5@sh-exch.lsuhsc-s.edu>

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

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

On Thu, Oct 07, 2004 at 10:45:46AM -0500, Mire, John wrote:
> I'm still getting this error after a cvsup+buildworld, a make fetchindex =
and
> I have deleted /var/db/pkg/pkgdb.db and rebuilt it, what's the patch?:
>=20
> test# uname -v
> FreeBSD 5.2.1-RELEASE-p11 #12: Wed Oct  6 17:13:13 CDT 2004
> root@test:/usr/obj/usr/src/sys/TEST=20
> test# cd /usr/ports
> test# make fetchindex
> Receiving INDEX-5 (5881230 bytes): 100%
> 5881230 bytes transferred in 16.9 seconds (339.01 kBps)
> test# portupgrade -R sudo
> [Failed `Inappropriate file type or format'] [Updating the portsdb
> <format:bdb1_btree> in /usr/ports ... - 11735 port entries found
> .........1000.........2000.........3000.........4000.........5000........=
.60
> 00.........7000.........8000..../usr/local/lib/ruby/site_ruby/1.8/portsdb=
.rb
> :587: [BUG] Bus Error
> ruby 1.8.2 (2004-07-29) [i386-freebsd5]
>=20
> Abort (core dumped)
> test# rm /var/db/pkg/pkgdb.db
> test# portupgrade -R sudo
> [Rebuilding the pkgdb <format:bdb1_btree> in /var/db/pkg ... - 54 packages
> found (-0 +54) ...................................................... don=
e]
> [Failed `Inappropriate file type or format'] [Updating the portsdb
> <format:bdb1_btree> in /usr/ports ... - 11735 port entries found
> .........1000.........2000.........3000.........4000.........5000........=
.60
> 00.........7000.........8000..../usr/local/lib/ruby/site_ruby/1.8/portsdb=
.rb
> :587: [BUG] Bus Error
> ruby 1.8.2 (2004-07-29) [i386-freebsd5]
>=20
> Abort (core dumped)
> test# =20

The patch was only applied to RELENG_4, RELENG_5 and HEAD -- not
RELENG_5_2.

However, you can extract it from cvs and apply it yourself by hand if
you aren't in a position to upgrade right now -- see:

    http://www.freebsd.org/cgi/cvsweb.cgi/src/lib/libc/db/btree/bt_split.c.=
diff?r1=3D1.5&r2=3D1.7

(Remember that you'll have to re-apply that patch each time you
cvsup(1) your src)

Otherwise just use one of the variations on:

    setenv PORTS_DBDRIVER=3Dbdb1_hash

as a workaround.

	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

--J/dobhs11T7y2rNN
Content-Type: application/pgp-signature
Content-Disposition: inline

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

iD8DBQFBZX+9iD657aJF7eIRAu5wAJ0Ut1dujMosXMWCHAOuUKQjg+02PwCZAcC2
yswKA9FlGRpLpr9aW2nvalY=
=tFnf
-----END PGP SIGNATURE-----

--J/dobhs11T7y2rNN--



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