Date: Sat, 4 Sep 2004 11:54:52 +0100 From: Steve Hodgson <steve@howes-macnaghten.com> To: freebsd-ports@freebsd.org Cc: Dan Finn <dhrider@gmail.com> Subject: Re: Bus Error in protsdb.rb updating INDEX.db Message-ID: <200409041154.53129.steve@howes-macnaghten.com> In-Reply-To: <20040903220646.GA44384@wombat.jungle> References: <20040903214843.GA42378@wombat.jungle> <89ceee7040903145446527510@mail.gmail.com> <20040903220646.GA44384@wombat.jungle>
next in thread | previous in thread | raw e-mail | index | archive | help
On Friday 03 September 2004 23:06, Michael Edenfield wrote: > * Dan Finn <dhrider@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200409041154.53129.steve>