Crash of portsdb
Matthew Seaman
m.seaman at infracaninophile.co.uk
Mon Sep 20 06:43:28 PDT 2004
On Mon, Sep 20, 2004 at 03:34:23PM +0200, gareth wrote:
> On Mon 2004-09-13 (17:01), Matthew Seaman wrote:
> > Otherwise, there's a nice simple low impact workaround:
> >
> > # setenv PORTS_DBDRIVER bdb1_hash
> i gave that a shot ta, & it fixed portsdb, but then i get this:
>
> # portversion
> [Failed `inappropriate file type or format'] [Updating the portsdb <format:bdb1_btree> in /usr/ports ... - 11733 port entries found .........1000.........2000.........3000.........4000.........5000......./usr/local/lib/ruby/site_ruby/1.8/portsdb.rb:587: [BUG] Segmentation fault
> ruby 1.8.2 (2004-07-29) [i386-freebsd5]
Yes. You have to set that environment variable *every time* you use
any of the portupgrade(1) tools, which includes portversion(1) and
portsdb(1).
You can set it from within /usr/local/etc/pkgtools.conf if you want --
saves having to keep remembering to do that. Just add:
ENV['PORTS_DBDRIVER'] = 'bdb1_hash'
to that file: right after the whole block of other ENV stuff is a good
place.
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20040920/398375d4/attachment.bin
More information about the freebsd-stable
mailing list