Re: poudriere's check_leftovers and update-mime-database
Date: Thu, 04 Nov 2021 18:18:23 UTC
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. -- Bryan Drewery