From patchwork Wed Jan 4 19:46:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Roberto A. Foglietta" X-Patchwork-Id: 2403 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Wed, 04 Jan 2023 20:47:00 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-wm1-f58.google.com (mail-wm1-f58.google.com [209.85.128.58]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 304Jl0q6004696 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 4 Jan 2023 20:47:00 +0100 Received: by mail-wm1-f58.google.com with SMTP id i7-20020a05600c354700b003d62131fe46sf22234627wmq.5; Wed, 04 Jan 2023 11:47:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1672861615; cv=pass; d=google.com; s=arc-20160816; b=nDKqpKGdT7TGSNXCEcuopl5l3Lh7wCp9Kq3wMMd5tFMln46qvbMHbIEyUIg1LrEnqS cSSghsOi6+m/sKjTobmjxdK9luWo7k9aIpH2vocLIQn4z+pQX8sa7ZahanijwZPDjTTF DPLab7mYr3fa8+O7PMWp2xSCuoT1ljVEbs5vDJnKOqGQfBhw9RsI2PCR9t8AyoeKDOnu V59t8EkutZf+yzuZlvLs5A6lNs0zXOXekXILLKVNtGdVxgF7ZzuUNKvxSlMLOCK6yEJ8 aQ5WnNrf8gdyDaK5KtpwXaKOdx1fzu97OQksc5UMNbMxMTe8iRhjVToxaF2KyHek51xO +xxg== 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:message-id:date :subject:cc:to:from:sender:dkim-signature; bh=M2Fifn8kHx9G+hi3OIkZ+ASNrYf4RtUzz1uOEkx1aPM=; b=zuJ+gS5ddmnJIfdvlPbODqgkBpS4WqOVq0tprqt6EOuycjcQTELzzgjy6dtuQDIDOW aCK6W2DPeZIVZgwpcRGks6EEECeM8SEmuamNGqq4SmjdtzL0DCdzTbw/KjzswZ0AOyaa LwBrIGGLx/D6VrU9/HR+xaUlX07y5ztfyetk4ucezPTESBt6qyyWIFROIO508wsS/z2f 4mvaSzp7P9NQXDJEgTETypLTKDCySWwcSJUyyyc2RJyzyI49rQd6MhLE/IFXQxSHbCIP Q8yNo/DGzKTzqDiTsBvedITJlMo0GtB8Y8RCQnH5B7jKvYMSGyrJm1njbvTN258Cd28p HKtA== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=softfail (google.com: domain of transitioning roberto.foglietta@gmail.com does not designate 2001:4b7a:2000:18::166 as permitted sender) smtp.mailfrom=roberto.foglietta@gmail.com; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:message-id:date:subject:cc:to:from :sender:from:to:cc:subject:date:message-id:reply-to; bh=M2Fifn8kHx9G+hi3OIkZ+ASNrYf4RtUzz1uOEkx1aPM=; b=FKVuPv13IT8mn7JY2qSgPqU71JgxxhiUFCxtGC21wHV9DxXmVVgST6edmvjpTFLr6R 9Hda5ntMAILp/+Oh5uqaZ9bcuSHJ54Rh1TU86Q7AHPPXCOjWg4qvvqjq9JYptiohqRgj /aKwjZEZWItpConPTK34CiPOAQiDHp0r9FUCq9LDRrBUOeeuXRgopL1DGj7j2Nhcm6CO +lMEZUYrSzxYKC5+fq0DMiuhHE8T7ovHk+vFvjMPWwVW8i1WGuDTPq8zFmK+dkTAUnEB CAm1LvHdYMAE5V8DLbyE0+mQIKFzzSEzEhniR+I9snlrbSmvNgRtCHN7/qPWASMqlY5B P6fA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :message-id:date:subject:cc:to:from:x-gm-message-state:sender:from :to:cc:subject:date:message-id:reply-to; bh=M2Fifn8kHx9G+hi3OIkZ+ASNrYf4RtUzz1uOEkx1aPM=; b=VpGAzkXoOVWTt7FQrJnSqNeTsETAJIKqSWxuFaeN7LfCUeuEDQvIIrtb+QFz9Kyw4a yNs0+f228Ac3m174JDUcvKaKKlIEzmAaYEDgFjSSS22LSZxviymKS0BQrP1zvpIpy48F 2bfmNV5UDTGJyVEf7j+W+UAbF424ZKEMbeqTEjNSmusYAEKmGdbvSzF2SIE+xbSZV2M8 M8eGJMBBtbac/uMWo82AeCSUuDGWXOQMzPM8v7TlLe513iJuLqyJ5zJY1R9dhVl2VyYC R4zf6hqZJveroGMs22lbybWBvHXXFgVQ7JTFJYVl3v+O5PdqHI5JkOLAQywSz9IPLfwN MF6Q== Sender: isar-users@googlegroups.com X-Gm-Message-State: AFqh2kp+0/5vlCmYBjXibfUik/VqIVq8fWButXGo/rbM3C4G+isSQ/W1 SuyKrmurN/UX8gsjxliqzPY= X-Google-Smtp-Source: AMrXdXtacKwOLLUlkkPbiZqQdpFADAu6UoiaeXDJWC3JdFilTwD60Sn5uyOHsYxAf2fZr7nwY+JC1g== X-Received: by 2002:a05:600c:15cb:b0:3d2:1fe3:757c with SMTP id v11-20020a05600c15cb00b003d21fe3757cmr3514643wmf.35.1672861614797; Wed, 04 Jan 2023 11:46:54 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:6000:251:b0:269:604b:a0dd with SMTP id m17-20020a056000025100b00269604ba0ddls1560361wrz.0.-pod-prod-gmail; Wed, 04 Jan 2023 11:46:53 -0800 (PST) X-Received: by 2002:adf:eb0e:0:b0:26b:bea1:f6d0 with SMTP id s14-20020adfeb0e000000b0026bbea1f6d0mr27724866wrn.56.1672861613748; Wed, 04 Jan 2023 11:46:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672861613; cv=none; d=google.com; s=arc-20160816; b=0YQLSfOEi30ZmoMFMt5GZEyT7ewQJfn/yHOkXKZEIlh1pSttirygadYpuegiv1RnYf f3Uk+Hc94e5//R4Uta3VPyc5pwMv+tjPGCVw+/E/XnKc5Nsjv4HUEf3VqPWbfS/2EsxQ bbjr3WHDRUYlIAP+iU7jSKW9MWTjavxq/65J1rpHhzMiYDpPxRV01lJWQFlvFvT2r+Ps anLmjYj/XdhPJYKx/w+yEfiHN/HGjfSil/fER1rUkSwB5M+RPKRhrd0MX0sN+ixNPBNg 3J4f0M7xrSNMAVNAs6piPPLFgEmtU6zQPMGQwYGWxrHRwA1dcHdXYRBSy923qptZYGs/ UVHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from; bh=64+PMs0KG7QewARgDu/X2h3vJXxIQKEkiKwO/7pSk+E=; b=oFgiFrLz+oMIegVejnvJe4c5e579M42QlLBK6nygSc46Dc2MR38OIkIZaKaaA4+u0n tAXm62JBWBj1CiHvxUopQGMdWRRX6WJljjqUxam9GasFCMBCrzOmYr4TT9qSN8e0QerO UIW12BmjNQSOg8o1Aikc+XBhQPsUoMRnAZiESxYUeHOe6AmPFS3ELcITSNGjq+QBUfcP yXT941N+rHEAwYG1eOUtQvuiQRF4UhQF8vpkA3JQqrNYT6eGq2CqXETQr07xHw8yHr9q 9oNOUZLuayHzyW7tGi+KW9tujpwG0yLxcRUu2qIByVLr/4w245lAXm4vod6DeqThQNWm Q9hw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=softfail (google.com: domain of transitioning roberto.foglietta@gmail.com does not designate 2001:4b7a:2000:18::166 as permitted sender) smtp.mailfrom=roberto.foglietta@gmail.com; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from relay05.th.seeweb.it (relay05.th.seeweb.it. [2001:4b7a:2000:18::166]) by gmr-mx.google.com with ESMTPS id u5-20020a056000038500b0029c9b8d8aafsi260218wrf.6.2023.01.04.11.46.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Jan 2023 11:46:53 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning roberto.foglietta@gmail.com does not designate 2001:4b7a:2000:18::166 as permitted sender) client-ip=2001:4b7a:2000:18::166; Received: from localhost.localdomain (unknown [IPv6:2a02:8071:3187:7b80:dc79:e5b2:61ea:2695]) by m-r2.th.seeweb.it (Postfix) with ESMTPA id 01E2B3F325; Wed, 4 Jan 2023 20:46:52 +0100 (CET) From: roberto.foglietta@gmail.com To: isar-users@googlegroups.com Cc: roberto.foglietta@gmail.com Subject: [PATCH v2] rootfs class lock undefined in corner cases fix Date: Wed, 4 Jan 2023 20:46:46 +0100 Message-Id: <20230104194646.2545099-1-roberto.foglietta@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Original-Sender: roberto.foglietta@gmail.com X-Original-Authentication-Results: gmr-mx.google.com; spf=softfail (google.com: domain of transitioning roberto.foglietta@gmail.com does not designate 2001:4b7a:2000:18::166 as permitted sender) smtp.mailfrom=roberto.foglietta@gmail.com; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= From: "Roberto A. Foglietta" rootfs class lock undefined in corner cases fix Signed-off-by: Roberto A. Foglietta --- meta/classes/rootfs.bbclass | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/meta/classes/rootfs.bbclass b/meta/classes/rootfs.bbclass index b3faade..63735d4 100644 --- a/meta/classes/rootfs.bbclass +++ b/meta/classes/rootfs.bbclass @@ -198,11 +198,14 @@ python do_rootfs_install() { if (d.getVarFlag(cmd, 'isar-apt-lock') or "") == "acquire-before": lock = bb.utils.lockfile(d.getVar("REPO_ISAR_DIR") + "/isar.lock", shared=True) + else: + lock = "" bb.build.exec_func(cmd, d) if (d.getVarFlag(cmd, 'isar-apt-lock') or "") == "release-after": - bb.utils.unlockfile(lock) + if (lock != ""): + bb.utils.unlockfile(lock) progress_reporter.finish() } addtask rootfs_install before do_rootfs_postprocess after do_unpack