From owner-freebsd-ports@FreeBSD.ORG Mon May 7 16:56:33 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 719A2106566C for ; Mon, 7 May 2012 16:56:33 +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 1648E8FC17 for ; Mon, 7 May 2012 16:56:33 +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; q=dns; s=sweb; b=Mera8hJyr4O83Bw6oQKoV8xcHMW0NXr/ QqmkN907RHJ9WgOpoBuZV4DuYSQaW+xLVuSmHzNoGun9YTgDsgBqNbdTIjkRikPk sLYPR+4Ow7Tql197fyNkF2hS8Hrgv4oQfdZM5MTSkSBHQH8ldOuCRxSkR7ullwOL v6wFCHmGeoQ= 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; s=sweb; bh=EeNYtm1OMVuZq1woMBvQnKMxdF3YdkcRJx37da hY4VA=; b=2d8nVuGC5VbkrxYa5AW8kikwDWoumHDx+NOO9bIGxjbio3GnMPtNhu ViSV3a/fyqntInId4HUZ0Tdolkg3wKfbwFn3vqP6o4gtwN1ywbKPbvsQqO1Zel0F 6XfLJf7rUnY+88nYseIh7Px863qzlTWY5yvFdZJRxzdoECv9nvRtA= Received: (qmail 93942 invoked from network); 7 May 2012 11:56:24 -0500 Received: from unknown (HELO ?192.168.0.107?) (bryan@shatow.net@74.94.87.209) by sweb.xzibition.com with ESMTPA; 7 May 2012 11:56:24 -0500 Message-ID: <4FA7FEB6.5040302@shatow.net> Date: Mon, 07 May 2012 11:56:22 -0500 From: Bryan Drewery User-Agent: Mozilla/5.0 (X11; Linux i686; rv:11.0) Gecko/20120329 Thunderbird/11.0.1 MIME-Version: 1.0 To: Andrea Venturoli References: <4FA38930.6050501@netfence.it> <4FA3D709.6040509@shatow.net> <4FA6C9FA.1010206@netfence.it> <4FA77C3C.7060007@netfence.it> In-Reply-To: <4FA77C3C.7060007@netfence.it> X-Enigmail-Version: 1.4.1 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig72BE79F8174BDE3224A93F7C" 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 16:56:33 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig72BE79F8174BDE3224A93F7C Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 05/07/2012 02:39 AM, Andrea Venturoli wrote: > On 05/06/12 20:59, Andrea Venturoli wrote: >=20 >>> 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 kn= ow. >> >> I'd gladly help. >> The way to go, IMHO,is to get additional logging; unfortunately I know= >> nothing about Ruby. >=20 > 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). >=20 >> if not system('/bin/mv', '-f', tmp, index_file) >> STDERR.puts 'failed to overwrite #{index_file}!"' >> raise IndexFileError, "index overwrite error" >> end >=20 > 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. >=20 > bye & Thanks > av. av, Thank you for your report and looking into this further. I have fixed this upstream for the next release - 2.4.9.6. Here's a patch in the meantime: https://github.com/pkgtools/pkgtools/commit/6c2d240e917cc14591086f59db9c8= c39e9771397.diff Thank you, Bryan Drewery --------------enig72BE79F8174BDE3224A93F7C Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQIbBAEBAgAGBQJPp/63AAoJEG54KsA8mwz5rg8P9jDSvSB//lh+GM0HzBftypve MWuRI08dJkgYTL4oRSH6QMbHg9PN1NJYdNw9cjGlFFY47sz8SGGgvfvBGg0A3bwe Q1TudngVG8X41friDU6O4NOuBT7W7rFKXxoGgMW4iptYO4JBNJyG37hDtpkuVDGU jEoLnR1E5bdWSXjpNDR7sSxFZdHzkHDcx7N3aLfAmscsZQmI2e2fWgSKd01OGI3D t7yySJnWO5Fk4tNHaeDqDv0tOu51Vy7AlKT4Lbr5bzH/V7rF7FFku6pJKE2KXOTL 7mO4Dt0PEyWhtEyck1p7KRyT4zP7imUY2djBF655ml5c66ivuutiSh4xCG7+wkJm sjVstHmhzdEEn6+4ctB9tek9SUUOq6UYKs1I8mmpSCmF1AhsaBNx0tBE1uL8PHjg REqQXbUuNYdxCJNzTbFefhGp/Uj7AoIJxlTLu6wDTZj2qrz31RBaoNxouXNNJdMB deJnul1gwe6MXaG1G7JI6f3h9XVedcezDOsDz6toF+jx9/f+wj+qiLbykGozGUgq PBBwoZu31GrCtBYLnmixw2HUq1fzUoI+i9rAj1hT0Zyrn4T+yX/0pTnixN9tFH8S 8Z2g0SBIgKNiCmocURT4H9bvDj1h5rFOIVpEaGEOT2I7/R1dlNRa8AGcBZ4rRayz PfGLX2mI3rRaEjrpVUY= =nBok -----END PGP SIGNATURE----- --------------enig72BE79F8174BDE3224A93F7C--