| Message ID | 20251103154223.985951-2-anaumann@emlix.com |
|---|---|
| State | Under Review |
| Headers | show
Return-Path: <isar-users+bncBDVYNRFFT4KBBAE3UPEAMGQEM4MLKZQ@googlegroups.com>
Received: from shymkent.ilbers.de ([unix socket])
by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA;
Mon, 03 Nov 2025 16:43:03 +0100
X-Sieve: CMU Sieve 2.4
Received: from mail-lf1-f62.google.com (mail-lf1-f62.google.com
[209.85.167.62])
by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id
5A3Fh2I6003690
(version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT)
for <iupwgm@isar-build.org>; Mon, 3 Nov 2025 16:43:03 +0100
Received: by mail-lf1-f62.google.com with SMTP id
2adb3069b0e04-57986226b53sf2127433e87.3
for <iupwgm@isar-build.org>; Mon, 03 Nov 2025 07:43:03 -0800 (PST)
ARC-Seal: i=2; a=rsa-sha256; t=1762184577; cv=pass;
d=google.com; s=arc-20240605;
b=EftF7Lxk5vJxmJF/wzeHKKGb20mzNDIg6WebWupGrVc7tE70K6ggjfVnaD2Y5QqEhK
IIt461QBnHzmv6w4pA72/XTirB76V52qF/MjDfCHs+OwPoAuNyuEdhUIVS8A3xA/0v8s
bfgRbZkdP7is0vDgnUdHLjD05fPI2J+TMuBSGUy5kGhJrsL69iWnKhbq5EakcPxR6gE0
HZja36AdPNRhwrPqYCXqpaNQ46jr9ThIizCO0+VH89qZ3qftHnj2Y+E1SXI7Cq6kl5SX
ZAXrLjuMkAHseEmZYAUX0587fVygqMNWC7OFsvWQniE5DJuzcHVTVOt1xjgyHntBqX+j
4HwA==
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:reply-to:mime-version:references
:in-reply-to:message-id:date:subject:cc:to:from:dkim-signature;
bh=smfh97Xoa83LBBjv0DaM/Y0vOABwdDC19hUA6rRpmyI=;
fh=tfw+d4meAURHhI2NvhyBfy1CUSrA5sKtm2lhAsJPbHg=;
b=XjlvB9hyuJXi9ic9UY7IVvTxTjBpiEPqQijIoUbDGerJASy2mEE0whGtsGeBkNEEjn
GEYMdYW9SKcIbXW2ULk3OSNx/fH9RaDMXmUYIZv+DFNUGn4DKUAb4SpdAj/kIf3GX9yE
6/k3ZamTOAAb69xd2jLtyWu3jTvYe4+pQ7x5TgwdqVAoiPfiroSFrgIINlPjZ2gEPQ7L
iryGcN9vLmeatNesaBFQ5qn1zU4dLUr+mwHfYFMpjwncfZEEyXbAX4OL8ZBVmk3H9KuH
ZqGd7iKIJdQ4qa4Y6yO0+mo39jiTDMCeDsMNLh4FswZXmM57j+KwXXPR35OC88daC3cx
dkQQ==;
darn=isar-build.org
ARC-Authentication-Results: i=2; gmr-mx.google.com;
dkim=pass header.i=@emlix.com header.s=20250930 header.b=BwRDcVRf;
dkim=pass header.i=@emlix.com header.s=20250930 header.b=BwRDcVRf;
spf=pass (google.com: domain of anaumann@emlix.com designates
178.63.209.131 as permitted sender) smtp.mailfrom=anaumann@emlix.com;
dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=emlix.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=googlegroups.com; s=20230601; t=1762184577; x=1762789377;
darn=isar-build.org;
h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post
:list-id:mailing-list:precedence:reply-to
:x-original-authentication-results:x-original-sender:mime-version
:references:in-reply-to:message-id:date:subject:cc:to:from:from:to
:cc:subject:date:message-id:reply-to;
bh=smfh97Xoa83LBBjv0DaM/Y0vOABwdDC19hUA6rRpmyI=;
b=KfBZh31+zMsXkS+XOYlY9WJ0+PUS8gz9Yh2fN6+Zi5n26VsUg7AGbdA/bgazPT2OYF
wu8acVo8B3TJ2IcPtfOJBK+aJT5Bs3dUu+oQZ7IEnIthb4tF4xCSp3yoaRHzk6RjLhDD
uOMKqnX8rjK8gQAmSYJqK4HoGCpfItWAaowufzmk8TNtkKWwK9kjktDzu5aO9esGEUwM
Ho7Y85YsTH8BMMJP6K0FSWNn/zrYXGHUTam0msEe/2lDzo+qPqU3njkEU+27QVYf4hfg
28w82YCgn7kvwAzxw+N3gaUND7cTXM+fyBssB3lxrtEGkHeTikkrMi6yVUEPQyb50GmL
y7Zg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1762184577; x=1762789377;
h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post
:x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to
: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:from:to:cc:subject:date:message-id
:reply-to;
bh=smfh97Xoa83LBBjv0DaM/Y0vOABwdDC19hUA6rRpmyI=;
b=ZtINtKVLTmtn7ETs/3GqkSrgWnEGkmVBZMiDf4OVfgOixLqRId4DBLvFRqJuru4s2J
KZSG9Ja9uY4iLlfpMu0a+03WmppFyOWnlEU3SmR3fhxcUiztxy7KM6kEMvhsx0dXGU+F
u7lTaomrxC0n7wmz9/jg7AR0EJfN07NSxeSe1t0oOG/PPyh10JYBChCBoDLmtpGljiLs
c1PE1903fsZBKrC8fmTIoiIpWXnr6DoRMv0TlIl0emjnnopABmby3f7q5YWMpw/cq23y
rLqsgZbnokkf05hBtEDroVBxQYFe8KOSSnjqgjVv4EF76bHU6gsu4Nod5Kx06/fY9r1D
EuRg==
X-Forwarded-Encrypted: i=2;
AJvYcCVwVDYeaMGYfwQTdMUnueUSnki8BzEZv5vWCFUYqCqvyxzEqlwb5dqY40lE1NsTTdVAH7iNsYQ=@isar-build.org
X-Gm-Message-State: AOJu0YybN51AWBwTbeDC8I6R7mR4lpDsmh2VX04L2+GwMCLlqFOJa+/1
wXDZarjkGdQA3ckNA9xDyqbj/DUfnHRGeIXeN6Cdh+9Uw00LH8mYJlLk
X-Google-Smtp-Source:
AGHT+IF2v7cNq0+PoD4BrngnvWuIoTeop6qga2o5nizWNnFoeRTHU2EznitVxwSenJQ8/bEeNCMK8Q==
X-Received: by 2002:a05:6512:b25:b0:594:28f6:b065 with SMTP id
2adb3069b0e04-59428f6b5b7mr2013091e87.17.1762184577107;
Mon, 03 Nov 2025 07:42:57 -0800 (PST)
X-BeenThere: isar-users@googlegroups.com;
h="Ae8XA+YVjHGaM1vyncR6COiTP7ju6vwciK9VpnCn9cz4wVWRFg=="
Received: by 2002:a05:6512:63d5:20b0:594:2bb1:82cc with SMTP id
2adb3069b0e04-5942bb1867dls192482e87.2.-pod-prod-05-eu; Mon, 03 Nov 2025
07:42:52 -0800 (PST)
X-Received: by 2002:a05:6512:2389:b0:594:27c6:a00 with SMTP id
2adb3069b0e04-59427c60cc0mr2413786e87.4.1762184572193;
Mon, 03 Nov 2025 07:42:52 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1762184572; cv=none;
d=google.com; s=arc-20240605;
b=Y8TU+a9GvbompOUpNYekw3c0/0HlWIXvI4wAbo1M+K5LZ/ZV4QofZufGJl+Q6uV554
KX512STUwNfRUiykSqDtBrYVfLYF0Vftc3oGmBuVwOzRz/Whnnl1Vd/u9ggxpQ9zhm0g
nXWPND7sXKzuEqASv1ylI4xTXILA5dqge5DMRjfd0VpfsZPsA/z5w2a8wHcORvFWllom
FedRkzYyLqK5syz1kmBgRBh5iKESMhjhygB/NEokan7+DUqTL7+jGIn0ZsIZtTIjbC9c
JDytX0U19GPPftEKnzvG+9z8i8CduWV4cb+n/JBnPKXrcm0Jc+PvDSMSJO4Hn1RAsNnk
cqIQ==
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:dkim-signature:dkim-signature;
bh=/0XzuiFn0m7dEznYP1hL044LQrqtOxRxrrRKb1aYkjY=;
fh=h/3u+BnesbohrVPBf25WVa1dvt5UrhWAO6IFZkZXrvU=;
b=JmHMyfBmBF+DLfybT0F1JjlgkkXNW7XR1eMJSPQufo2tf4DrVyGIhJInIQWO3iw1yR
yAuQ6UJpm6Ddjaz519yo0qbDcd/rwQN4b4bztalDIH9Ha04VD6t9q/ewLlUQvV5Uzu+m
tmd//G3sk4k9UMTwAuV26YUVuX1w4RPk0PeLP5yIkmkFOzMzA5L8rkAkNgjC4KcRxcE/
uaJeOVRqkCseWwCFHi76Zci3uM35iuNxdZqyc5o/ChQweDwTeNhrEKxfm2zIlDC86UTn
VJXBrQTog/L+12Cc8OQE0n8v1RYxv1Q8AoXK2P0Rd8ch3Q4TjGrLvARMW5qXn8EZbxzI
mu2Q==;
dara=google.com
ARC-Authentication-Results: i=1; gmr-mx.google.com;
dkim=pass header.i=@emlix.com header.s=20250930 header.b=BwRDcVRf;
dkim=pass header.i=@emlix.com header.s=20250930 header.b=BwRDcVRf;
spf=pass (google.com: domain of anaumann@emlix.com designates
178.63.209.131 as permitted sender) smtp.mailfrom=anaumann@emlix.com;
dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=emlix.com
Received: from mx1.emlix.com (mx1.emlix.com. [178.63.209.131])
by gmr-mx.google.com with ESMTPS id
2adb3069b0e04-5943437ed58si2409e87.1.2025.11.03.07.42.51
for <isar-users@googlegroups.com>
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Mon, 03 Nov 2025 07:42:52 -0800 (PST)
Received-SPF: pass (google.com: domain of anaumann@emlix.com designates
178.63.209.131 as permitted sender) client-ip=178.63.209.131;
Received: from mx1.emlix.com (localhost [127.0.0.1])
by mx1.emlix.com (Postfix) with ESMTP id 3F4BD5F9CC
for <isar-users@googlegroups.com>; Mon, 3 Nov 2025 16:42:48 +0100 (CET)
Received: from mailer.emlix.com (p5098be52.dip0.t-ipconnect.de
[80.152.190.82])
(using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits))
(No client certificate requested)
by mx1.emlix.com (Postfix) with ESMTPS id 2DAFD5F861
for <isar-users@googlegroups.com>; Mon, 3 Nov 2025 16:42:48 +0100 (CET)
From: "'Andreas Naumann' via isar-users" <isar-users@googlegroups.com>
To: isar-users@googlegroups.com
Cc: Andreas Naumann <anaumann@emlix.com>
Subject: [PATCH 1/2] rootfs: Prevent adding unneeded package variants to
recursive dependency chain
Date: Mon, 3 Nov 2025 16:42:22 +0100
Message-ID: <20251103154223.985951-2-anaumann@emlix.com>
X-Mailer: git-send-email 2.43.0
In-Reply-To: <20251103154223.985951-1-anaumann@emlix.com>
References: <20251103154223.985951-1-anaumann@emlix.com>
MIME-Version: 1.0
X-Virus-Scanned: ClamAV using ClamSMTP
X-Original-Sender: anaumann@emlix.com
X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass
header.i=@emlix.com header.s=20250930 header.b=BwRDcVRf; dkim=pass
header.i=@emlix.com header.s=20250930 header.b=BwRDcVRf; spf=pass
(google.com: domain of anaumann@emlix.com designates 178.63.209.131 as
permitted sender) smtp.mailfrom=anaumann@emlix.com; dmarc=pass
(p=REJECT sp=REJECT dis=NONE) header.from=emlix.com
X-Original-From: Andreas Naumann <anaumann@emlix.com>
Reply-To: Andreas Naumann <anaumann@emlix.com>
Content-Type: text/plain; charset="UTF-8"
Precedence: list
Mailing-list: list isar-users@googlegroups.com;
contact isar-users+owners@googlegroups.com
List-ID: <isar-users.googlegroups.com>
X-Spam-Checked-In-Group: isar-users@googlegroups.com
X-Google-Group-Id: 914930254986
List-Post: <https://groups.google.com/group/isar-users/post>,
<mailto:isar-users@googlegroups.com>
List-Help: <https://groups.google.com/support/>,
<mailto:isar-users+help@googlegroups.com>
List-Archive: <https://groups.google.com/group/isar-users
List-Subscribe: <https://groups.google.com/group/isar-users/subscribe>,
<mailto:isar-users+subscribe@googlegroups.com>
List-Unsubscribe:
<mailto:googlegroups-manage+914930254986+unsubscribe@googlegroups.com>,
<https://groups.google.com/group/isar-users/subscribe>
X-Spam-Status: No, score=-4.9 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED,
DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?=
|
| Series |
Prevent adding unneeded package variants to recursive dependency chain
|
expand
|
diff --git a/meta/classes/rootfs.bbclass b/meta/classes/rootfs.bbclass index cd8fd1188d..082a723996 100644 --- a/meta/classes/rootfs.bbclass +++ b/meta/classes/rootfs.bbclass @@ -234,7 +234,8 @@ do_rootfs_install[root_cleandirs] = "${ROOTFSDIR}" do_rootfs_install[vardeps] += "${ROOTFS_CONFIGURE_COMMAND} ${ROOTFS_INSTALL_COMMAND}" do_rootfs_install[vardepsexclude] += "IMAGE_ROOTFS" do_rootfs_install[depends] = "bootstrap-${@'target' if d.getVar('ROOTFS_ARCH') == d.getVar('DISTRO_ARCH') else 'host'}:do_build" -do_rootfs_install[recrdeptask] = "do_deploy_deb" +do_rootfs_install[deptask] = "do_deploy_deb" +do_rootfs_install[rdeptask] = "do_deploy_deb" do_rootfs_install[network] = "${TASK_USE_SUDO}" python do_rootfs_install() { configure_cmds = (d.getVar("ROOTFS_CONFIGURE_COMMAND") or "").split()
Using recrdeptask has the side effect that every package of which a task appears in the dependency chain, will be fully built and deployed, even if just a subset of tasks was needed to fulfil an inter-task dependency. For coupled packages like the native/compat ones, which can share part of their tasks, see 2ca3a7e dpkg-source: Build source package only once, this leads to a full build of the base package, while e.g. only the native part needed to be produced. Refrain from doing so by going back to using deptask which only adds the deploy task of the direct dependencies and rely on correct cache and inter-task settings of the used classes/recipes. Add rdeptask handling to allow for runtime dependency settings. This is a partial revert of 7c7628e rootfs: recursively depend on packages. This fixes build failures with custom packages which dont support crosscompiling (-native only or "all"), improves performance as no unneeded compiling is being done, and avoids ambiguity when both packages produce the same artifact (deb-file). Signed-off-by: Andreas Naumann <anaumann@emlix.com> --- meta/classes/rootfs.bbclass | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)