Date: Sat, 6 Nov 2021 12:50:35 +0100 From: Luca Pizzamiglio <pizzamig@freebsd.org> To: Baptiste Daroussin <bapt@freebsd.org> Cc: Bryan Drewery <bdrewery@freebsd.org>, FreeBSD Ports mailing list <freebsd-ports@freebsd.org> Subject: Re: poudriere's check_leftovers and update-mime-database Message-ID: <CAB88xy-g8CXDfLjHwWCtVFpEfiLBrT0WwCh1vPh8jq-CAFa41g@mail.gmail.com> In-Reply-To: <20211105083358.3oouronegwlwpbwj@aniel.nours.eu> References: <CAB88xy8bggBGSZS40qu%2ByV%2BrrkoAXoqzAjN8vHLTuwyph-dY1Q@mail.gmail.com> <0e6b860a-9dc3-8fb2-ff97-24ee253903a7@FreeBSD.org> <20211105083358.3oouronegwlwpbwj@aniel.nours.eu>
next in thread | previous in thread | raw e-mail | index | archive | help
--000000000000b12a2305d01d5fa2 Content-Type: text/plain; charset="UTF-8" Hi Baptiste, hi Bryan I've updated everything and rebuilt the "problematic" package. I've found no problems. Thanks for the suggestions and the fix, really appreciated! Best regards, pizzamig On Fri, Nov 5, 2021 at 9:34 AM Baptiste Daroussin <bapt@freebsd.org> wrote: > On Thu, Nov 04, 2021 at 11:18:23AM -0700, Bryan Drewery wrote: > > On 11/1/2021 8:32 AM, Luca Pizzamiglio wrote: > > > Hi all, > > > > > > Recently I've encountered an issue (a race condition?) with poudriere > and a > > > port I maintain with MIME database. > > > > > > The bulk build in poudriere, with the -t flag to enable > check_leftovers, is > > > failing because the mime database wasn't updated when the package is > > > deinstalled. > > > But, in reality, update-mime-database just takes a few seconds > > > (asynchronously) to unregister the application. > > > > > > When deinstalling the port on my local machine, I notice that I have to > > > wait a couple of seconds to see the MIME files fully updated. > > > I brutally hacked poudriere adding a `sleep 3` in the check_leftovers() > > > function and the bulk build succeeded. > > > > > > Have you experienced this before? > > > Am I the only one with this problem? > > > > > > > Poudriere just calls /usr/ports/Mk/Scripts/check_leftovers.sh. Any sleep > or > > fix could be made there. > > > > The check_leftovers() function is compat for very old ports trees that do > > not have that script. > > > > > THis has nothing to do with poudriere, this was a bug in pkg which has been > fixed yesterday (1.17.4) > > Please update. > > Best regards, > Bapt > --000000000000b12a2305d01d5fa2--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAB88xy-g8CXDfLjHwWCtVFpEfiLBrT0WwCh1vPh8jq-CAFa41g>