From owner-freebsd-ports@FreeBSD.ORG Sat Oct 11 18:08:01 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E5F09B88 for ; Sat, 11 Oct 2014 18:08:01 +0000 (UTC) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.infracaninophile.co.uk", Issuer "ca.infracaninophile.co.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 8665761A for ; Sat, 11 Oct 2014 18:08:01 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [81.2.117.99]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.9/8.14.9) with ESMTP id s9BI7r2T021853 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Sat, 11 Oct 2014 19:07:53 +0100 (BST) (envelope-from matthew@FreeBSD.org) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=none header.from=FreeBSD.org DKIM-Filter: OpenDKIM Filter v2.9.2 smtp.infracaninophile.co.uk s9BI7r2T021853 Authentication-Results: smtp.infracaninophile.co.uk/s9BI7r2T021853; dkim=none reason="no signature"; dkim-adsp=none; dkim-atps=neutral Message-ID: <543971F8.5060905@FreeBSD.org> Date: Sat, 11 Oct 2014 19:07:52 +0100 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: freebsd-ports@freebsd.org Subject: Re: pkgng-1.3.8: "pkg upgrade" showing some strange errors References: <1413050152348-5956038.post@n5.nabble.com> In-Reply-To: <1413050152348-5956038.post@n5.nabble.com> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Ee5al9g6K6sclAgGioh7SFJ6VDe3bu3SE" X-Virus-Scanned: clamav-milter 0.98.4 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lucid-nonsense.infracaninophile.co.uk X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Oct 2014 18:08:02 -0000 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--