portupgrade problems on 4.x

Jake Lloyd legalois at acm.org
Tue Jul 19 13:55:50 GMT 2005


Jake Lloyd wrote:
> portupgrade on my two 4.x boxes seems to have gone wrong, starting just 
> today. The last successful of run of portupgrade (on only one of those 
> systems) was to upgrade thunderbird on 14.07.2005. But today
> #portupgrade <any-port>
> outputs the following:
> 
> [Failed `Inappropriate file type or format'] [Updating the portsdb 
> <format:bdb1_btree> in /usr/ports ... - 13190 port entries found 
> .........1000.........2000.........3000.........4000.........5000.........6000.........7000.........8000.........9000.........10000.........11000........./usr/local/lib/ruby/site_ruby/1.8/portsdb.rb:613: 
> [BUG] Segmentation fault
> ruby 1.8.2 (2004-12-25) [i386-freebsd4]
> 
> Abort (core dumped)
> 
> and, indeed, there is a ruby18.core file of some 10 Mb.
> Naturally, the <any-port> is not upgraded.
> 
> Most mystifying is, there has been change neither to any ruby ports nor 
> to portupgrade itself, since the most recent uses of the portupgrade.
> 
> Output from relevant pkg_info is as follows:
> 
> # pkg_info | grep ruby
> ruby-1.6.8.2004.07.28_1 An object-oriented interpreted scripting language
> ruby-1.8.2_4        An object-oriented interpreted scripting language
> ruby18-bdb1-0.2.2   Ruby interface to Berkeley DB revision 1.8x with 
> full featu
> ruby18-programmingruby-0.4 The source of the Programming Ruby 
> ("pick-axe") book in XML
> 
> # pkg_info | grep portupgrade
> portupgrade-20041226_5 FreeBSD ports/packages administration and 
> management tool s
> 
> (ruby-1.6 is on only one system; some cruft i haven't taken time to 
> clean out, but it hasn't caused any problem, so don't think that's related)
> 
> This problem does *not* appear today on my 5.x system.
> 
> Thanks for any help, advice.
> 
> - Jake
> 
> _______________________________________________
> freebsd-ports at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscribe at freebsd.org"
> 

The work-around suggested by Anton Berezen did not fix the problem on 
these two systems, but following his second suggestion did work -
I deinstalled portupgrade, ruby and bdb ports, and reinstalled portupgrade.*
I was previously put off opting for the bdb4 back end to portupgrade 
because of a warning comment from the portupgrade port maintainer about 
it, some time ago, indicating some 'lack of support' for this option. I 
don't know what it was about, and may not be true any more.

Thanks to everyone who responded to my original post.

- Jake

*In case anyone else is following this and wants to do the same, 
remember to delete
/var/db/ports/portupgrade/options
before (re)installing portupgrade.



More information about the freebsd-ports mailing list