From nobody Thu Nov 4 18:18:23 2021 X-Original-To: freebsd-ports@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id A4BFF17DABDD for ; Thu, 4 Nov 2021 18:18:27 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [96.47.72.132]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "freefall.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HlX2C40fkz3FFP; Thu, 4 Nov 2021 18:18:27 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1636049907; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=PAJ/8RVZad336pOfuhn+RURbDNXhcF3TD9D+JcJqWw8=; b=xRdA5AZSCrjmdP3IxOIsatcAyUGD8AqolYg1V/4zIxWH6o65g3XYSCM3k/enZ/grjxTJCp AymOlYQj+0VEEW+dkJ9ZnooLTfrcUGvvJHpg6wzlnAwj8cD1MEB7x6QouDiuP3/OvuO7Pm HUhLd/BR7xFoAIpay9S4j0eV7QBBI7bYfRYbDV9GPGLkgp0caALW1niIELK8/6Zid/iVqs tWDSA0UNOdmiXhbfbnILhOCdw2KZ1YRL8NU9P35RWXJexxWFfSD481iEDyyT3qdxTEjwJ6 PlE57i9zWedvc4lzaW8AX0keUuRHRvJ5HFzA/R+OlqjsZEaBvFct2XV4d9f6vw== Received: from mail.xzibition.com (unknown [127.0.1.132]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by freefall.freebsd.org (Postfix) with ESMTPS id 57D251DA25; Thu, 4 Nov 2021 18:18:27 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mail.xzibition.com (localhost [172.31.3.2]) by mail.xzibition.com (Postfix) with ESMTP id 61C4114F01; Thu, 4 Nov 2021 11:18:26 -0700 (PDT) X-Virus-Scanned: amavisd-new at mail.xzibition.com Received: from mail.xzibition.com ([172.31.3.2]) by mail.xzibition.com (mail.xzibition.com [172.31.3.2]) (amavisd-new, port 10026) with LMTP id Uyk6MOCubvug; Thu, 4 Nov 2021 11:18:23 -0700 (PDT) Message-ID: <0e6b860a-9dc3-8fb2-ff97-24ee253903a7@FreeBSD.org> DKIM-Filter: OpenDKIM Filter v2.10.3 mail.xzibition.com 6F69614EF5 Date: Thu, 4 Nov 2021 11:18:23 -0700 List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.3.0 Subject: Re: poudriere's check_leftovers and update-mime-database Content-Language: en-US To: Luca Pizzamiglio , FreeBSD Ports mailing list References: From: Bryan Drewery Organization: FreeBSD In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1636049907; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=PAJ/8RVZad336pOfuhn+RURbDNXhcF3TD9D+JcJqWw8=; b=DkIIA31Fw3RnsnEjAsSZE+Pdrd7q0f18uYIPn6Zlu0kflGcdKoDjb9EAlAr+HDMT3FYgXL WhykJGXUVSLmHpGWtAaBsCinEC78gMgIf5r2ry9QzRhWbd5NyjR3UXbNTz73M54x3dS1UG LTgCOxEjBCHjijvw5eOsAUFrQ8iX68DhcA+NZAvlTLBxpkrATcEqlHA3/7lHnKy3+/H3ya o9o6IIQ/baZK2rVGewe/tpxcnB3QosJU1dkILLVad9MyzLk77nQjnZETyhGU0QEEjBL+Pn kKj8hYp7Z5265xulMEJCp53L9ed5pIRuDSVNUbf8N5aKb5PLu89FrgeteEERVQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1636049907; a=rsa-sha256; cv=none; b=Pf5b6eHYg7qU00isFwu1mUjhUDVn2X0s2WUwrrsJZFi8FSGztkoRn0O0T9EH87SQ98Wy4V /uGob6X29TzfyjnmncwEknidH6r/SGWaDKulVn122b8Z7C14F06u4E/VqYdY68Xffpdk5N iA3+rMPCsqNPoUHQe5yNbPUIiqPfS/ljyDCVsqdgQRCUNGfTjwktOQ9TGKXkqUOYkCWdB+ wP677KXCtBGcdAUNX+A7C6b8uIPSbIp3agd/LlzQKem54c39/oAHi2qw1rQNkI0TIRDThW T+TbwuTZWgrUx8BkhSZVJV42ICpFyKBItRsd75UObqEXyHleMB6XEAFB1LS78Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N 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