From owner-freebsd-ports@FreeBSD.ORG Tue Jul 19 13:45:06 2005 Return-Path: X-Original-To: freebsd-ports@freebsd.org 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 8116716A41F for ; Tue, 19 Jul 2005 13:45:06 +0000 (GMT) (envelope-from jake@vanbockel.net) Received: from smtp3.wanadoo.fr (smtp3.wanadoo.fr [193.252.22.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id E1F4143D79 for ; Tue, 19 Jul 2005 13:45:05 +0000 (GMT) (envelope-from jake@vanbockel.net) Received: from me-wanadoo.net (unknown [127.0.0.1]) by mwinf0302.wanadoo.fr (SMTP Server) with ESMTP id DD0CE1C00B3E for ; Tue, 19 Jul 2005 15:45:03 +0200 (CEST) Received: from [192.168.0.4] (ADijon-151-1-107-195.w83-203.abo.wanadoo.fr [83.203.223.195]) by mwinf0302.wanadoo.fr (SMTP Server) with ESMTP id 666071C00B36; Tue, 19 Jul 2005 15:45:03 +0200 (CEST) X-ME-UUID: 20050719134503419.666071C00B36@mwinf0302.wanadoo.fr Message-ID: <42DD01ED.9080306@vanbockel.net> Date: Tue, 19 Jul 2005 15:36:45 +0200 From: jake User-Agent: Mozilla Thunderbird 1.0.5 (X11/20050714) X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Brandon S. Allbery KF8NH" References: <42D7AB39.30803@acm.org> <20050715124604.GB84686@heechee.tobez.org> <1121432061.69679.3.camel@tirun> In-Reply-To: <1121432061.69679.3.camel@tirun> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Michael Nottebrock , freebsd-ports@freebsd.org Subject: Re: portupgrade problems on 4.x X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Jul 2005 13:45:06 -0000 Brandon S. Allbery KF8NH wrote: > On Fri, 2005-07-15 at 14:46 +0200, Anton Berezin wrote: > >>On Fri, Jul 15, 2005 at 02:25:29PM +0200, Jake Lloyd wrote: >> >>>[Failed `Inappropriate file type or format'] [Updating the portsdb >>> 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) >> >>Just another data point - I also experienced that after ruby upgrade on >>a couple of 4.X systems. > > > I believe this is a known problem with the Berkeley DB in the base > system which has proved very difficult to track down; nobody's been able > to pin down the exact circumstances in which it's triggered. The > workaround is to tell portupgrade to use a format other than bdb1_btree: > > export PKG_DBDRIVER=bdb1_hash > export PORTS_DBDRIVER=bdb1_hash > > or install a recent portupgrade configured with the option to use > BerkeleyDB from ports instead of the 1.85 in the base. > Thanks for the information and for your recommendations. The work-around you suggested did not fix the problem on these two systems, but following your second suggestion did work (on just one, so far). I was previously put off opting for the bdb4 back end because of a warning comment of the portupgrade port maintainer, 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. (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.) Thanks to everyone who responded to my original post. -Jake