Bus Error in protsdb.rb updating INDEX.db

Steve Hodgson steve at howes-macnaghten.com
Sat Sep 4 03:54:55 PDT 2004


On Friday 03 September 2004 23:06, Michael Edenfield wrote:
> * Dan Finn <dhrider at gmail.com> [040903 18:04]:
> > How do you tell ruby to skip that line?  That might be at least a
> > usable hack for some of us until this is fixed.

After installing sysutils/portindex, have a look 
in /usr/local/share/doc/portindex/README.txt

Looks like this is all old news

Quote>>

Possible problems with portsdb -u
=================================

If portsdb -u fails because of bug in Ruby, delete incorrectly
created INDEX.db file and reorder lines in INDEX file. Ruby is sensitive
to order of lines in INDEX file. With index generated by original
make index procedure Ruby can still crash, but less likely.

#Method 0
Use portindexdb program. Works fast and nicely. Of course, categories
are not generated, so if you are using in ignore by category feature
in pkgtools.conf....

#Method 1
Use script like this:

``
sort < INDEX-5 > INDEX-5.sorted
mv INDEX-5.sorted INDEX-5
``

#Method 2
Or you can install ports textproc/rl and misc/inplace. Then use
``
inplace rl /usr/ports/INDEX-5
``Possible problems with portsdb -u
=================================

If portsdb -u fails because of bug in Ruby, delete incorrectly
created INDEX.db file and reorder lines in INDEX file. Ruby is sensitive
to order of lines in INDEX file. With index generated by original
make index procedure Ruby can still crash, but less likely.

#Method 0
Use portindexdb program. Works fast and nicely. Of course, categories
are not generated, so if you are using in ignore by category feature
in pkgtools.conf....

#Method 1
Use script like this:

``
sort < INDEX-5 > INDEX-5.sorted
mv INDEX-5.sorted INDEX-5
``

#Method 2
Or you can install ports textproc/rl and misc/inplace. Then use
``
inplace rl /usr/ports/INDEX-5
``
Sort method work better than rl for avoiding Ruby bug, use rl method only
if sort method failed.

This Ruby problem is reported
in PR http://www.freebsd.org/cgi/query-pr.cgi?pr=66222

Have a nice day
Bug reports are very welcome
Radim Kolar

Sort method work better than rl for avoiding Ruby bug, use rl method only
if sort method failed.

This Ruby problem is reported
in PR http://www.freebsd.org/cgi/query-pr.cgi?pr=66222

Have a nice day
Bug reports are very welcome
Radim Kolar

<< End quote


More information about the freebsd-ports mailing list