From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6592507174472122368 X-Received: by 2002:a50:ac45:: with SMTP id w5-v6mr3335356edc.4.1534939137224; Wed, 22 Aug 2018 04:58:57 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a50:8825:: with SMTP id b34-v6ls675606edb.8.gmail; Wed, 22 Aug 2018 04:58:56 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaoFRp1OXtT/xFGNbMhPt5PhyFzzNXM4bGfwuk1B4I9S8y7fDtEy7yrsO3uPAkUC4t9+sqG X-Received: by 2002:aa7:c4d0:: with SMTP id p16-v6mr2001710edr.10.1534939136820; Wed, 22 Aug 2018 04:58:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534939136; cv=none; d=google.com; s=arc-20160816; b=O7cwjsXyLoMi3m++wCyA7jtfwHn3jrgNRVogBMi1VARxqDJ/eRkFSGgEFK2PcvUBtF 0ZbB+sXsQeWlnSTLx3uzm075DHYRy77xsJVRKNSnz1X4FxPVkOScqwqHJcRE/3hztDrj Cu1huJgPb3td64Gz9QzqWbVemOCy7ReO0ni9T/wAmdfzO+SQ41hyxKU+IqJJgoQYYdW+ QDuGzvZOF2eFc9uWj6FS7tpyN4S+J5sxMLO+/iRxtDe2wOXmrzlx2vF762voQBV4xn0L F9CPL45PEclrvUZxjeKQNUYAomx+WqcbErSSQmBfh1vDvcDrakSKPlpAEf/QVwH3DVHl PUsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:to:subject :arc-authentication-results; bh=CH/UbpGXbVJw+CIt65BQ0X3BorXK6gTqSfTJja11Pt8=; b=dsY6841abBifc/8uUS/AwlzPzCEC9K8+nyC7NquysDNr5EwwoOcE0W72a6OIfaTW/Y VmqyXDcc9226K7/Ni5T3Neo9oX9d5n9dmCnXfpOHKUy7xv+k0cPKpis+CkwjPDNaDbSY GARMFu1F81zk4f8XYJvtdpOCtRSvoHUO34W4CqRP1/JBNNGXlEh1QUw4aMnDo6I9yP0e jgQFC1I32b7kpMQbnzFAXqskzQd2bCFaAtW63+CsPqORCF6WZ56Zd3lQlPjcZkXxSiA0 y+itX8FwDfKUbOSFBIu3cvQ3dB+OiHZJ4aZxth8JN0QJg6I9SwqE8SCkDY8Y8Y1z36hU nsMg== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: best guess record for domain of asmirnov@ilbers.de designates 85.214.62.211 as permitted sender) smtp.mailfrom=asmirnov@ilbers.de Return-Path: Received: from aqmola.ilbers.de (aqmola.ilbers.de. [85.214.62.211]) by gmr-mx.google.com with ESMTPS id o55-v6si91216edo.3.2018.08.22.04.58.56 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 22 Aug 2018 04:58:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of asmirnov@ilbers.de designates 85.214.62.211 as permitted sender) client-ip=85.214.62.211; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: best guess record for domain of asmirnov@ilbers.de designates 85.214.62.211 as permitted sender) smtp.mailfrom=asmirnov@ilbers.de Received: from [10.0.2.15] ([84.47.189.78]) (authenticated bits=0) by aqmola.ilbers.de (8.14.4/8.14.4/Debian-4+deb7u1) with ESMTP id w7MBwrDT026543 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Wed, 22 Aug 2018 13:58:55 +0200 Subject: Re: [PATCH 0/1] acquire database lock when calling reprepro To: Cedric Hombourger , isar-users@googlegroups.com References: <1534937676-7628-1-git-send-email-Cedric_Hombourger@mentor.com> From: Alexander Smirnov Message-ID: <78647c3f-1b7e-8bc2-5fc9-e8b30769a1f1@ilbers.de> Date: Wed, 22 Aug 2018 14:58:48 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <1534937676-7628-1-git-send-email-Cedric_Hombourger@mentor.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: wf4PAK5KI5Yq Hi, On 22.08.2018 14:34, Cedric Hombourger wrote: > 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. > Have you observed any issues with current implementation? IIRC reprepro has it's own built-in lock file. Alex > 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(-) >