Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Oct 2004 16:25:53 -0500 
From:      "Mire, John" <jmire@lsuhsc.edu>
To:        "'m.seaman@infracaninophile.co.uk'" <m.seaman@infracaninophile.co.uk>
Cc:        "'freebsd-questions@freebsd.org'" <freebsd-questions@freebsd.org>
Subject:   Re: Portupgrade problem, possible pkgdb problem?
Message-ID:  <F414F4699FE1CF46B9DB1CE71D04BACB015BB4BC@sh-exch.lsuhsc-s.edu>

next in thread | raw e-mail | index | archive | help
Thanks, guess it's time to use the work around, the env setting worked fine.





--
"Ethernet (n): something used to catch the etherbunny"

John Mire: jmire@lsuhsc.edu                Network Administration
318-675-5434              LSU Health Sciences Center - Shreveport 


-----Original Message-----
From: Matthew Seaman <m.seaman@infracaninophile.co.uk>
To: Mire, John <jmire@lsuhsc.edu>
CC: Matt Navarre <mnavarre@cox.net>; freebsd-questions@freebsd.org
<freebsd-questions@freebsd.org>
Sent: Thu Oct 07 12:41:17 2004
Subject: Re: Portupgrade problem, possible pkgdb problem?

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



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