From nobody Thu Apr 28 10:31:06 2022 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id BC3741992E45 for ; Thu, 28 Apr 2022 10:31:11 +0000 (UTC) (envelope-from se@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KpsNH4mC0z3Jcm; Thu, 28 Apr 2022 10:31:11 +0000 (UTC) (envelope-from se@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1651141871; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=j2ZXhIReSpvrvs36ZGLVZkTlH4gCTbf1w9GcM7+N5Ws=; b=m7EKb5OL1l9II/0sOUuyjBpLY/ImSQRAID67gpJHVmrmDM1KyA/gUzIWrS1psfRNdyfZWc +UE1rXIpySIfARi1OVTZp0POUTdU86jmNCEKepvd6sFVc7yOE2RKVZCIwwp5MG0eBp31s9 uvP5jOyAMZnZRBjAYs6S1tqozdNKQWzoF+QgYLoNCtJHL40IcTdxs/9OmieqWJHdwHZ/mq A2T7ep+3Kx06AMWRF2UHAUIGB03cwhWoqt0nUuOHEaj2uVwvnyUZC6iOZMe0URbqTqCrw9 Is+14Yk5h+2FCCPXz0OjZ1sjW79moDOjdA+bJ4FaklD0CKNyFkcW7Nbx08W8BQ== Received: from [IPV6:2003:cd:5f05:c200:503:1c91:5403:5264] (p200300cd5f05c20005031c9154035264.dip0.t-ipconnect.de [IPv6:2003:cd:5f05:c200:503:1c91:5403:5264]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: se/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id DB283243D0; Thu, 28 Apr 2022 10:31:10 +0000 (UTC) (envelope-from se@FreeBSD.org) Message-ID: <5662fa98-7926-85e9-3ba9-36d6c4877de4@FreeBSD.org> Date: Thu, 28 Apr 2022 12:31:06 +0200 List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: "pkg upgrade" failing with "Fail to create temporary file: ... Not a directory" Content-Language: en-US To: Baptiste Daroussin Cc: Michael Schuster , FreeBSD CURRENT , Chris References: <93f322eb1d99783e568262a5cd9f5fd9@bsdforge.com> <8364fbb11098ffb0799829972cc6a35d@bsdforge.com> <20220428071140.iuydpxyuryqfs4c4@aniel.nours.eu> From: Stefan Esser In-Reply-To: <20220428071140.iuydpxyuryqfs4c4@aniel.nours.eu> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------xFmvaNmD2fr7K94Y32qHto0D" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1651141871; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=j2ZXhIReSpvrvs36ZGLVZkTlH4gCTbf1w9GcM7+N5Ws=; b=ljT4utKsXsI56UOxEA81EDzMfv59aR2s3WJFgNBbp9XIeZ/EH10YWzXTh+4EO08ZJMA8zM e/3P1TbgncnYtWT7SfrW8rkTLyeesQSm/p8GeFePHg7IYlxqKqmiXmPTt0chcsvjZujrvf lCbgmBHSDsp+Kyett+LegdxZJyriVWTbYOH48IBtFQVWvjyiz8ALuFKQqmEcNLMnUR2mUu lW+u7Qnng7m/7Ak3vAQYkIUPW2CM/Pf1ftaY9BaqgtRT3NQrKOt31Y742XHgrs9QoQupUL Ps2MIyf6Gzj12UVdW+ZcExsdQciSOWelhXGJ1Uwt7wiSs2gLOXu3tufk2KDIjg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1651141871; a=rsa-sha256; cv=none; b=Tic31mVvD64rWDzI5XifuSXgkdAdg19pbOZCqiVqJjqp5wkIRV0dbDFX0W9cx9Wa4WXniN xhLtCRyXi+eZlCKgJjCSUvj7D8+fcbegE5wYvaY5TMNwpGrsJvBZwd2Hz+M8l1E3R9JzFn stvn06vSPN4EWirxFCPLITQ5y4hPZOTHaUHpuSZA5UydnFIau1FyebEYlWl95CXcfygQrz 96MVALMJJb0cu9/A9Kwr9HB+m2MN0ZbBD9b5n1gsO2zUBqkKOVX4kUVwFQY5/4Yapnsetk dQ+Mm1r27qge9c6a9eFbkFO4kWk6W3NwvO+wPJu1hyJcS59Mv6b1JIeXy9sAWA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------------xFmvaNmD2fr7K94Y32qHto0D Content-Type: multipart/mixed; boundary="------------9AyrwfcmOzbZiZUUfMNG2k0D"; protected-headers="v1" From: Stefan Esser To: Baptiste Daroussin Cc: Michael Schuster , FreeBSD CURRENT , Chris Message-ID: <5662fa98-7926-85e9-3ba9-36d6c4877de4@FreeBSD.org> Subject: Re: "pkg upgrade" failing with "Fail to create temporary file: ... Not a directory" References: <93f322eb1d99783e568262a5cd9f5fd9@bsdforge.com> <8364fbb11098ffb0799829972cc6a35d@bsdforge.com> <20220428071140.iuydpxyuryqfs4c4@aniel.nours.eu> In-Reply-To: <20220428071140.iuydpxyuryqfs4c4@aniel.nours.eu> --------------9AyrwfcmOzbZiZUUfMNG2k0D Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Am 28.04.22 um 09:11 schrieb Baptiste Daroussin> It is 2 things, it is a = port problem of maintainers who do not check for > upgradability of their packages, and it can also been seen as something= pkg can > deal with, but a complicated case, so I don't know yet how. >=20 > The main issue is a file in vX which becomes a directory in vX+1 which = goes in > the way pkg does extract files to be as atomic as possible. This case could be caught and dealt with by removing the file or by movin= g it out of the way (to a temporary name to allow it to be recovered if the= subsequent steps fail or to be deleted if they succeed). Further special conditions may apply - but since there is no way a file and directory can exist under the same name (on FreeBSD, at least), it is= safe to assume that the file will not be kept when the package is install= ed. Regards, STefan --------------9AyrwfcmOzbZiZUUfMNG2k0D-- --------------xFmvaNmD2fr7K94Y32qHto0D Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wsB5BAABCAAjFiEEo3HqZZwL7MgrcVMTR+u171r99UQFAmJqbOoFAwAAAAAACgkQR+u171r99UQM Swf/SEXWrTI7BtOQa5fnnMVDbnU9eopaah8zHdV2d/iDSdNE0PxPHJFEEW6E+831g3A3q005rBJX vSQzWfPdiPd9ByCNELXhF7PcfZKq0HT12kva+fOD4qTmLQqArf26Hifd4HunbgwwMppPasjy+pik ri9R5N9/BP500DQmNeH1MuDVknqhC27oHhA8AiVzWLbft3/jU0IGzdhrZns8nddlCUgOl3O/Q+Iu G1XQURjZd5aqvntgce5fO5AInLV8NI4XQVm9F3SoziiLcqV3IytzcWdeNX+SWqvJJ1VK/+kID9qj y13s42xlK2C9xJZeGIRe2pNCn2K50I3TaDGohCE2kg== =RZJB -----END PGP SIGNATURE----- --------------xFmvaNmD2fr7K94Y32qHto0D--