From patchwork Wed Jan 4 18:56:04 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: 2402 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 19:56:16 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-pl1-f184.google.com (mail-pl1-f184.google.com [209.85.214.184]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 304IuEvL004526 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 4 Jan 2023 19:56:15 +0100 Received: by mail-pl1-f184.google.com with SMTP id h2-20020a170902f54200b0018e56572a4esf24210975plf.9; Wed, 04 Jan 2023 10:56:15 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1672858569; cv=pass; d=google.com; s=arc-20160816; b=NC9x59uFfpV0T0tk5y3QAid8JOZG7N4Tp6A3SxrTH8+5ZCS4FVS+H2W/ZCtrFSC39x YsmJQ/SHMs5LzJmTCrvFnM6vvsMREIWOyF6sDwhgOjRAK1bYhbykO9Bp5zWkiGS6SjdJ q4FluYRiX+G2ca0zVheuzUzAtoqxUX1dqZKjllDsa66EBCvGse760AhCftEGpAWdQ+J4 ggvf+XjDF9HLLyaa0XwVmozhZQggFlnCOA2kKFaX3etcMzJRSFqAwufdXK9a49vfcgI2 jt5imXQMBAI5dn9TC4BfD/IBh1RpR/xJjVZaCU0kGfkIY60IfchQ1vwrHzxcBh3iLPmi Rs7g== 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=Liod3t+XGRxu645U4wobrLc/sFQxDQrOavqEOLNubH4=; b=FsG1+QIjZDhl9rBVcaRXVi9i0VgXyUQL9mGJtv4S1j20QaIx08iBEPd5G6/uIH8Ruk 0M4KPTLf5aNnv0ybq9u7f6SmO8Gc1LlcpKXzQ9snPycYWhitZaMHkErz6IE4tZbTNQ1g JDTPdIyxQb/XpvfPkZ+o8ch1ncsBcNi50VgOASEVpCR7Pj1G0+fUELLYGQf+CNcXMiPe YZdW/Kb3fLDk8WSh82S0CgCh+YbYmBWDg2NDVI4AUyOgcFeBphA5BVua2mn/uW9wBZbO zgFLD1qgwf5z3xI4vKBGMMxC92WIhxhpPqlaSIlfjIJhDbZpTfuzyep9J335gDg5K7za nrkA== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=softfail (google.com: domain of transitioning roberto.foglietta@gmail.com does not designate 5.144.164.167 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=Liod3t+XGRxu645U4wobrLc/sFQxDQrOavqEOLNubH4=; b=Fv1tjgSqFTy/22LiuvCRurS3b69xRVbBZ7gsFT2+3285pBLfS/4GGYgPJj789achqM 2J9zhIlrqkBT0QazefCPZNuYSZi8OTTTPz1V+ZDo3pSK8Wz1KyuaSB+AD6TBqxyEojg6 JRA0VYh1oYJKSypAS3JXuAb8Ehn81ZulAEcjmNlOKZKHi/Su9TLIeH9c2GEG+EidcO+Z ybRxT71kwUpdq7hlwanpkLs3zTg5lPaYOOYpj4XHhUccAfoPGzqmiqWPbBl/QdbsGwpt y2GVKvwz0w2+hWCXGfaESozeDum/I8A/VkUO8J15fJcRb+UPmyxOOseuprSqC0lY2ZC+ lpOg== 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=Liod3t+XGRxu645U4wobrLc/sFQxDQrOavqEOLNubH4=; b=nTJiJFRXXuF22FpuflaCuNlIb/HgUBwPBngxoVaBLfUdQV5rt/Clp5ufdM+drU2ekW dDLfvq2iIQLNtTNaVaMD/k+IBmvjaitdx1sNSb41coxpUvyhlfZekkml6jPSphDlNXd7 g2wjm8OxQQN4OQrQSHZTbst4FxlVbNDoOSDyDiM2zi9Eobke5NHtezxne2qPTpBi4te0 +AmnM797bs8RpxVNQsdx6yT/YjfcJl0gIzsCXHPcrBqpQjJD3OlgpXM6vHE6sonEpHcQ VdfLDH2/Fpmy7BUJlfI9/KQyCehpxOYl4jeTNi0aZrjpe7F+flPo/jrkGbbiBVwsl/Vr KskQ== Sender: isar-users@googlegroups.com X-Gm-Message-State: AFqh2kry0WGI0rtJhVgIrhKW5fd8EXqN3OlI1/waBtrsOFLEeI93Najo QotbyxeDte2vNtZ8ysqvFVE= X-Google-Smtp-Source: AMrXdXtFy1tFzgNPyVt/4uK0EGh5ioyDXPUAvgxuuB4bgTAvLGdPnMf2Gd2VM24rRz27P9MDSfGdsQ== X-Received: by 2002:a17:902:d195:b0:192:f6d0:6020 with SMTP id m21-20020a170902d19500b00192f6d06020mr148856plb.144.1672858569182; Wed, 04 Jan 2023 10:56:09 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a17:902:e0d4:b0:178:5938:29de with SMTP id e20-20020a170902e0d400b00178593829dels35410911pla.2.-pod-prod-gmail; Wed, 04 Jan 2023 10:56:08 -0800 (PST) X-Received: by 2002:a17:90a:b28d:b0:226:3a18:177e with SMTP id c13-20020a17090ab28d00b002263a18177emr2027879pjr.16.1672858568500; Wed, 04 Jan 2023 10:56:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672858568; cv=none; d=google.com; s=arc-20160816; b=gRyFKI1ArEGW1zCr2tJjtc7qCUm27wnq3+9vGGRuVgGlpxwkfEaOJ7ITVcr8Pd6eo8 3Y0Hi0TTwfA1f9JclwHV0YEUbC17zLBHS0uDs/ZPutzxLB+lhkH1bI1AyJ3cH16gLyW6 OvCPpbV1czhDDQYpWQDrO6mA+/AogV+NyfXpR8KGGRixTX3K/nSlyapHfqSwEN/RNfeA nNVXHrYmiz3XF2EO6UwadB01QpuEiq78c9wzm6IQ1xwRqRe/we++ZUH/Bqe1BE4fVZ61 /DQtSemOK24A8SEVFS/xRvhUO8snGAUQPzdVl0TVRG/1FEzCN4ZDvc8v2gTqXy1ocxFF ttSw== 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=Yp6MGIc7RoDOSwXA/s9gyq36bnFV0F27nQFFmKQgsTw=; b=zd8M58wYhJbHommzsibnFMn/VvwBMT8sLMRz2b8anZfnZ/TtBQD2QwXTdRT2DScJta CtbmEhxXJjAt54U+SdQexpS392jd1rSag52yg7S+hhL/od2igWh7Pgg43OpQW6ATb16W 93PLqfs3UwNWwf1SAHxnw8uWCqgRVem9mCYYgq5kuuazlrBFcNgqC9oxV5o+NB78SGut SdsqXNuBj6WzQ8I1iW/PAPPcOtLtNdiSWA8vL51XX3MuiRkrjQ/ZgD/G0XZFCFNGEQYd dFrRrBwML1rQqJPegQv+CC5xxk67LHOfiLqOHyGC6ib5V4adR+aY29fFuxLfnJ0pGopc ULkQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=softfail (google.com: domain of transitioning roberto.foglietta@gmail.com does not designate 5.144.164.167 as permitted sender) smtp.mailfrom=roberto.foglietta@gmail.com; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from relay06.th.seeweb.it (relay06.th.seeweb.it. [5.144.164.167]) by gmr-mx.google.com with ESMTPS id lk17-20020a17090b33d100b00225d1f5fec3si1980385pjb.0.2023.01.04.10.56.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Jan 2023 10:56:08 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning roberto.foglietta@gmail.com does not designate 5.144.164.167 as permitted sender) client-ip=5.144.164.167; Received: from localhost.localdomain (unknown [IPv6:2a02:8071:3187:7b80:9b45:8d31:fe60:a301]) by m-r2.th.seeweb.it (Postfix) with ESMTPA id 930F53F3E6; Wed, 4 Jan 2023 19:56:06 +0100 (CET) From: roberto.foglietta@gmail.com To: isar-users@googlegroups.com Cc: roberto.foglietta@gmail.com Subject: [PATCH] rootfs class lock undefined in corner cases fix Date: Wed, 4 Jan 2023 19:56:04 +0100 Message-Id: <20230104185604.2542129-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 5.144.164.167 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_H3,RCVD_IN_MSPIKE_WL,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" 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