From nobody Sat Nov 6 11:50:35 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 301431846CF6 for ; Sat, 6 Nov 2021 11:51:04 +0000 (UTC) (envelope-from luca.pizzamiglio@gmail.com) Received: from mail-ed1-f42.google.com (mail-ed1-f42.google.com [209.85.208.42]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HmbLH2Cwnz3rnT; Sat, 6 Nov 2021 11:51:03 +0000 (UTC) (envelope-from luca.pizzamiglio@gmail.com) Received: by mail-ed1-f42.google.com with SMTP id r4so41507125edi.5; Sat, 06 Nov 2021 04:51:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=AovjKGMrpggdq+Iyi8UD9AtqFl6+MlLzxe3IAawcOEY=; b=TjqHYzMXlExsagFLkTjIl1RvmqO0dVBflXTs370vQBb2haKZARCjcs8hrY6e4eMhq1 pQZUsVy7P3hdMSTqr8d08xfZRjmlyAZOg+byjDiyFLwbiVrG1CkqHfkyY4loPHDKbsM4 QwDO7V8LRsCP/b/9mZd3nJksF/8/upW/M9S4Sj7b0zxoWns4Dxvn5F76G9GmGuORoWj4 wt5bGSy31Cp0wOXQcC1EmfqlBjtMKLRlC4hvhvJWMG2iGqQySEjq1twAqKBd4L8lPsKR h/9/nq3jG4mRUedbHmibp4V3Yr9vpkWOKUj9whxt+3GfZKCYbtxDoG2KgUpoRLkPJFfY Udkw== X-Gm-Message-State: AOAM531vL0PoaB7I7/UJaoTbHiiOtyUh5y63X8k1Vu3nbm6iqfOD8Flj D7mAOkrfPmN8Y0xJLHeYMUpHhoEoMzfKwQ== X-Google-Smtp-Source: ABdhPJy85Spytl/i6PeirqtUM6MrKVUT1k0/d4nducJpU76Bk9IVTbXQxMSWAjzTli8i6bkLzUSCpA== X-Received: by 2002:a05:6402:270b:: with SMTP id y11mr40183267edd.377.1636199462338; Sat, 06 Nov 2021 04:51:02 -0700 (PDT) Received: from mail-ed1-f43.google.com (mail-ed1-f43.google.com. [209.85.208.43]) by smtp.gmail.com with ESMTPSA id q2sm5401790eje.118.2021.11.06.04.51.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 06 Nov 2021 04:51:01 -0700 (PDT) Received: by mail-ed1-f43.google.com with SMTP id r12so42340033edt.6; Sat, 06 Nov 2021 04:51:01 -0700 (PDT) X-Received: by 2002:a17:907:a411:: with SMTP id sg17mr55056219ejc.84.1636199461626; Sat, 06 Nov 2021 04:51:01 -0700 (PDT) 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 References: <0e6b860a-9dc3-8fb2-ff97-24ee253903a7@FreeBSD.org> <20211105083358.3oouronegwlwpbwj@aniel.nours.eu> In-Reply-To: <20211105083358.3oouronegwlwpbwj@aniel.nours.eu> From: Luca Pizzamiglio Date: Sat, 6 Nov 2021 12:50:35 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: poudriere's check_leftovers and update-mime-database To: Baptiste Daroussin Cc: Bryan Drewery , FreeBSD Ports mailing list Content-Type: multipart/alternative; boundary="000000000000b12a2305d01d5fa2" X-Rspamd-Queue-Id: 4HmbLH2Cwnz3rnT X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of lucapizzamiglio@gmail.com designates 209.85.208.42 as permitted sender) smtp.mailfrom=lucapizzamiglio@gmail.com X-Spamd-Result: default: False [-1.00 / 15.00]; ARC_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17:c]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; DMARC_NA(0.00)[freebsd.org]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_SPAM_SHORT(1.00)[1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCVD_COUNT_THREE(0.00)[4]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; TO_DN_ALL(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[209.85.208.42:from,209.85.208.43:received]; FORGED_SENDER(0.30)[pizzamig@freebsd.org,lucapizzamiglio@gmail.com]; RWL_MAILSPIKE_POSSIBLE(0.00)[209.85.208.42:from]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; TAGGED_FROM(0.00)[]; FROM_NEQ_ENVFROM(0.00)[pizzamig@freebsd.org,lucapizzamiglio@gmail.com] X-ThisMailContainsUnwantedMimeParts: Y --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 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--