Date: Sat, 11 Oct 2014 19:07:52 +0100 From: Matthew Seaman <matthew@FreeBSD.org> To: freebsd-ports@freebsd.org Subject: Re: pkgng-1.3.8: "pkg upgrade" showing some strange errors Message-ID: <543971F8.5060905@FreeBSD.org> In-Reply-To: <1413050152348-5956038.post@n5.nabble.com> References: <1413050152348-5956038.post@n5.nabble.com>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --Ee5al9g6K6sclAgGioh7SFJ6VDe3bu3SE Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 11/10/2014 18:55, Beeblebrox wrote: > I'm getting several errors during "pkg upgrade" on pkg 1.3.8 >=20 > At fist I thought this was a port error, because "pkg upgrade" actually= > breaks on this: > "Installing linux-c6-hicolor-icon-theme-0.5: 0% > pkg: archive_read_extract(): Can't replace existing directory with > non-directory" >=20 > But then I noticed many octave-related ports had given install errors: > "load-octave-pkg: octave is installing ad-1.0.6.tar.gz. > 'dispatch' undefined near line 2 column 1 > error: called from '/usr/local/share/octave/packages/ad-1.0.6/PKG_ADD' = in > file /usr/local/share/octave/packages/ad-1.0.6/PKG_ADD near line 2, col= umn 1 > error: called from: > error: /usr/local/share/octave/3.8.1/m/pkg/private/install.m at line = 241, > column 5 > error: /usr/local/share/octave/3.8.1/m/pkg/pkg.m at line 394, column = 9 > load-octave-pkg: octave is installing ltfat-2.0.1.tar.gz. > panic: Bus error -- stopping myself... >=20 > Are these errors related? Is this a pkgng error, or problem with the > individual ports? This is always a tricky thing for a packaging system to handle -- an existing directory being replaced by a file. pkg(8) won't remove a directory unless it is empty, so it can't create the identically named file. In effect the package is conflicting with an earlier version of itself. Actually, I don't know if the directory in question is empty or not: that would be a good thing to find out. Also if it isn't empty, are the contents owned by other packages awaiting upgrade and would your pkg upgrade run ultimately have removed them? pkg(8) crashing with a buss error is definitely a bug in pkg. However, the whole question of how to replace a directory with a file is mostly a problem with the port: yes, it should be possible to do such things, but it is always going to be fragile and sensible software developers will avoid doing such things. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey --Ee5al9g6K6sclAgGioh7SFJ6VDe3bu3SE Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.20 (Darwin) iQJ8BAEBCgBmBQJUOXH5XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkAT5IoQAKvXFPxBvpAKRVjpRDK8DXra njHlMPCEW381PMGLKaqfXaHxKyla39Ci8+QHIY0SPUxdSkbQF2xNd8jA/Meo08N1 Dc4lRZSCg4jx8nlLudr8GjPQ01EDMubXQORrsVE2PIginWnTaArQr78nHzaMR+ur jX+yLZbbDCyt5jpqBE4s9d+MLtiCEL+OG1X0qRSZGb6gFNQSByOH9sjvud34Vcop cB+DJbBhG46Mj4dfC1BKYM+UwQlU02zq3KHN/Ej0UfgbdiGPCZK1spL49UjNPLbB kSafNkZQRaC4mJAA9cYBLW42E09o3i9PkEA+6ZHlltU8+tUY81Elg+mva9f2zRGb 9JBnPnrNCGG32N6eMYBKTl0kJboKQ0jFol7ToZpjcj2/RAPlNHPT+081gXqbemYh 7cxrM5H1wbjINdt1EIBq46b0vA+btRyCkwEIMW68Io3rmBjM55avX0PJlNukPnKC dHWxpiIFNvEZDfzb5akkIFJjn1hWuABK/Jm43FvIdlVbi+jvrSI8XuXrf+YhWRNO somn3JKj0qG5LMSEgZREVfcM9a77uOQTv2umbJOFzOslBUyq5Jep7ei33NCKdBL8 A7uARepnqL8auVI1SHj8AeRa6Teyjn3aSQfYmsDv/bVryu7JGqgj03jnVe+nhT3b ZPYmFdYXD2+5hUi+Fo9s =mZv3 -----END PGP SIGNATURE----- --Ee5al9g6K6sclAgGioh7SFJ6VDe3bu3SE--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?543971F8.5060905>