Date: Thu, 28 Apr 2022 09:11:40 +0200 From: Baptiste Daroussin <bapt@FreeBSD.org> To: Chris <bsd-lists@bsdforge.com> Cc: Michael Schuster <michaelsprivate@gmail.com>, FreeBSD CURRENT <freebsd-current@freebsd.org> Subject: Re: "pkg upgrade" failing with "Fail to create temporary file: ... Not a directory" Message-ID: <20220428071140.iuydpxyuryqfs4c4@aniel.nours.eu> In-Reply-To: <8364fbb11098ffb0799829972cc6a35d@bsdforge.com> References: <CADqw_gL6YRieCBSbZ5CznH2YzG9nAie_GiXD9A-0irr2kYWNNA@mail.gmail.com> <93f322eb1d99783e568262a5cd9f5fd9@bsdforge.com> <CADqw_gKC-g4_2ysPyAi4VrQ1D4xsQccAgTASPwW-YGpT9Thcug@mail.gmail.com> <8364fbb11098ffb0799829972cc6a35d@bsdforge.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Apr 27, 2022 at 08:47:26PM -0700, Chris wrote: > On 2022-04-27 20:40, Michael Schuster wrote: > > Chris, > > > > thx for your response. However .... > > > > On Thu, Apr 28, 2022 at 4:19 AM Chris <bsd-lists@bsdforge.com> wrote: > > > > > > On 2022-04-27 12:59, Michael Schuster wrote: > > > > Hi, > > > > > > > > $subject happened to me just now on current. I researched it on the > > > > internet, the answer to this issue seems to be a universal "uninstall > > > > and install the package" which seems to have worked in all cases I saw > > > > it suggested. > > > > > > > > I'm trying to embed this command into a script and would like to avoid > > > > manual intervention (I have to admit, this is the first time I've > > > > encountered this error in the two years I've been doodling with > > > > FreeBSD again) ... > > > > Is anything more known about this error behaviour, and what I can do > > > > to avoid it? > > > > > > > > TIA > > > > Michael > > > > > > > > PS: in case it matters: the full path shown in the error message is > > > > /usr/local/include/KF5/GrantleeTheme/GrantleeTheme/.pkgtemp.GenericFormatter.qSk5LxEaheWG, > > > > the package being extracted is grantleetheme-22.04.0 > > > This looks more a case for the Maintainer of the GrantleeTheme than for > > > current@ > > > > ... maybe. OTOH, the instances I found mentioned on the 'net are all > > about different packages: > > > > eg: > > https://forums.freebsd.org/threads/pkg-upgrade-fail-to-create-temporary-file.67923/ > > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=237767 > > > > I feel there's something different at work here than just one > > maintainer's oversight. > You may well be correct. On the surface, to me it looked like a port problem > so I thought > you might get quicker results via it's maintainer. :-) > > Good luck! :-) > > > > Thx > > Michael 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. Best regards, Bapt
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20220428071140.iuydpxyuryqfs4c4>