From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Wed, 10 Jun 2026 08:48:30 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-lj1-f191.google.com (mail-lj1-f191.google.com [209.85.208.191]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 65A6mSEL011035 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 10 Jun 2026 08:48:29 +0200 Received: by mail-lj1-f191.google.com with SMTP id 38308e7fff4ca-396703d77e4sf30020971fa.2 for ; Tue, 09 Jun 2026 23:48:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1781074103; cv=pass; d=google.com; s=arc-20240605; b=lxNWPRtzL5F62UxfOPj3CHyBfLzUR3w8IYj7b/8JR0pKzmayVvUlDK2hN38wmJOTD3 0aI5CnspCygAbKSjFtuTjTZW8n1YyqX/mukOjJTlXt8vdSiaMgHUHzUqxHLg3KS+DBWU KdOelTFioaWfuglX/8gHv0R75cnTJMusBY9GbzEDwr+6yF6KESlKWZEUD0mpncK9R4rr 0cbVeip9i7U2GDUWvDumOpR1YX4D0CtTSfSZkbu/tVwWTTlUWlTxxpNEQHoZwZN0Mso7 0fucQ+VUcVtrfGsTjBIy6CG+G1y/nWkuRMeSLlY27XfOMrGiYr9vN1KEFhElguoM7ZBa jlWQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:dkim-signature; bh=r3PiAxVLA39Ai38QykmqeVsQWGit55PZsK/Q6kGnwJM=; fh=m0QHQpjMMCppoUxDPxHcjZYgzBpOc8xo0VeWSA4CfwE=; b=MYYGO08/TYkLzrq8ktzUXrgOTkkqOXICyBwTVvvVUxrSD8hkSXm+5SQRvSbSCaiWOc YyfRRftJ6f6sMQ1Ra5h0HrfWiBqkDn2M5ZMPpoC6LZIz4egE8OhVZDXmQkbwgV68LVRu f+cwsH4aUps41ev/rKKjPbMnxfTZsistoYQj3LVsQD7X1w2yZjujv09HZqZaARQFPF6f aT6PIBvrsQfwjEgXDwzc1FvIW2I/sc4hCEcXzcj+xDmw7NZXzjiQeiXWItyiqE32c6QA x5YDRA/E4SAI1ms6w32g3jHsIIp9V02ww9aToV+OwmaEU0xySoudfisTCw9aQtDdyFL4 qg9A==; darn=ilbers.de ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=amikan@ilbers.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20251104; t=1781074103; x=1781678903; darn=ilbers.de; 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:references:in-reply-to:message-id :date:subject:cc:to:from:sender:from:to:cc:subject:date:message-id :reply-to; bh=r3PiAxVLA39Ai38QykmqeVsQWGit55PZsK/Q6kGnwJM=; b=ahVMIvdE7uuqsoTXjUgLGMmM/M3QJgoAtBuwBPdLDKmOcLqJuoWZd51H7iOX/jqJag zZHubnDSKbib5nDM/G8pjUumY3kFR2HpxdUAlDAUQqPfLICPhYrotYTa93m1y+0ivVf5 AkUqoJ1l5H7lJ6nOdynZk1JexM42IYENmuFpUVmwC1uLgAzqB314FjYVDVMl6DzsWYeA ukVh6CFiQV+DglaE83eFOUItflzQThN3+4aHQcQIS4ynDo7i84GTpA1CljWhj0KCONSp Zg7Rk8r0IDCxrjr3ZDBr/gX8kvEgAN8VVEqAJ2cONHPluQLKuoAOcZpslvpW23ra/zmb SmCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781074103; x=1781678903; 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 :references:in-reply-to:message-id:date:subject:cc:to:from :x-beenthere:x-gm-message-state:sender:from:to:cc:subject:date :message-id:reply-to; bh=r3PiAxVLA39Ai38QykmqeVsQWGit55PZsK/Q6kGnwJM=; b=fhL9H3A74dL//LjUTUuk62crp2Un61gaRqVG5K+79CM7oru4NfF3vP0IMriHQN6y17 Y68P7IhBDPhBQ7jps//nQkix1fEMChJYoup3bZ3EnRCDGfcHibu0bkLrk6pGKFbuPpLM FdGlSyxD0ruvbpfvkJ0rYzQ18OWmse8h8k9FLdDY552GunBnNWG18oX+gfDvCS6OTnLV J+TobmHZCe0AgxmBkdYQWcQQG+Yp6SOZBJlyTgdN/Kd2+cw+fLskqldHUrRypltoz2Nz pUCGO9adxFtjGCLb6J1SZMAIeHR2A6038BNpPPOLJfzOJ6euySlOt+WUXclIyvjb5bp0 g5xw== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AFNElJ/9RB3xkTeriW82ohybNsv8wNaJPkZcHL5A31/f6G3a6Xwqmhp3504kWY9vLd+Rwe9C7CwN@ilbers.de X-Gm-Message-State: AOJu0YwbmIS7Oo0Vgg2AEzB5J/rT+u8j5pX7t7cygSSWFwuXNciYvr/D bmqiJkgAy3SMo15+Fj+z18skN/6+foRYe5XdQ4z35AS5cibU5JD/K/Xy X-Received: by 2002:a2e:2a44:0:b0:393:a145:54f3 with SMTP id 38308e7fff4ca-396d097aa9dmr48150011fa.15.1781074103458; Tue, 09 Jun 2026 23:48:23 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com; h="AX0PUUfYN9b9qTpRlH7iPwxlOrjjQuCXNoEpX9QZtFHyRqQcRw==" Received: by 2002:a2e:88cf:0:b0:396:7dfb:9600 with SMTP id 38308e7fff4ca-396bc4f66a3ls21480281fa.0.-pod-prod-03-eu; Tue, 09 Jun 2026 23:48:21 -0700 (PDT) X-Received: by 2002:a2e:a58b:0:b0:396:94d9:5c88 with SMTP id 38308e7fff4ca-396d08b86fcmr69281131fa.11.1781074101185; Tue, 09 Jun 2026 23:48:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1781074101; cv=none; d=google.com; s=arc-20240605; b=WkXzeFn3Upx7i8jPqcVjaZLR8UtqYC74oD5kxDMONlLmrf+coeze7dgHLeJQSrlmnF 0ddhaJaVS6IaR55n9TRY2ARe+X71CHSQeOIUNgeV1Xy9wun3gc9hhr4uiDDPFkLdG6rX nZylM73ZIy+GcfZXExX14JOq11OHaPYW/V8yCoOzV3MXMUXwKBQYK2guIgr7LTrzLDC4 tCEW+B28mlSjVGVFsmtYMNPPKhzA3cEsgCXAdbZGwS9R8QwQ7jcNHEW60HG1Bm7+VZtT p8mQgrtmIChH1Y+X+t5lIPxT4hlV3S2aRm/P8DJcpZGamZxPRJiFgeh/H/xPT+GHo7WR CI8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=cBEsXbVbffoc28Fvyb2CiSnS7g4toQNxhFNrmzKZ8+M=; fh=/h9QQkzJ8EboVkWg45aWwpaUro6WMavIVd2OhN45RtE=; b=eZ9Prz3AwqoF2HKYLntaJ5JD/6czBIQa3Yfa4F/NZjEg3jlMCuHwwyxh00r9r30pvc wBQIL1N9l2vQdEjoY8ud2c2oK7XPTPqozPAph9vHx3nodOY+l94gYzjou7E1vPrVCO/E 1zMgsnSGLWtO+A6yBSCyHj8P2ENzs0UaE/40SLyekfUJXmWe+ApuZEUQTw0buSkrSxZR cxyfK8aII+QILjlyZEtIt1qr8+T3ZiXN+TQhpiaeGFP1BD/65vdpM8kqyPok525+yGTK FpumnKSGXtpvCVH/Ogt9Bk45GudyQebu/RXnhMugWNIwM9qVQeuTPlHS9e0Z9ZpHF21A o4pA==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=amikan@ilbers.de Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id 38308e7fff4ca-396ac240d4asi4627861fa.8.2026.06.09.23.48.20 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 09 Jun 2026 23:48:21 -0700 (PDT) Received-SPF: pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Received: from user-B660.promwad.corp ([159.148.83.123]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPSA id 65A6mIj0011003 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 10 Jun 2026 08:48:20 +0200 From: Anton Mikanovich To: isar-users@googlegroups.com Cc: Anton Mikanovich Subject: [PATCH 1/3] rootfs: Allow locking on single install command Date: Wed, 10 Jun 2026 09:48:10 +0300 Message-Id: <20260610064812.4010511-2-amikan@ilbers.de> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260610064812.4010511-1-amikan@ilbers.de> References: <20260610064812.4010511-1-amikan@ilbers.de> MIME-Version: 1.0 X-Spam-Status: No, score=-4.6 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2, RCVD_IN_RP_CERTIFIED,RCVD_IN_RP_RNBL,RCVD_IN_RP_SAFE,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-Original-Sender: amikan@ilbers.de X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=amikan@ilbers.de Content-Type: text/plain; charset="UTF-8" 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-TUID: DauicsmPHw8a In some cases only one command from all the ROOTFS_INSTALL_COMMAND list can require isar-apt locking. To allow this logic improve flag checking to accept the list of codenames. Existing API and codenames ("acquire-before" and "release-after") were not changed. So the usage of single task declaration now looks like: rootfs_install_cmd[isar-apt-lock] = "acquire-before release-after" Signed-off-by: Anton Mikanovich --- meta/classes-recipe/rootfs.bbclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meta/classes-recipe/rootfs.bbclass b/meta/classes-recipe/rootfs.bbclass index 8b502a50..dc4e702c 100644 --- a/meta/classes-recipe/rootfs.bbclass +++ b/meta/classes-recipe/rootfs.bbclass @@ -427,13 +427,13 @@ python do_rootfs_install() { for cmd in cmds: progress_reporter.next_stage() - if (d.getVarFlag(cmd, 'isar-apt-lock') or "") == "acquire-before": + if "acquire-before" in (d.getVarFlag(cmd, 'isar-apt-lock') or ""): lock = bb.utils.lockfile(d.getVar("REPO_ISAR_DIR") + "/isar.lock", shared=True) bb.build.exec_func(cmd, d) - if (d.getVarFlag(cmd, 'isar-apt-lock') or "") == "release-after": + if "release-after" in (d.getVarFlag(cmd, 'isar-apt-lock') or ""): bb.utils.unlockfile(lock) progress_reporter.finish() finally: -- 2.34.1 -- You received this message because you are subscribed to the Google Groups "isar-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/isar-users/20260610064812.4010511-2-amikan%40ilbers.de.