Date: Thu, 28 Apr 2022 12:31:06 +0200 From: Stefan Esser <se@FreeBSD.org> To: Baptiste Daroussin <bapt@FreeBSD.org> Cc: Michael Schuster <michaelsprivate@gmail.com>, FreeBSD CURRENT <freebsd-current@freebsd.org>, Chris <bsd-lists@bsdforge.com> Subject: Re: "pkg upgrade" failing with "Fail to create temporary file: ... Not a directory" Message-ID: <5662fa98-7926-85e9-3ba9-36d6c4877de4@FreeBSD.org> In-Reply-To: <20220428071140.iuydpxyuryqfs4c4@aniel.nours.eu> References: <CADqw_gL6YRieCBSbZ5CznH2YzG9nAie_GiXD9A-0irr2kYWNNA@mail.gmail.com> <93f322eb1d99783e568262a5cd9f5fd9@bsdforge.com> <CADqw_gKC-g4_2ysPyAi4VrQ1D4xsQccAgTASPwW-YGpT9Thcug@mail.gmail.com> <8364fbb11098ffb0799829972cc6a35d@bsdforge.com> <20220428071140.iuydpxyuryqfs4c4@aniel.nours.eu>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------------xFmvaNmD2fr7K94Y32qHto0D Content-Type: multipart/mixed; boundary="------------9AyrwfcmOzbZiZUUfMNG2k0D"; protected-headers="v1" From: Stefan Esser <se@FreeBSD.org> To: Baptiste Daroussin <bapt@FreeBSD.org> Cc: Michael Schuster <michaelsprivate@gmail.com>, FreeBSD CURRENT <freebsd-current@freebsd.org>, Chris <bsd-lists@bsdforge.com> Message-ID: <5662fa98-7926-85e9-3ba9-36d6c4877de4@FreeBSD.org> Subject: Re: "pkg upgrade" failing with "Fail to create temporary file: ... Not a directory" References: <CADqw_gL6YRieCBSbZ5CznH2YzG9nAie_GiXD9A-0irr2kYWNNA@mail.gmail.com> <93f322eb1d99783e568262a5cd9f5fd9@bsdforge.com> <CADqw_gKC-g4_2ysPyAi4VrQ1D4xsQccAgTASPwW-YGpT9Thcug@mail.gmail.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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5662fa98-7926-85e9-3ba9-36d6c4877de4>