Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Nov 2021 16:32:47 +0100
From:      Luca Pizzamiglio <pizzamig@freebsd.org>
To:        FreeBSD Ports mailing list <freebsd-ports@freebsd.org>
Subject:   poudriere's check_leftovers and update-mime-database
Message-ID:  <CAB88xy8bggBGSZS40qu%2ByV%2BrrkoAXoqzAjN8vHLTuwyph-dY1Q@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
--0000000000001f337705cfbbe5f9
Content-Type: text/plain; charset="UTF-8"

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?

Best regards,
pizzamig

--0000000000001f337705cfbbe5f9--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAB88xy8bggBGSZS40qu%2ByV%2BrrkoAXoqzAjN8vHLTuwyph-dY1Q>