Date: Thu, 28 Apr 2022 14:20:48 +0200 From: Michael Gmelin <grembo@freebsd.org> To: Stefan Esser <se@FreeBSD.org> Cc: Baptiste Daroussin <bapt@FreeBSD.org>, 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: <20220428142048.38c33556.grembo@freebsd.org> In-Reply-To: <5662fa98-7926-85e9-3ba9-36d6c4877de4@FreeBSD.org> 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> <5662fa98-7926-85e9-3ba9-36d6c4877de4@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 28 Apr 2022 12:31:06 +0200 Stefan Esser <se@FreeBSD.org> wrote: > 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. > > > > 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 > moving 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 installed. The opposite case seems more interesting/problematic. -m -- Michael Gmelin
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20220428142048.38c33556.grembo>