From patchwork Wed Oct 1 10:59:25 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Naumann X-Patchwork-Id: 4380 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Wed, 01 Oct 2025 12:59:47 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-wm1-f60.google.com (mail-wm1-f60.google.com [209.85.128.60]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 591AxloN032716 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 1 Oct 2025 12:59:47 +0200 Received: by mail-wm1-f60.google.com with SMTP id 5b1f17b1804b1-46e36686ca1sf55440455e9.2 for ; Wed, 01 Oct 2025 03:59:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1759316382; cv=pass; d=google.com; s=arc-20240605; b=Uz72tCWt5NbvvvnbngenXEI6iE6Ygq1w5s1Kfykmoeqc4VDklJil4abgZGB92aumnr IeCkPnR0+X2egMVM1HU4uqYKgKLv2DX4BAl9vTRGbqeN6ULfVBuE8d7Ftp+CW1lwc8oN beDmohSa/i9NSwisAS8ptRfDXgs8c7B30MmHSY3kPiXvtmvP0or2XB5ZvznnEy81+3Ry eZfhbMb+jWSKXBwTZH6ckdFGFe2mbCBy4kjd4njrMZ/tFLfdRlLdNQPBJF1TGHDhlTjN 82C/h8GGhof6yFyBATIpHxIEcTSmrXxUT5fBnudyL0eUVNqevKCBxEVYu8WgHZ2UdRek VjQg== 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=xKzS5DFJy/fitj3ykdQrp9QferzJVMWc13B+IxtLcxo=; fh=e9bnYuljql4S+osdtFHCq2uIFavVevywV9EczE7zQAs=; b=LgZej/M8pKk3uPTKMxBk1WDFRmwRmqFPnqEQL3kZA4m4Mjb6uxXdV0x4cUogRrBtUX R2ao/ZerAsqdCJxP6BMdiNXK63rPgeIB6jiWApxEJysCI3zl5qEqJLWzhC/rMnKM5uwj PEOKftqQWb6+iUphbzYC3ChbJI/dvfUfgUGcOI4pfhD+4x+LJmWH90xrmqemqLq8KS9y JsJ8u0C8XYLSlL2uUgWBFQzIZwhdIOKNeINDq6jGkQoB3aIk0GiFxLFHERhMSqE7i5LO iqJGTeyA96pbJdF9jqPvxQgXG0u1WeLf30u4sJ2SCVDGnhFaE9RMeMVNaRkym9yRNVua Wpuw==; darn=isar-build.org ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@emlix.com header.s=20250930 header.b=cRsBfNZX; dkim=pass header.i=@emlix.com header.s=20250930 header.b=cRsBfNZX; 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=1759316382; x=1759921182; 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=xKzS5DFJy/fitj3ykdQrp9QferzJVMWc13B+IxtLcxo=; b=OLlU5dCVazPMfFQgpTKZQxDgO8lQ3xZhLDn3km3MSUCVlclHjx3XD6hHhgxNkkKHyx kQ8aJOd6q9tl7mw75kRloYZc57AmciBbxickYuzP/I5O2jEO3NlnzZ8fzValGbeuUhhz zhJknzrdq2Tt0QBlVyN9Y4XVVjQzy7ZXr3eFtJ15wuheaxtezhChctmuX6HzRZGiFF0U wmUHuCPnS/sqllIWK4N+I0IVYwaJpsD25+OD64y8xlhwk6NaHQsnrva3qrJUongDRjD5 uG/RbqCmHjxSGk4IOZ6AhYT4PDebTFOVzgo+b4YGYiIq4+Kaqay7dCEY6pOEz8eFdXSD 9g6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1759316382; x=1759921182; 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=xKzS5DFJy/fitj3ykdQrp9QferzJVMWc13B+IxtLcxo=; b=V9gzQZN2kfRDZbXntlA+xM2ELh3plNqxCO1v6ixI+NKYDtxfRd1B4m6O3QzwS50b15 DaBcjR1WDuEU62RnNXRynUfH9MfQkcaqETfEjBkvGtrDbeMQYnwwyym90i1O+JeLQ5NZ loNjJqoB9usDJxfyZHLV3HpdKcbrvNGqtTSC6WyytfN+RBdGPqZ6Xd3zXhZqom9odtHw UM7tS7bh2hDuuD9qGUGiUfrkIci+gM3rVXr1TtxT03rDCI+J+bS1XE3zgO/7oysM7E3q jOJpmDglozNl2gBeedO7SCPfoUs7GWWhEl75hjqtMkRIAo24S1un1Poo291PUH5aXjlk VFiA== X-Forwarded-Encrypted: i=2; AJvYcCWd3SaNSxlkXpp67Yfi8mYbS8y21hQQYVXreI6vyLTR4LNhyr368KNwVpv6aDxVClgbSoBmfPg=@isar-build.org X-Gm-Message-State: AOJu0YwLD6r2dn7WKM3el8lSy+35Zez2wbv3ldiV7fNr2I2os3pUOKzG rYjED0arEFvm5nXgZM4+3/12qqF4u0aY0YlzxVnZZN0CuTzgJzEllCMQ X-Google-Smtp-Source: AGHT+IGopYe5wQUGp+cbyT/5o/PwegVZZN4ZXW5HeV4fHQsRfRTEfKsksUzXdisTz7gSxOeeQWtpxQ== X-Received: by 2002:a05:600c:8b24:b0:45b:7a93:f108 with SMTP id 5b1f17b1804b1-46e6125cf2amr26085255e9.3.1759316381341; Wed, 01 Oct 2025 03:59:41 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com; h="ARHlJd5ndBeYlvURF5+EI9ezic6OefQJGhjg825PV5KWuAEJ3g==" Received: by 2002:a05:600c:6383:b0:46e:1aaa:6922 with SMTP id 5b1f17b1804b1-46e33824ddals41286375e9.0.-pod-prod-05-eu; Wed, 01 Oct 2025 03:59:39 -0700 (PDT) X-Received: by 2002:a5d:5f86:0:b0:3da:484a:3109 with SMTP id ffacd0b85a97d-425578050d5mr2511352f8f.38.1759316378734; Wed, 01 Oct 2025 03:59:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1759316378; cv=none; d=google.com; s=arc-20240605; b=CiTZhr+l4al31LccLS0OBsa4hiHYCdGw+sot+a5QTiOOHdFTRf/frsTCW43wJ191wp ROqYivYBvN13f82fsbY+DZj1PCdCStB6riHwnghTSYJ7am5f5i1lU5XUOrs4AssCvn0q 6+bpd3ASCCEkbWLYqS74qHtLTplV79rWGmx689CIlRscSwnrVz7w6m/gMQtSBmJBXD7K ECad8UjSgxRsYg2o9MOzENNTNYTCR3gwoN/8mebaynRBLReET6W6J/G4ZJzieMZ4ZM+Z X356G8wk1bLdob4An9B34sYFluKXVRG3fYhNkr6HSZ12cF4B7k1cnLoMnh44x22sxyLK x1QQ== 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=0udwscJplg1LFRMzYzhAHs1mvCZA4dNPl2GA9KDo+t8=; fh=h/3u+BnesbohrVPBf25WVa1dvt5UrhWAO6IFZkZXrvU=; b=YR0ziR/GcboQCNGFhoZRF2kWvEaMY4JisxpnT6GMm5dx8DHV98g4oQtTDobXvQ3eOJ 7Gj2YdiyHeDLgxDNrKV9NbajQLy9HME9AkmtGZNAJxE+0V9kVpGX/6ys7uupbc8Rnd5U XIp5HxSD5H1AkngpVSdWKVjpxXfGE/8bFBd/+mbhb9I5fs3NtOxcnLBhMrt7+2WWmjDM qr+saJK5gIQbmvC5xmPaiA3WT3/vDk+h4OfwBASsJc9KyG1QTUFJXiPAdzlNSxm4/pwj zlCDs4ghFLjOckzoyL0EGjg2WWNY26PqevvffhhriD/0tafJFAhIZXjqzQMqyAmYDx67 vtSw==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@emlix.com header.s=20250930 header.b=cRsBfNZX; dkim=pass header.i=@emlix.com header.s=20250930 header.b=cRsBfNZX; 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 ffacd0b85a97d-40fc19b98c3si335442f8f.8.2025.10.01.03.59.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Oct 2025 03:59:38 -0700 (PDT) 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 411D65FBBE for ; Wed, 1 Oct 2025 12:59:34 +0200 (CEST) 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 2FFDE5F794 for ; Wed, 1 Oct 2025 12:59:34 +0200 (CEST) X-Patchwork-Original-From: "'Andreas Naumann' via isar-users" From: Andreas Naumann To: isar-users@googlegroups.com Cc: Andreas Naumann Subject: [PATCH 1/5] rootfs: Do not recursively deploy every dependent package Date: Wed, 1 Oct 2025 12:59:25 +0200 Message-ID: <20251001105929.3731537-2-anaumann@emlix.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251001105929.3731537-1-anaumann@emlix.com> References: <20251001105929.3731537-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=cRsBfNZX; dkim=pass header.i=@emlix.com header.s=20250930 header.b=cRsBfNZX; 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 Reply-To: Andreas Naumann 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=-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?= Using recrdeptask has the side effect that every package in the dependency will be built and deployed, even though for some packages just a subset of tasks was needed to fulfil the inter-task dependencies. 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), 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 --- meta/classes/rootfs.bbclass | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meta/classes/rootfs.bbclass b/meta/classes/rootfs.bbclass index 11e6367e..53e60a81 100644 --- a/meta/classes/rootfs.bbclass +++ b/meta/classes/rootfs.bbclass @@ -347,7 +347,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()