From owner-freebsd-ports@FreeBSD.ORG Mon May 7 07:39:59 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 87EE41065670 for ; Mon, 7 May 2012 07:39:59 +0000 (UTC) (envelope-from ml@netfence.it) Received: from cp-out9.libero.it (cp-out9.libero.it [212.52.84.109]) by mx1.freebsd.org (Postfix) with ESMTP id 03E218FC12 for ; Mon, 7 May 2012 07:39:59 +0000 (UTC) X-CTCH-Spam: Unknown X-CTCH-RefID: str=0001.0A0B020B.4FA77C47.015A,ss=1,re=0.000,fgs=0 X-libjamoibt: 1555 Received: from soth.ventu (151.41.166.231) by cp-out9.libero.it (8.5.133) id 4F96C60C01C558FD; Mon, 7 May 2012 09:39:51 +0200 Received: from alamar.ventu (alamar.ventu [10.1.2.18]) by soth.ventu (8.14.4/8.14.4) with ESMTP id q477deaE008329; Mon, 7 May 2012 09:39:41 +0200 (CEST) (envelope-from ml@netfence.it) Message-ID: <4FA77C3C.7060007@netfence.it> Date: Mon, 07 May 2012 09:39:40 +0200 From: Andrea Venturoli User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:12.0) Gecko/20120429 Thunderbird/12.0 MIME-Version: 1.0 To: Bryan Drewery References: <4FA38930.6050501@netfence.it> <4FA3D709.6040509@shatow.net> <4FA6C9FA.1010206@netfence.it> In-Reply-To: <4FA6C9FA.1010206@netfence.it> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.73 on 10.1.2.13 Cc: freebsd-ports@freebsd.org Subject: Re: portsdb -U fails 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: Mon, 07 May 2012 07:39:59 -0000 On 05/06/12 20:59, Andrea Venturoli wrote: >> I've logged this failure upstream at >> https://github.com/pkgtools/pkgtools/issues/27 >> >> If you figure anything further out, before I fix it, please let me know. > > I'd gladly help. > The way to go, IMHO,is to get additional logging; unfortunately I know > nothing about Ruby. I tried digging this up a little: the problem seems to arise in portsdb.rb, in function "update", when the temp file is moved to /usr/ports/INDEX-7 (or -8 or whatever). > if not system('/bin/mv', '-f', tmp, index_file) > STDERR.puts 'failed to overwrite #{index_file}!"' > raise IndexFileError, "index overwrite error" > end Here index_file is nil. If I replace index_file with "/usr/ports/INDEX-7" (again, or -8, or whatever), everything works fine. Unfortunately, I was not able to find out where that value should come from and how to fix it. bye & Thanks av.