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 Sep 2025 13:00:47 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-lj1-f184.google.com (mail-lj1-f184.google.com [209.85.208.184]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 58AB0kk5012941 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 10 Sep 2025 13:00:47 +0200 Received: by mail-lj1-f184.google.com with SMTP id 38308e7fff4ca-336e2f372c1sf29448651fa.3 for ; Wed, 10 Sep 2025 04:00:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1757502041; cv=pass; d=google.com; s=arc-20240605; b=ICDrgWQIxTkKBJiH5K1csOlibPYHImodw6qDwMwcmk0/xOnRxgflQ+m/frP41ZCloD E0AdCzoLfsze3eDsnZXqZumvskgK7feTnZ4riets0MV27jjJYI/UY3/4Hn/xHnPuT+KR +OhsXON5cuzNZbSFukRXps2DkaND/OUwYd+Pa1ViPl9K82ori8ty4Bc1wEAHdvXWYq6u 5UuHAHpJqwE6OXAb+HJ4ZMBw5ZvJZfNynRg66zKKtwENiMSu9/6MRqS7Awb7pcP2mP80 951vxW+tKk5Wlb+XqoRohzXHzunanadCEiOjMhyNio/XiKzN3dQY9tUINB4uXqWp1o4z E74Q== 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:content-transfer-encoding :in-reply-to:from:content-language:references:to:subject:user-agent :mime-version:date:message-id:sender:dkim-signature; bh=1KN93AgrZVsF94MGHQTBSpRCc/YYRNV+euRd97NXBPY=; fh=sYzs4v0WgP9bce9t6xGFXd0+q9acrpRWbcwAcVfrUSM=; b=PJTUkhC/ldQuuPZtEcUdp4AW9MD/rkoBMyK0ChCxuH6F96Ukwkdibp0TPHJIY2SKjN qRTzCRr7crY8zfW+TbKOvWZABNz/gsotAR4sSBBMiT66se4WZ+jEl2aSGJ39YBKOFMIQ esfGVAeIhEA4KSji2hxp3yIvOWT1Hv9AHkgWD0A3LAwVWUa/MU+t0dUIN5TaqcRXx6QV sdIjYl6Y11mefS2a5yO1havaH5ktgg1X4/fLp3d62L2pjYVzRaRfMlQMkaRNcmgnRizV k/TtYh5DaGZq69d1uz6BEnlqX03+bPD1xed9Rc+CyiRdDCFujvrLcg8jkSifpVdOgCKg y8WA==; 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=1757502041; x=1758106841; 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:content-transfer-encoding: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=1KN93AgrZVsF94MGHQTBSpRCc/YYRNV+euRd97NXBPY=; b=lzAzIrHU+HWPs4gk1sCd1Op/bSJMhmnBa+3cn20zdqahstje/s0wCgH+BJWLjTOtwK JKu4u+O/D2Hln2jJmJ6HBvshoT3l/Bo5TC4e+uZ5UiLFWpwLs4ShNtf97pQH1N+8soLc irmPrBuo59g6YgrjTC1+E/H/mfrJyMV4LIEvFj+oQiURi39y7tPv4aB/CVuDm/e7BRc4 UGcraQZ1gZzdI6nxXte+M+3lExIt0sI34B2p2QyzggRZDmz/gUBId6Z5sD1SIrtlqydk KpEJgkDS3DjpTvCueVWDWvUyKWNp3W1txUx9V24DLQ1m09EvSf2BU7jrmTNX/fcnRRE5 Z54g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1757502041; x=1758106841; 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 :content-transfer-encoding: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=1KN93AgrZVsF94MGHQTBSpRCc/YYRNV+euRd97NXBPY=; b=e4NdanCHjd9PXHPiLghk1rocNwa/c4coCKQBahsN7ZSqNGA46GZ+FT/41ngjVYloaT 0HoRVv/ZANh1sNRlCIPsiLlT8kRN3iYUbPjSH/pGm45/llvEQB+kyo1WsbZ2UVd7FCyU x+TlBq9EvxlFWyrrwLG5fGMTecQ92x8NXt7yn0jojOSrgC2GxvhxTr4pgDP8qksd9ac3 F47+vA288xYPfKWHHjtJT7nXT/hSe/I7K+UFkKzoOazsEBAzjur7QxZqh36teJiqGWTz ojaos1BD1Dxak6HG3fm2iLSLrblkx+rBipCn6189Xclg7eLNTTYpEn9Idr5Fle5ggXN4 cjuQ== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCUzT0YvRmMSt30QFH4fQgFfg9/OxoCdVWczSgUCuB/rCTD9KnA3NsptaDkmRtXN/d8ri/Mu@ilbers.de X-Gm-Message-State: AOJu0YytMp1+qOCEw4bz6WX7xUUB3fGcWwBHS48b7ES5Rc3RqHbEn/UR 3QhAJ/keRmRZ52QZcMriz5X8Tn1KyL1rd2EQVY+u/kb2QeAUsiIkcDqb X-Google-Smtp-Source: AGHT+IGFdF5EWFf1Ms+hOyVb9jFwGSXPEKovsXJGEtsT94kIwcm7MDy0OwAZjox76UdaZfs2AHBOnQ== X-Received: by 2002:a05:651c:234d:20b0:336:8be2:a6d9 with SMTP id 38308e7fff4ca-33b508de64bmr40634191fa.1.1757502040260; Wed, 10 Sep 2025 04:00:40 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com; h=AZMbMZfWsXoIABWXbRIVnnB/9Y7BmMKDm8MFuGTRH1bQU990TA== Received: by 2002:a05:651c:4206:b0:337:e8cf:f171 with SMTP id 38308e7fff4ca-338d4141d53ls11488231fa.1.-pod-prod-07-eu; Wed, 10 Sep 2025 04:00:36 -0700 (PDT) X-Received: by 2002:a05:651c:554:b0:336:ed8d:d992 with SMTP id 38308e7fff4ca-33b595665e2mr42730851fa.40.1757502036314; Wed, 10 Sep 2025 04:00:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1757502036; cv=none; d=google.com; s=arc-20240605; b=lEvw8NUx0bo1fWWUhVJ1OS3PFspcCXcbDkdr7mBnYPqSsIpjZPlLLVy/Qhf/vYUq5Y qzl40Z/lQWXB4ztnBLbp+5jStqXc6f0L6DXR1RGC+lWqZUgqShDkcv2iP4VPHLETYeds Eltgc9HtxHNb+PzO1u6t9XLrEz3Bg3TpEUi2BDBmJzDgmaBhvutAdRfRFWZrY0FHYTRV +mQO3z5cAUWkxqmPcovC8EK+480sVP3+lhRYGz6trAF7Xovi+J1qnVF85CO7tFj09SP3 a0l4cm6JGcmlo2XQj0+jnFYR2wLRwI+4nF/p61FS9JXjFlIF4GpwqjIIAao4E4rXYXOa bTeQ== 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=7+pdValcXUa49AR24THSFOrtOzHe/uINuHbIIq1Y1O0=; fh=gRinZ/wig8V5QxQCwL1l2o8fkS0gRglyVeKuReyV9rI=; b=a6VK7XRvpuXScmw2sD1xFCkWN4OgHUx+dsdZ+s92mY+Wc2Lyz8gXlyqP9TrfkPXAqc XrdFdEBHarWcUJZZZv21AHE8B1EaxzUyC8lVuCvUmUHC2h4anQu2xa2Gge9gFyPCwIFy Nvnob6wQ+jbvVB+bUFcAiqFFPk7zBVt9yigj+uiMQtJl8DO8eouQa15xr+/gFOIy3fgv xBKkuP3ghfWQI1TsecK47PNMel0fdY7th5z4+KQDMml8Qfz6hq1LqPN+Jx1UC/eoS9Np TapgYFuQodh7nY55nA1RkQwacP0Gfko725/CrJfS5aCoDhyG17nB9hT5xEfv4pU6zwUr ddhQ==; 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 38308e7fff4ca-337f5009da7si3753551fa.8.2025.09.10.04.00.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Sep 2025 04:00:35 -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 8CD605F78A; Wed, 10 Sep 2025 13:00:34 +0200 (CEST) Message-ID: <24e7baaa-c347-4327-b06d-25c9a074a494@emlix.com> Date: Wed, 10 Sep 2025 13:00:34 +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, felix.moessbauer@siemens.com 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 Content-Transfer-Encoding: quoted-printable 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: n+deQEPIfDv1 Hi Felix, all, Am 20.08.25 um 14:41 schrieb 'Felix Moessbauer' via isar-users: > Arch=3Dall packages might build depend on other arch=3Dall packages, henc= e 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=3Dal= l > 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.bbcl= ass > index babdfbd4..c2bba21f 100644 > --- a/meta/classes/multiarch.bbclass > +++ b/meta/classes/multiarch.bbclass > @@ -29,7 +29,11 @@ python() { > d.appendVar('BBCLASSEXTEND', ' compat') > =20 > # build native separately only when it differs from the target vari= ant > - if not archIsAll and archDiffers: > + # We must not short-circuit for DPKG_ARCH=3Dall packages, as they mi= ght > + # have transitive dependencies which need to be built for -native. Funny enough i suspected to have the same problem yesterday, but it=20 turned out to be different: When a package is single architecture only, e.g. arm64, it=20 should not be extended as native if HOST_ARCH is amd64. So I added a check to BBCLASSEXTEND only if DPKG_ARCH !=3D HOST_ARCH. > + # This special handling for DPKG_ARCH=3Dall packages is left to the > + # multiarch_virtclass_handler > + if archDiffers: > d.appendVar('BBCLASSEXTEND', ' native') Now, seeing your patch to remove the not-"all" case also, I wonder if=20 that could be used as the sole check before BBCLASSEXTEND. Like e.g. archIsNative =3D d.getVar('DPKG_ARCH') =3D=3D d.getVar('HOST_ARCH') if isNative: =C2=A0=C2=A0 d.appendVar('BBCLASSEXTEND', ' native') > else: > extend_provides(pn, 'native', d) but now I wonder what the extend_provides is needed for. If HOST_ARCH =3D= =3D=20 DISTRO_ARCH, what's the use of providing a native variant? But back to your Patch: Is it possible that -compat "all" packages also hav= e dependencies on other "all" packages, which in turn have dependencies on architecture specific packages? regards, Andreas > @@ -86,6 +90,8 @@ python multiarch_virtclass_handler() { > d.setVar(var, ' '.join(multiarch_var)) > =20 > pn =3D e.data.getVar('PN') > + archDiffers =3D d.getVar('HOST_ARCH') !=3D d.getVar('DISTRO_ARCH') > + archIsAll =3D d.getVar('DPKG_ARCH') =3D=3D '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=3Dall packages might build depend on other arch=3Dall pac= kages, > + # 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-nat= ive > + # do_deploy_dep task with a noop to preserve the dependency chai= n. > + 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_d= eploy_deb') > } > addhandler multiarch_virtclass_handler > multiarch_virtclass_handler[eventmask] =3D "bb.event.RecipePreFinalise" --=20 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 --=20 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 e= mail to isar-users+unsubscribe@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/isar-users/= 24e7baaa-c347-4327-b06d-25c9a074a494%40emlix.com.