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; Mon, 15 Sep 2025 19:49:33 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-wr1-f63.google.com (mail-wr1-f63.google.com [209.85.221.63]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 58FHnWbb012781 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 15 Sep 2025 19:49:32 +0200 Received: by mail-wr1-f63.google.com with SMTP id ffacd0b85a97d-3e04ea95c6csf1855239f8f.1 for ; Mon, 15 Sep 2025 10:49:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1757958567; cv=pass; d=google.com; s=arc-20240605; b=G2R/4S0vX2Nza/1lxSThWa6KplVHMl54n7M68xYoRkc4qMZuhfhr35OhAS+eemInKm sdNxh4RAK0l7ffe2IZAlOXdkD6oytmhJMrPRHihU7v2kLJQxOsEOsNIKC5y8U9Qj7zra OPwa8T3MjRyyX+Kj/OIaZUfKkLxajWZMxcGAOCNtY9BSwCTPMkGmlKTl2WUBdN3GDsuk 9bJSqLLRTd0biZ+9V/7spvCpkrr8o2LSAlFjDfQiNJ7gEAIx55Rc8hEWrjmjc1fzpsHg Dy8xHEHcflXstgMJvKDy4ITfchJydHlwvXsY0E/LJjbrHfo4hmQ6a+N6hMBsdJyh1uqJ f0ng== 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:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :sender:dkim-signature; bh=qPzOTAn5kHe4hrjrVeEYpCHeDNtFKugu01Y1Ha48/Fw=; fh=WGUxNFP3z81HKkSb8vNu+aKoRzoql9gncYc7sV5m4II=; b=I10xWMHPP+gvUnOVD6Mim9xDPB/E75LF+JkOXwfr91Jy2y32V4aNP8aTzaMmyWQZo9 8mRHhQOeZR1V85kHqnyi2svEKOX8QrKfDjieJCOUzUrJZWTJKrfuiYF465MlRJyd5lhN GYpInvWBJJnAdiC/UW0OmdtGNnxA0Zwpf2p8b3VkXlglZVIn1ptwygKKHHUZwph0j1ey pTpRgs40Imwg91oi8vGU8qHEejrLnuHVGfDHy8kedRf9fNXOCBM189/r2kgVKyM7OJ6s q9H+XaavSz2Z7qgqLAH1lyiGWtJzZhYcNA28+mwHnDGQpLjWIVvxZ+izy89YsEhD18lv mJVQ==; darn=ilbers.de ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of anaumann@emlix.com designates 178.63.209.131 as permitted sender) smtp.mailfrom=anaumann@emlix.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1757958567; x=1758563367; 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:in-reply-to:from:content-language:references:to :subject:user-agent:mime-version:date:message-id:sender:from:to:cc :subject:date:message-id:reply-to; bh=qPzOTAn5kHe4hrjrVeEYpCHeDNtFKugu01Y1Ha48/Fw=; b=V0lWRWcJLNMOz5DJ9Qzhn3fciU0yqKNI/ba5JfMp+8ur2z+E9xrRwcKVwKdoNVkHpb svpO4ZbvB+ShA+CHRZno21zX7sbuc1NfI5OGi2ICGljOSWlRbG4E8INs0Ayc9uk6K83f txYtr4NGN0/MjmpmB5oTC9XFeciItVHdJl4jiJSPE2nRclVZs02Jm1Y0QrISJyAphk9p jpnZzqM40u0tI7LtKuE5hb+2fzHah/m9RzLixug7l7dg+UlZobPXr83klxYHmxDBB2gu x5cwk3ZFs+GOiGId5K649M9KPRn0r3Ao7WRy2s3BWcX7MskaYiQFQ4dQqic8yMYDX3MU 28Fw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1757958567; x=1758563367; 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:in-reply-to :from:content-language:references:to:subject:user-agent:mime-version :date:message-id:x-beenthere:x-gm-message-state:sender:from:to:cc :subject:date:message-id:reply-to; bh=qPzOTAn5kHe4hrjrVeEYpCHeDNtFKugu01Y1Ha48/Fw=; b=JFuA3stmHhHiAOQqrXLwUW57yC9ZvdwG8k6Urbo9qgD3qmff0LdormXazjXRO6EVc3 5drODkumeCGOHxVZHAdSXh2fMZSkIZJJ4TVOlh4ZIaVTDJgZVaoN8x02N6IZcmTJeQ1d 1iuY/J3Lm6HhSpoF3zXny1xB/m0S5WODat19vSHyAGLvgQbY8gIKaAOv3/fYCX+YNL/p FRgmaVaf+jLSmCgTavY9vctzPXRAxxRkw4449ekXhRSWp73KdJkTtcpb9zcdyfJeGLsl qDvPoXBz9HwzseojKesklWUUmsn2myyFQ2vHoip9WXxVPSVpRGgQGrGX7U61nKzH1IhB H21Q== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCXedEE4Q9Yb1dRTLDec+/64YQyJb/VQdOc+meMA1/A9PmcrrPOAbU1z0BzoISgfgqZmjR6y@ilbers.de X-Gm-Message-State: AOJu0YzRFZQ89pgpx5DxZcLP1lnZdAG3NwYkRWN0edsl0RA3TAq7jiA9 T9WUJufSUXbuF/HRqDm9ZCOp6pPYK08pL6Cn40zEbf3yn1Bvh3Vzjbz9 X-Google-Smtp-Source: AGHT+IFU4nI3mTh9gpHv+6mQMxOyVa/yANNF3se4Pq+moMi2Uw0/Lsoajt57OFnVN3kDJI7axGHIvg== X-Received: by 2002:a05:6000:2401:b0:3ea:2290:7cc6 with SMTP id ffacd0b85a97d-3ea22908137mr5833702f8f.56.1757958566486; Mon, 15 Sep 2025 10:49:26 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com; h=ARHlJd491FER2soxG144KyAGoKp+o6eBhl7ssvu8YMngXt+geQ== Received: by 2002:a5d:64e9:0:b0:3ec:24a:f930 with SMTP id ffacd0b85a97d-3ec024afce1ls202782f8f.0.-pod-prod-03-eu; Mon, 15 Sep 2025 10:49:24 -0700 (PDT) X-Received: by 2002:a5d:5d07:0:b0:3ec:1b42:1f8b with SMTP id ffacd0b85a97d-3ec1b42221dmr1165923f8f.40.1757958563821; Mon, 15 Sep 2025 10:49:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1757958563; cv=none; d=google.com; s=arc-20240605; b=GgMFyqo9nErdpTGuJmKyF/eBWltsUnjPQuai/plE1l9NRGBg1PeHRkBTwu7/kHO7/u BgUZaAbj/4Dg47kYdBU8hPA6/LpVya4iGnpgLemu22Qzzmkz29ZuDYB9R2zvFmRSJEAQ c0sSbZ09nLp0T8PrOERrz8AjfkJPNAnoWNFvzYEa8xhpSu/Ji3DLR/z+xMAq183QAUeF 8OEaU2DTbC0bYsrIHginyQwyYyZNkUK9mYOXCdH6L3Wkq9IiBJzpMf23OpqrzbXxhSHr AsHY4nSKoJH3RgP8hVxC0jxeXJfa6h6ma1mFdd53Ch0C/4ApzVQrRjUdOgF0kcJh/tbE jdCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id; bh=7V+DM5FlJxjNdViIFJ7Mvcx6cW2bGHlLIRHUlHY1WM4=; fh=JmRz4Evz1s/v/dxqSH+Mq5VK4GAxOJc34ebIpa/SV0g=; b=g7z49tATD/+VIBNMnW8B+eiXkuoyON7dUSfeN2YQhZDIO2G83Y/73j4vSUwoOniHxI l2j+jEKVF8Oc+eCmc+4Ued1hdvTeC5V5JAJE46bNZ0nwes9GW5bQ/X6QfHGBicehhRL0 3HTyuSsSV5LJmbkFQLXOQFztBDV9JSiigzNJr6+MI7qCrEtu6Bp4SkL+G8h3AsaEi4Yv l9a/fm9fsaD4nCQhBo0SuCrOL6tXlFg7dCCFt7Pgd2ywmkEwfHVgRS3Ptktn8BbC6HxD 8TFtcsIGIgCjIJh9kj0e+vVUhmUZr6xjgeM4rOyXcU5K1xaFMswKDPXsPz/3rRlXfypl BSBg==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of anaumann@emlix.com designates 178.63.209.131 as permitted sender) smtp.mailfrom=anaumann@emlix.com Received: from mx1.emlix.com (mx1.emlix.com. [178.63.209.131]) by gmr-mx.google.com with ESMTPS id 5b1f17b1804b1-45f2f616045si366195e9.2.2025.09.15.10.49.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Sep 2025 10:49:23 -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 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 7824E5FD52; Mon, 15 Sep 2025 19:49:23 +0200 (CEST) Message-ID: <05c06d5d-5248-4d56-b470-a096411b2844@emlix.com> Date: Mon, 15 Sep 2025 19:49:22 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/2] handle DPKG_ARCH=all case for transitive deps To: isar-users@googlegroups.com, "MOESSBAUER, Felix" References: <20250820124140.281190-1-felix.moessbauer@siemens.com> <20250820124140.281190-3-felix.moessbauer@siemens.com> Content-Language: en-US From: Andreas Naumann In-Reply-To: <20250820124140.281190-3-felix.moessbauer@siemens.com> Content-Type: text/plain; charset="UTF-8"; format=flowed X-Original-Sender: anaumann@emlix.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of anaumann@emlix.com designates 178.63.209.131 as permitted sender) smtp.mailfrom=anaumann@emlix.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=-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-TUID: GzdL1eO234FM Hi Felix, Am 20.08.25 um 14:41 schrieb 'Felix Moessbauer' via isar-users: > Arch=all packages might build depend on other arch=all packages, hence we > need to correctly model the dependency chain. Otherwise the transitive > dependencies are built for the distro arch instead of the native arch. > > We implement this by dispatching the non-native variant of DPKG_ARCH=all > packages to the -native variant by adding a dependency. We further > replace the non-native do_deploy_dep task with a noop to preserve the > dependency chain. > > Co-developed-by: Adriaan Schmidt > Signed-off-by: Felix Moessbauer > --- > meta/classes/multiarch.bbclass | 18 +++++++++++++++++- > 1 file changed, 17 insertions(+), 1 deletion(-) > > diff --git a/meta/classes/multiarch.bbclass b/meta/classes/multiarch.bbclass > index babdfbd4..c2bba21f 100644 > --- a/meta/classes/multiarch.bbclass > +++ b/meta/classes/multiarch.bbclass > @@ -29,7 +29,11 @@ python() { > d.appendVar('BBCLASSEXTEND', ' compat') > > # build native separately only when it differs from the target variant > - if not archIsAll and archDiffers: > + # We must not short-circuit for DPKG_ARCH=all packages, as they might > + # have transitive dependencies which need to be built for -native. > + # This special handling for DPKG_ARCH=all packages is left to the > + # multiarch_virtclass_handler > + if archDiffers: > d.appendVar('BBCLASSEXTEND', ' native') > else: > extend_provides(pn, 'native', d) > @@ -86,6 +90,8 @@ python multiarch_virtclass_handler() { > d.setVar(var, ' '.join(multiarch_var)) > > pn = e.data.getVar('PN') > + archDiffers = d.getVar('HOST_ARCH') != d.getVar('DISTRO_ARCH') > + archIsAll = d.getVar('DPKG_ARCH') == 'all' > if pn.endswith('-compat'): > e.data.setVar('BPN', pn[:-len('-compat')]) > e.data.appendVar('OVERRIDES', ':class-compat') > @@ -96,6 +102,16 @@ python multiarch_virtclass_handler() { > e.data.appendVar('OVERRIDES', ':class-native') > fixup_pn_in_vars(e.data) > fixup_depends('-native', e.data) > + elif archIsAll and archDiffers: > + # Arch=all packages might build depend on other arch=all packages, > + # hence we need to correctly model the dependency chain. > + # We implement this by dispatching the non-native variant to the -native > + # variant by adding a dependency. We further replace the non-native > + # do_deploy_dep task with a noop to preserve the dependency chain. > + e.data.setVar('do_deploy_deb', '') > + bb.build.deltask('deploy_deb', e.data) > + bb.build.addtask('deploy_deb', 'do_build', '', e.data) > + e.data.setVarFlag('do_deploy_deb', 'depends', f'{pn}-native:do_deploy_deb') I have now done some more testing and unfortunately find that this causes failures when building the -native variant of some dpkg-raw packages we have. We use them for certain config files and they are intended for the target. I dont know why exactly they fail and I'm sure this could be fixed, but actually there is no need to build those packages in the native environment. So I'm somewhat surprised to see that and could image that this causes confusion for others that dont know about the "all" intricacies as well. Another observation that I see is that dpkg-prebuilt "any" packages, which are probably in the dependency chain of an "all" package, now are always also built as -native, even though they are needed for the target only. best, Andras > } > addhandler multiarch_virtclass_handler > multiarch_virtclass_handler[eventmask] = "bb.event.RecipePreFinalise" -- Andreas Naumann emlix GmbH Headquarters: Berliner Str. 12, 37073 Goettingen, Germany Phone +49 (0)551 30664-0, e-mail info@emlix.com District Court of Goettingen, Registry Number HR B 3160 Managing Directors: Heike Jordan, Dr. Uwe Kracke VAT ID No. DE 205 198 055 Office Berlin: Panoramastr. 1, 10178 Berlin, Germany Office Bonn: Bachstr. 6, 53115 Bonn, Germany http://www.emlix.com -- 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/05c06d5d-5248-4d56-b470-a096411b2844%40emlix.com.