Date: Mon, 07 May 2012 11:56:22 -0500 From: Bryan Drewery <bryan@shatow.net> To: Andrea Venturoli <ml@netfence.it> Cc: freebsd-ports@freebsd.org Subject: Re: portsdb -U fails Message-ID: <4FA7FEB6.5040302@shatow.net> In-Reply-To: <4FA77C3C.7060007@netfence.it> References: <4FA38930.6050501@netfence.it> <4FA3D709.6040509@shatow.net> <4FA6C9FA.1010206@netfence.it> <4FA77C3C.7060007@netfence.it>
next in thread | previous in thread | raw e-mail | index | archive | help
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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4FA7FEB6.5040302>