From patchwork Wed Oct 1 10:59:24 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Naumann X-Patchwork-Id: 295 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:42 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-wm1-f59.google.com (mail-wm1-f59.google.com [209.85.128.59]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 591AxfY6032668 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 1 Oct 2025 12:59:41 +0200 Received: by mail-wm1-f59.google.com with SMTP id 5b1f17b1804b1-46e4943d713sf29258715e9.1 for ; Wed, 01 Oct 2025 03:59:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1759316376; cv=pass; d=google.com; s=arc-20240605; b=J3+5r9V5JWerqHoN2gKjZpbu3P1wTSuclO65DbQmTR6HC16/EE2JzAH1rJV36KuVmH 8eSLLONIwKZLUAo40e0GvYgQYEUBt46rqvSxpSd17R8xi7tVgIZUKtjIa6CansqcWAkA QQHp+pOUOF4BcnCa46kk/YXkNgXLqRhmJHjllCH74N1GjMCF+tT8/QvbUkFFy32uLXi+ iy0WxrSEFyHc4gryO5ah7BbN4oxzCGCLQWd4tK/IkNV94OJakmEP70lsK13mRze/ZJzY N2ep+KUyEe73TL0ri1UtWQBHz9a6W2O066P0mbk6cP1vmKsAxTbCUjaHn8bkVD34g9je 2Xlw== 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:message-id :date:subject:cc:to:from:dkim-signature; bh=cYU+6/fEf+dQImC4PHbItDMrClsFdyoDyhjTgnuxr5Y=; fh=p4zXH33vj4gweo8E1zY2hENLkTNzMpceKRPm6+Iqut0=; b=H6d3HjlpSfZ5N1TcF22Vtv0y8g9d5gahjJ5+HHfC2Q7QDjAKdoX7aZ+N2DA60LTf9V AXhr2/wSN0P0ykwEeq/XF3KSYXVnLpqi3LwmnNsAXkakNr/z5rvnBJR0rCb58ySVUn57 heJzUk/VKEOGjhyAjN9g2y/gMM0DvOgf6yjFNcFEn3q+TApzqzP7q8MYPfb9FdeeJ8Y+ dHL7RZEgbtHq9PpwQ/AlO9HzifNySHa6xQ6qtRCpkBDZismBa8MyhlcJuAFA0xxxbJGA orA4+dldyGQ8Ctcbx2YAVz5d1oFTFk/g99Op8q9h561KAukcTSmdJPPmz+jfxROmEn0+ qxYQ==; darn=isar-build.org ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@emlix.com header.s=20250930 header.b=Ym0SsRnr; dkim=pass header.i=@emlix.com header.s=20250930 header.b=Ym0SsRnr; 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=1759316376; x=1759921176; 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 :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=cYU+6/fEf+dQImC4PHbItDMrClsFdyoDyhjTgnuxr5Y=; b=JJxtTHL/ihqaBZMIcCfjq3GVRJLW4qA21egw8khYO+8PwtRzoDpFGCcUEljdBadv5D T2Ul0kabXdu+olCfKhQMxlcnFE0QENv6y7wXDSOc7HyjEQ4f1mCEBKYvYZaFlN2sO/Wp KgUZrO5/vnzI5JhzMHZxRPLv+3IKGUCmKtjar0yA9Gks0mGZ4IlpkjLJSEnC3GDWaayn DCE7OAPQbZV+md51uwzNQTJmHouGW2Fw/Vodlv7XAgaTuzFYyTMz0TVybR5k1l8z/SNu 2/dGhkNQVI3ODIVfHw1dB959cx3+2AW90a93ZzAnGRpqY8R5lMykDQE7RkX3pvajWdCq Rn7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1759316376; x=1759921176; 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 :message-id:date:subject:cc:to:from:x-beenthere:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=cYU+6/fEf+dQImC4PHbItDMrClsFdyoDyhjTgnuxr5Y=; b=NCYXyfBu8BIwV3orym5sPbvJXF4/Nlf2Wj8COspRcgd3Vw/XlbpGDCucLofpdCJjsX iyRWxbJuUn6BxxzXnV0b4eX8m0o/ssiD+U01UKQIBNPhWTyK7OEBO1jNMdUssD8taVrD /iU0OImBwl1Lwum5CC9ZKhwsnChwSP6xPK0D+rpvyB/Dz2Oxbt33D//S7Nv/5Kn5kk62 qECQNeb1v7tv8RSnHaFx0aeWiSgKzwek+eVYAv6wwJOPSKXrPtu+4UKOyxCLwoXX5Mbi +FIaI0ajl52nNLJjMoyTiafzsrTAfjrPe10RqCZba4C8i/53erKX7E1GgDrxa3Xn5y6e 8Tvg== X-Forwarded-Encrypted: i=2; AJvYcCWYSGYkqbbitgSddQDJeeRe/tCAkh7pEmzHWWlI9U4JAA3Q2fgoam9EzKIz6fI3U5eRd4yNcuI=@isar-build.org X-Gm-Message-State: AOJu0YwEEgr6VzBqqnFm13dAl5F8kcV8cfVEEntDUz7lgJaS8ZKzxyO0 peEIEXhOEb6Ik820240REvP3E91kChIPMjlrKU8QDrWGaDC/KTdFYoxm X-Google-Smtp-Source: AGHT+IEc0qAwq2wysDFiWDYo3yqHAOs79I94YcjshxHu/XDzyXlO5GhlYSf5+mn9I1Cdfm+V8v2aBg== X-Received: by 2002:a05:600c:c174:b0:45f:27a3:6e0e with SMTP id 5b1f17b1804b1-46e638352efmr14774335e9.14.1759316375475; Wed, 01 Oct 2025 03:59:35 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com; h="ARHlJd7IOR83vbM+op78ERGRqtFD0r7YUJbxrEYZG4zJl4UGZQ==" Received: by 2002:a05:600c:1614:b0:46b:38cc:d7ed with SMTP id 5b1f17b1804b1-46e32e5f74bls32409105e9.2.-pod-prod-07-eu; Wed, 01 Oct 2025 03:59:33 -0700 (PDT) X-Received: by 2002:a05:600c:871a:b0:46e:42aa:75b5 with SMTP id 5b1f17b1804b1-46e612021bdmr28009255e9.4.1759316373006; Wed, 01 Oct 2025 03:59:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1759316372; cv=none; d=google.com; s=arc-20240605; b=KXeAoevt/58c6YzofVhWcl8TPXJ8Z3184ctBOQ5UDWBcCtfuHTCQURcKCYfGX0+xMf /7youi7fkRw4QjE84zQB7g2ZVBv5Ux7Gg2xLhz8d4mC1zjSCHrG0559gPLNUndvN3Tv4 Uz9PNvdRRlzJ/rkzw+OwkEQ0JpcBM8bMPpz2kjNBvWJ52/A4kCMrT0GLu1YGPdJaLCxT Sw+etNeSR2mawd0580oKk+h0cBVzqXudVDmLM5Z2ikPeMKQ9KrQAqoSVLCiiBwIc1mtR jQVwiZitfTVk+sDM7etOJLbrqvnPY2mGmzwhIS306d3XmKIn4tnQD2fkbYQvNhN0l0QF yptg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature:dkim-signature; bh=3uvxPn9XqXYVmQs/eYS3RLB4uZfD8GchM0Y6kHf/dTs=; fh=h/3u+BnesbohrVPBf25WVa1dvt5UrhWAO6IFZkZXrvU=; b=TuuujeAGJ8NdVR77SyAoV0hzsogOVKYHnje57r1SUtqKFpi65t42FNU39Pz+z39NOB tDmWnu7Az5hN/38VMe6d3KIEgV5uOS/hqht+cMzfHiYAH4VCckOPlQ3397hdvt8Civnw mt72XrrLzVTGDzD04IyyEztawbWNiAB0llOpiSw+nB5HlTxPhT7oh3uJ5HwSl2mfvF/P RrVwX9FSECsbCTm/0t3fwD6hhiMfSMbUwBNT6eqol5QyCvfgyMywaqC+BT0mD+D1NhgA BsETDde68MDtSw0z0CDmAYTsolV62hWTooale8O3czAH2SGdBEM+kagB7IsDD9eCiKR4 5pxg==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@emlix.com header.s=20250930 header.b=Ym0SsRnr; dkim=pass header.i=@emlix.com header.s=20250930 header.b=Ym0SsRnr; 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-40fc19b98c3si335438f8f.8.2025.10.01.03.59.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Oct 2025 03:59:32 -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 9DE2E5FBBE for ; Wed, 1 Oct 2025 12:59:32 +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 84E765F794 for ; Wed, 1 Oct 2025 12:59:32 +0200 (CEST) X-Patchwork-Original-From: "'Andreas Naumann' via isar-users" From: Andreas Naumann To: isar-users@googlegroups.com Cc: Andreas Naumann Subject: [RFC 0/5] Improving multiarch support for arch-incompatible packages Date: Wed, 1 Oct 2025 12:59:24 +0200 Message-ID: <20251001105929.3731537-1-anaumann@emlix.com> X-Mailer: git-send-email 2.43.0 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=Ym0SsRnr; dkim=pass header.i=@emlix.com header.s=20250930 header.b=Ym0SsRnr; 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?= Fixing the recursive dependency issue of "all" packages, as proposed by Felix, showed that currently the Isar multiarch support seems to assume that custom dpkg recipes are always valid for the host as well as target architecure. Or, if they are not, Isar would make an effort to redirect if possible. However, there are situations where this is not the case, e.g. packages supporting a certain architecture only or packages intended for the host without full crosscompile compatibility. This series is to allow for such cases by supporting DPKG_ARCH being set to a specific architecture if it is not truly "all" or "any". The first patch fixes unnecessary, possibly incompatible packages being added to the overall rootfs dependency chain. It's also sort of an alternative solution to the fix that Felix provided in his original patch which I took the freedom to rework to contain the recursive dependency fix only. The reason I'm going another way is that I was looking for a way to generically handle all incompatible packages, not just "Architecutre: all". Of course this comes with the "drawback" that "all" packages, suited to be compiled in and only for -native, need to be added with their -native name whereever they are depended upon. As for reverting recrdeptask: IMHO, the alternative to keeping it would be to not being able to use cross-package inter-task dependencies, like Jan's patch for avoiding the duplicate creation of the dpkg-source package does. That would be kind of limiting. As for the cache related reasons for which recrdeptask was actually introduced: I could not find the do_prepare_build-A -> do_deploy-B dependency, but only do_deploy-A -> do_deploy-B. So I'd just hope that this is no longer a problem, but havnt invested testing effort to prove so. The image patch is preparational, so images are not unintentionally skipped by the actual main patch (#4) which handles incompatible packages. It was made before handling of packages with unset DPKG_ARCH variable was added, so it's no longer strictly needed, but may be worthwhile anyway. Andreas Naumann (4): rootfs: Do not recursively deploy every dependent package image: Do not inherit multiarch multiarch: Prevent providing incompatible native packages multiarch: Do not re-extend real -native recipes Felix Moessbauer' via isar-users (1): multiarch: handle DPKG_ARCH=all case for transitive deps meta/classes/image.bbclass | 1 - meta/classes/multiarch.bbclass | 33 ++++++++++++++------------------- meta/classes/rootfs.bbclass | 19 ++++++++++++++++++- 3 files changed, 32 insertions(+), 21 deletions(-)