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>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
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?:
>
> 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
> 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]
>
> 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) ...................................................... done]
> [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]
>
> Abort (core dumped)
> test#
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=1.5&r2=1.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=bdb1_hash
as a workaround.
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
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (FreeBSD)
iD8DBQFBZX+9iD657aJF7eIRAu5wAJ0Ut1dujMosXMWCHAOuUKQjg+02PwCZAcC2
yswKA9FlGRpLpr9aW2nvalY=
=tFnf
-----END PGP SIGNATURE-----
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041007174117.GA2329>
