portupgrade barfs [was: portdb -Uu fails]

Hans Lambermont hans at lambermont.dyndns.org
Wed Jun 23 01:52:22 PDT 2004


Ion-Mihai Tetcu wrote:

> Hans Lambermont wrote:
>> --->  Session started at: Tue, 22 Jun 2004 20:53:06 +0200
>> [Updating the pkgdb <format:bdb1_btree> in /var/db/pkg ... - 325 packages found (-1 +1) (...). done]
>> --->  Session ended at: Tue, 22 Jun 2004 20:53:14 +0200 (consumed 00:00:07)
>> /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:323:in `deorigin': cannot convert nil into String (PkgDB::DBError)
>>         from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:916:in `tsort_build'
>>         from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:915:in `each'
>>         from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:915:in `tsort_build'
>>         from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:907:in `each'
>>         from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:907:in `tsort_build'
>>         from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:929:in `sort_build'
>>         from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:933:in `sort_build!'
>>         from /usr/local/sbin/portupgrade:674:in `main'
>>         from /usr/local/sbin/portupgrade:207:in `initialize'
>>         from /usr/local/sbin/portupgrade:207:in `new'
>>         from /usr/local/sbin/portupgrade:207:in `main'
>>         from /usr/local/sbin/portupgrade:1845
>> 
>> re-cvsupping, cd /usr/ports/sysutils/portupgrade && make deinstall &&
>> make install don't help.
> 
> Probably a ruby bug. Rebuilding {pkg|ports}.db from scratch will do, I think.

Confirmed, portsdb -fu fixed it. portupgrade now works.

Thanks.

-- Hans


More information about the freebsd-ports mailing list