From owner-freebsd-ports@FreeBSD.ORG Sat Sep 4 10:54:55 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 26CCF16A4CE; Sat, 4 Sep 2004 10:54:55 +0000 (GMT) Received: from congo.princess.dyns.cx (cpc1-cmbg6-6-0-cust54.cmbg.cable.ntl.com [81.104.213.54]) by mx1.FreeBSD.org (Postfix) with ESMTP id 98D0043D48; Sat, 4 Sep 2004 10:54:54 +0000 (GMT) (envelope-from steve@howes-macnaghten.com) Received: by congo.princess.dyns.cx (Postfix, from userid 1001) id 9A81FC13B; Sat, 4 Sep 2004 11:54:53 +0100 (BST) From: Steve Hodgson To: freebsd-ports@freebsd.org Date: Sat, 4 Sep 2004 11:54:52 +0100 User-Agent: KMail/1.7 References: <20040903214843.GA42378@wombat.jungle> <89ceee7040903145446527510@mail.gmail.com> <20040903220646.GA44384@wombat.jungle> In-Reply-To: <20040903220646.GA44384@wombat.jungle> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200409041154.53129.steve@howes-macnaghten.com> cc: ports@freebsd.org cc: Michael Edenfield cc: Dan Finn Subject: Re: Bus Error in protsdb.rb updating INDEX.db X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Sep 2004 10:54:55 -0000 On Friday 03 September 2004 23:06, Michael Edenfield wrote: > * Dan Finn [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