From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6655307462908837888 X-Received: by 2002:a19:a411:: with SMTP id q17mr1144632lfc.10.1549559520837; Thu, 07 Feb 2019 09:12:00 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a2e:90ce:: with SMTP id o14-v6ls386196ljg.11.gmail; Thu, 07 Feb 2019 09:12:00 -0800 (PST) X-Google-Smtp-Source: AHgI3IasVucwZFVSD6IldoUNHaVeMp31ec1ZOARFsKRt/OcxZuGWj+4xaW0BObFWh8cR3Ou2jNGz X-Received: by 2002:a2e:7f12:: with SMTP id a18-v6mr1149840ljd.2.1549559520302; Thu, 07 Feb 2019 09:12:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549559520; cv=none; d=google.com; s=arc-20160816; b=W5nuo0m4TGarMtzWB3yZJq4ck4LUrh0wyDNO6fv+uES6NWhsgWuvd377GWTZE7uUDx 712Orw/M4KHTHVO6TWJM7rpq24T0AWI3USwDap25IkE6kdw1GGQCngFuhdu/9puvif4o 9iFy+gGQIs9EGxIpZFkhSF4apbzN53fp/aBUme6Tw+fEn4XL2vIVJmSD7raZLbUIkmW/ pUpis312RYQwWHCF3k7kS4vDM5YfZ5OS7044Q4EMf6Jro8m3Txl+mpVjUJbIvuNDlLp/ CM5WLPCr//gqQnVEuZQ+18jw5X6FrSGia72UJeMYRj56LIxv9uihBtKoriHgUDmIAtwd RFDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:message-id:date:subject:cc:to:from; bh=E3TrUTG14SlUstZIWt5Ra+XVeb5Nt09FiMdXLPsdwoc=; b=VHFxV+wRjUJAowxHd7XIQ+JQKUcOGYrFIlbq3updU21htOQx20xuIDzZSDO2wD/ZeB +crvcfFuejvRjqsC7dephFD/GL83QvyFaB6ObHx2d6EwjkzMkVhJxwvQkGjatswGnmgi I49r1cQxjvWttiP44RHsZCB3YBHN+oInhcq3z52ozl3bs6VDl70WCMbbkspYeA1UGrS4 CvAkOqTrSo/mo2BobBNVCaDafH2OJgSmCCnHkKIIawItRHj4XZ8ulDt5VDDc8vFOnMLs xXfFDSy6GskdR99JERykZ4F9aD+BSYAJBRvqfrzOf51yRpE7fiCzPjmqa73iHZmooemu h4bQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of cedric_hombourger@mentor.com designates 192.94.38.131 as permitted sender) smtp.mailfrom=Cedric_Hombourger@mentor.com Return-Path: Received: from relay1.mentorg.com (relay1.mentorg.com. [192.94.38.131]) by gmr-mx.google.com with ESMTPS id m4si146757lfh.1.2019.02.07.09.12.00 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Feb 2019 09:12:00 -0800 (PST) Received-SPF: pass (google.com: domain of cedric_hombourger@mentor.com designates 192.94.38.131 as permitted sender) client-ip=192.94.38.131; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of cedric_hombourger@mentor.com designates 192.94.38.131 as permitted sender) smtp.mailfrom=Cedric_Hombourger@mentor.com Received: from nat-ies.mentorg.com ([192.94.31.2] helo=svr-ies-mbx-02.mgc.mentorg.com) by relay1.mentorg.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-SHA384:256) id 1grnDS-00021V-GU from Cedric_Hombourger@mentor.com for isar-users@googlegroups.com; Thu, 07 Feb 2019 09:11:58 -0800 Received: from FRG-W10-HOMBOUR.world.mentorg.com (137.202.0.90) by svr-ies-mbx-02.mgc.mentorg.com (139.181.222.2) with Microsoft SMTP Server (TLS) id 15.0.1320.4; Thu, 7 Feb 2019 17:11:46 +0000 From: Cedric Hombourger To: CC: Cedric Hombourger Subject: [PATCH] image: acquire lock when running do_cache_base_repo() Date: Thu, 7 Feb 2019 18:10:56 +0100 Message-ID: <1549559456-916-1-git-send-email-Cedric_Hombourger@mentor.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: SVR-IES-MBX-04.mgc.mentorg.com (139.181.222.4) To svr-ies-mbx-02.mgc.mentorg.com (139.181.222.2) X-TUID: XQXvqbmw23jL The base repository gets updated as images are built. As multiple images may be built concurrently, accesses to the base cache repo should be serialized by having do_cache_base_repo acquire the following lock file: ${REPO_BASE_DIR}/isar.lock Fixes: https://groups.google.com/forum/#!topic/isar-users/ElRP1h_9m9I Signed-off-by: Cedric Hombourger --- meta/classes/image.bbclass | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index d8fbfd5..be00817 100644 --- a/meta/classes/image.bbclass +++ b/meta/classes/image.bbclass @@ -128,6 +128,7 @@ addtask populate_sdk after do_rootfs inherit base-apt-helper do_cache_base_repo[depends] = "base-apt:do_cache_config" +do_cache_base_repo[lockfiles] = "${REPO_BASE_DIR}/isar.lock" do_cache_base_repo[stamp-extra-info] = "${MACHINE}-${DISTRO}" do_cache_base_repo() { -- 2.11.0