From patchwork Thu Feb 24 21:40:36 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Mikanovich X-Patchwork-Id: 1530 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3) with LMTPA; Fri, 25 Feb 2022 08:40:58 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-lj1-f189.google.com (mail-lj1-f189.google.com [209.85.208.189]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8) with ESMTPS id 21P7evPi001575 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 25 Feb 2022 08:40:57 +0100 Received: by mail-lj1-f189.google.com with SMTP id 185-20020a2e05c2000000b002463aff775asf2207641ljf.17 for ; Thu, 24 Feb 2022 23:40:57 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1645774852; cv=pass; d=google.com; s=arc-20160816; b=FxLUTeuq9BB4rMkE20grFxCODcpI2eFVKyiyTTXNzXeDNoA55wtEeUzHz6XRfwlT2I tz+o8nRfMKXdy+DwbfDj514999ssNgU0F+87leinJitm7gx/LNfWalXCg8uyShTR+vrY Vrk6iklUpXCasAVTNv9hsracv9Tn8BBMdQlA513bFxSLShtQFBecrKWOYm5papff8ykx DG94Y+7fs7gqumdA4ukoavx7A47azCvc5XNmFAShLtqFiY6KdnG7SkaDLZd/TQf3cFQe U9F95eP8cQospZzEdA6CzYg4eeM4Q6bybhO9Jw9vV12JPAJ/6ePb5X+mQT0MbBp4PUe9 MkQA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:dkim-signature; bh=Ew0ShTDgxpPzu740gbUo1wWHajC17I7Qqs5zMnTogZw=; b=cfG7ohjoyfr5Yp1MTq0Ve5VGeoZo9wSGP4S2Je9IqYBs+/jtQbw0yEsOZaTGPTD939 zsUpun9ADKJmgrjpUIgsyi37MldObfpb+frQYnlKtoH/ccGs54eKggCvvhmeK51aaAEx f6jI7BvjykXoVq/BD+mTMhoVFuNfUFnstAaz2R74sbm3FduX7yQRcJdDWETz9g8ucQbP ttuloyAHZRGrnu3jvKNWL9uhgS/mZeQI+z4BthWjXQMuLU/pVh+G/y5l2OeepHIAwRV3 rabVEDEUppXern3Tvqkhox1fP60Fe16JAb6PAoLCtZxVdD2xRlIneF5eRCv9C9ooVj+v s2sA== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=amikan@ilbers.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=Ew0ShTDgxpPzu740gbUo1wWHajC17I7Qqs5zMnTogZw=; b=cnTnKWXFUwEKi3/Gy+GrLDNrZIfgAakOUkwMVC33WOYJMp/Trc7cvXc9k8PEelQynr dURCFoE3035/gUP04ZFp7LamtECEK4GuKBxNB9gQYxmpZ/GIokZ5O8t5l639ppyBq4uN wN/133kA3rGPD3tdMjxh/s+Z2k/oEVivdF0Xrb1HzgbYF1tOnkL0cBlbn0ZGMotlKzER m8m9BQExFc3sKBqGtM9M+wKHCLEekcEcctjCxSsFoGBNCUN5BlvWPrs68UiO/3pIaD5b tfI5mtL7JnMHpLxUnGVbaqLI6Kcf3C0hcIq9XnaidDasOysew7vS9xLfeDNAjlMH7p6H 0DPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=Ew0ShTDgxpPzu740gbUo1wWHajC17I7Qqs5zMnTogZw=; b=mOTXtFP3Oifk9R2Xe8DvUHskAzO1sNxOTmQ2VSZMSQBQs/Qn22mqpmNDnAZNq/r7Jj K07JT1YssiPLMWGdoQwSY4HutJeLMz+p7XjIQTuTPlfbW/WEBtKjk0pVYujsTRNl2X4M aSYucTpiDsAAIGH0DUn9dzw6EPYIlWsrRF7GAZ0ee3TnSZaxOdDrZ9BOUYPEyDf8OncO 1ofMLVYalnW2VXeELnc3CupwdlYxNeoh8eVGIINEaHheusDYCzc6yLEM5iobCc8Lp63c K39KEN83rKA0tjyamHD+Jc8gzBLq1mS0iTIm4U/3PJY7ULFs7l3S912dQULQ2P+zNNZK gIOQ== Sender: isar-users@googlegroups.com X-Gm-Message-State: AOAM532rOU6kn+KdV1bqhHQoruFn+gwCGHZvvTcLEvWa2dkK44DSCA7l DYVfaWpQFawqvS/355Hbvjo= X-Google-Smtp-Source: ABdhPJzrKZG7ylfpMQKeW2Ba/WvxPpwAh3YH7fdqxqdwue5v3vpTcpSbmzJEMVYYEMSh8PcrgvMM9w== X-Received: by 2002:a05:6512:3602:b0:443:739e:a3e7 with SMTP id f2-20020a056512360200b00443739ea3e7mr4034639lfs.516.1645774851949; Thu, 24 Feb 2022 23:40:51 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:6512:3b8e:b0:443:9610:6a0c with SMTP id g14-20020a0565123b8e00b0044396106a0cls1819778lfv.1.gmail; Thu, 24 Feb 2022 23:40:51 -0800 (PST) X-Received: by 2002:a05:6512:3147:b0:443:323d:179d with SMTP id s7-20020a056512314700b00443323d179dmr4295510lfi.98.1645774851026; Thu, 24 Feb 2022 23:40:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645774851; cv=none; d=google.com; s=arc-20160816; b=KA5qun0uKh2ch9Z9JkduDAJZyf8Kq9PuS99zOljaMt3n87XHN7GwP3tPWTPHmg+C6D /lV97AThZiBUqoDpilCujXI/fyFyWizUfnAeQKLe9ij1ydJMdWIc4VXVNdeqxA2X8y1y PQHoOdRACZucfH/qJwJ4mV32hocO+Go6eYS86ruoOVUpIAoj2hkYmzNQ/XzkOT6Kl3lN lQUL2i0SS5rZ2udsxVerCVb3vpyvaNoWs+M0RIcmQwLi62cNnD2WNXLp/G5XN4/7+Xf6 lqcu+zdvo0rXwnrBBAdtDa1k2+NMG2jvWIhXrM6J4ba9TyN9Bh6DfHPRpuYuR8hxj94K vYww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=nFcZJwCduE4Wk+sYDd/SAy5Mpp6iw8ho5zU2he7x17c=; b=svvgq58JsLnQzMPpVU4eToxzG3suN3gxiur3ESdKYr6PlUY7BlK2oiBQy0OkEnjItG o6Tg4iRro5WdNG1Q1PiCK2DadXoJNzhPYwiWOINvfWjbsbiH8ht9oXJwgfzuvelZHUp+ 1GbfR0+T86+anoAm25M5upZqtBnmJeeBoH1/+aLE+ds1hoZ+qXuMlGjcdRuIG3fot3TH OJT2nIvQ1hA1UmXjzKDttXq0NcfsnYpGIm4vQuSTqJI0pAKsmwIRrSV37tRQs72E+iKX e5CG0Q5LL7vy25YHrX1SHr7ZU8+gEYvP+M4hGTfEiV/R3AFldb4UYRgSf/L3y9Go3fRs e2rQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=amikan@ilbers.de Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id v12-20020a2e9f4c000000b002463b896be4si87239ljk.7.2022.02.24.23.40.50 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 24 Feb 2022 23:40:50 -0800 (PST) Received-SPF: pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Received: from localhost.localdomain (mm-5-27-214-37.mgts.dynamic.pppoe.byfly.by [37.214.27.5] (may be forged)) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8) with ESMTPSA id 21P7emqp001558 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 25 Feb 2022 08:40:50 +0100 From: Anton Mikanovich To: isar-users@googlegroups.com Cc: Anton Mikanovich Subject: [RFC 1/5] dpkg-base: Cover do_apt_unpack task by lock Date: Fri, 25 Feb 2022 10:40:36 +0300 Message-Id: <20220225074040.20975-2-amikan@ilbers.de> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220225074040.20975-1-amikan@ilbers.de> References: <20220225074040.20975-1-amikan@ilbers.de> MIME-Version: 1.0 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_MED, DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-Original-Sender: amikan@ilbers.de X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=amikan@ilbers.de Precedence: list Mailing-list: list isar-users@googlegroups.com; contact isar-users+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: isar-users@googlegroups.com X-Google-Group-Id: 914930254986 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-getmail-retrieved-from-mailbox: INBOX After moving apt-get call from lock-protected do_apt_fetch to the do_apt_unpack it should be also covered by isar.lock to avoid conflict. Signed-off-by: Anton Mikanovich --- meta/classes/dpkg-base.bbclass | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta/classes/dpkg-base.bbclass b/meta/classes/dpkg-base.bbclass index 928856a..e3ec133 100644 --- a/meta/classes/dpkg-base.bbclass +++ b/meta/classes/dpkg-base.bbclass @@ -142,6 +142,8 @@ do_apt_unpack() { dpkg_undo_mounts } +do_apt_unpack[lockfiles] += "${REPO_ISAR_DIR}/isar.lock" + addtask apt_unpack after do_apt_fetch before do_patch addtask cleanall_apt before do_cleanall