From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6592507174472122368 X-Received: by 2002:aca:e045:: with SMTP id x66-v6mr33583707oig.13.1534937688708; Wed, 22 Aug 2018 04:34:48 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:aca:d804:: with SMTP id p4-v6ls587668oig.15.gmail; Wed, 22 Aug 2018 04:34:48 -0700 (PDT) X-Google-Smtp-Source: AA+uWPwytXJ0AUqLskWboIiuoDiVYgZvdh58V++DJwYWx2hjVKy8JrZ1h/0IKD3BlsmU3nS3DnL0 X-Received: by 2002:aca:e105:: with SMTP id y5-v6mr30916841oig.74.1534937688431; Wed, 22 Aug 2018 04:34:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534937688; cv=none; d=google.com; s=arc-20160816; b=GtxvOjgQc8gt8SUwWfjNPqw6CBY540g9+hKPC3N/y/x1boiCt65fEQN9W4B/RefgMb 78RX2GLr9pjyAfP6GkX9wwcH3P3t6MkggZIhCsMlSKFb8o7lbYeVnSwfYcjFu9a+0CoB jftt4ulDi9RaJZd/oJO79gFtiaSNlk/fIXcQLAXlI5cn3Yr3VQNfkdv8pJmUXDNwbCMD jo29Fa90R8wdUUKJIEuCu7hiFEXRCPWHfWgBAzNHP/Rbusx4PGXymaK53O91vwAQqhZA lshqeApLxveqX//9y/bijJ+Dur1/JlZL/hV1TcuwDGswiTfZgpnCHedYX8AhGH6s9Ka+ 3a9w== 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 :arc-authentication-results; bh=xPYdIbVv18j850WZN1rEpXtwudrk17XsSWmvHBMr+24=; b=saDI3+Ohy4MHWuiy67EkNQgS0rqaF6GLZ6GeGunUcj4VUZcDwH0HcefH9dVqtXAi3g obkDJTTkmUp3oIR39deGb+z76+MCuFOssjEkGpcDI25pzZ62jOLRQBoePceb88AivHTp JgAo8phUDAd96cIii31jHnxb9FZfNOK5XkmHGrzOi/XcXAsG6LY8JUC4hq5pO54UxEEL 6Zd47cZxtVd6w7HXtljNuq76v1ntl0DPHSuXuQlCiuj8K0wwmiDsI1kLzKwvqFzUjXd3 d3hvSlRi268rFnqATkb3XbSzAqCpTJgyCNdRMqD++QvhNGveJ8wecforaGEVdMi+SsTv /xow== 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 s125-v6si33509oih.3.2018.08.22.04.34.48 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 22 Aug 2018 04:34:48 -0700 (PDT) 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 1fsRPT-0000Za-IH from Cedric_Hombourger@mentor.com for isar-users@googlegroups.com; Wed, 22 Aug 2018 04:34:47 -0700 Received: from FRG-W10-HOMBOUR.world.mentorg.com (137.202.0.87) by svr-ies-mbx-02.mgc.mentorg.com (139.181.222.2) with Microsoft SMTP Server (TLS) id 15.0.1320.4; Wed, 22 Aug 2018 12:34:43 +0100 From: Cedric Hombourger To: CC: Cedric Hombourger Subject: [PATCH 0/1] acquire database lock when calling reprepro Date: Wed, 22 Aug 2018 13:34:35 +0200 Message-ID: <1534937676-7628-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.87] X-ClientProxiedBy: svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) To svr-ies-mbx-02.mgc.mentorg.com (139.181.222.2) X-TUID: WPU8X7TV3faD As bitbake performs multi-threaded builds, packages may be built while others get deployed. A lock was already acquired within dpkg_runbuild but accesses to the isar-apt database were not protected from do_deploy_deb. Move the lock from the buildchroot to the isar-apt repository and acquire the (same) lock from dpkg_runbuild, repo_clean and do_deploy_deb. Cedric Hombourger (1): dpkg: acquire lock when calling reprepro meta/classes/dpkg-base.bbclass | 8 ++++++-- meta/recipes-devtools/buildchroot/files/build.sh | 2 +- meta/recipes-kernel/linux/files/build-kernel.sh | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) -- 2.11.0