From owner-freebsd-ports@FreeBSD.ORG Fri Oct 5 15:47:31 2012 Return-Path: Delivered-To: freebsd-ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D0770106566C for ; Fri, 5 Oct 2012 15:47:31 +0000 (UTC) (envelope-from bryan@shatow.net) Received: from secure.xzibition.com (secure.xzibition.com [173.160.118.92]) by mx1.freebsd.org (Postfix) with ESMTP id 5A9EE8FC0C for ; Fri, 5 Oct 2012 15:47:30 +0000 (UTC) DomainKey-Signature: a=rsa-sha1; c=nofws; d=shatow.net; h=message-id :date:from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; q=dns; s=sweb; b=jkxCfJ LL1mAguPlNbDAqgtP192c+0I9JZwyzQIG/fiKvAD4zuI3sZdxIkygCck6eyqV/un KV+wFgc79r7jjvAxVu9bTTAyLtfnKnVS5fatQU3fmxfMFj/pNhelAc3GQulLYf71 25ccCa8h6aDPFbHYDripS98f23BlptIqt42SA= DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=shatow.net; h=message-id :date:from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; s=sweb; bh=5gnMJg+tlm46 +13nKqIy8T/Ts5NtH8gqW/3RQBpDcDY=; b=xxxLo6Kd1p6GA1gA7BwlnO9TWJCv EZqI3E5G1H79wY49TiuA3r/3HPkYugVJID5UVJLP7U82xRCfhwWYRZi2JLTq4JrR FwoIyLtIuhvLN7YpPCQ606CNLq8jYZYixkB6BDpxD4/LEFqc96MP2gaotic5j4E7 bXILpJZTK2orokI= Received: (qmail 81156 invoked from network); 5 Oct 2012 10:47:29 -0500 Received: from unknown (HELO ?192.168.0.74?) (bryan@shatow.net@74.94.87.209) by sweb.xzibition.com with ESMTPA; 5 Oct 2012 10:47:29 -0500 Message-ID: <506F0115.5090302@shatow.net> Date: Fri, 05 Oct 2012 10:47:33 -0500 From: Bryan Drewery User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120907 Thunderbird/15.0.1 MIME-Version: 1.0 To: "O. Hartmann" References: <506E9927.8030001@mail.zedat.fu-berlin.de> <506EFCB8.1050907@shatow.net> <506EFF67.8060401@zedat.fu-berlin.de> In-Reply-To: <506EFF67.8060401@zedat.fu-berlin.de> X-Enigmail-Version: 1.4.4 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: "O. Hartmann" , Ports FreeBSD Subject: Re: ports-mgmt/portupgrade: ** Database file locked. Waiting. 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: Fri, 05 Oct 2012 15:47:31 -0000 On 10/5/2012 10:40 AM, O. Hartmann wrote: > Am 10/05/12 17:28, schrieb Bryan Drewery: >> On 10/5/2012 3:24 AM, O. Hartmann wrote: >>> Using pkg(ng) in conjunction with the port ports/mgmt/portupgrade >>> results in long waiting cycles when portupgrade is updating the local >>> database, it is even on fast boxes sometimes in the range of a minute or >>> even two. >> >> You mean ports-mgmt/portupgrade-devel right? > > Of course, yes. > >> >>> >>> Is this usual or is there something wrong with my setup? >>> >>> Regards, >>> Oliver >>> --- >>> >>> [Updating the pkgdb in /var/db/pkg ... - 1114 >>> packages found (-0 +1) . done] >>> ---> Cleaning out obsolete shared libraries >>> [Updating the pkgdb in /var/db/pkg ... USING PKGNG >>> ** Database file locked. Waiting. >> >> I have not experienced this. Are you running multiple portupgrade tools >> at once? > > No, there is only one instance running at the same time, but apart from > the usual installations, I use Ruby 1.9 on all machines, I guess Ruby > 1.8 is still the default. I am using 1.9 as well. > > But anyway, the long locking time is a bit of frustrating, since it > takes ages for updating large sets of ports (as done recently on FreeBSD > 9.1-PRE). > Strange, I am unable to recreate this. # pkgdb -fu ---> Updating the pkgdb [Rebuilding the pkgdb in /var/db/pkg ... USING PKGNG - 433 packages found (-0 +433) ....................................................................................................100....................................................................................................200....................................................................................................300....................................................................................................400................................. done] Do you have some package tool in crontab perhaps? The PKGNG implementation in portupgrade is far from ideal. It will require a major refactoring of portupgrade to make it more efficient. Just focusing on making it *work* now, and will speed it up later. >> >> Bryan >> > >