From patchwork Thu Sep 26 03:39:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "cedric.hombourger@siemens.com" X-Patchwork-Id: 213 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Thu, 26 Sep 2024 05:44:09 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-pj1-f56.google.com (mail-pj1-f56.google.com [209.85.216.56]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 48Q3hiHW017100 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 26 Sep 2024 05:43:45 +0200 Received: by mail-pj1-f56.google.com with SMTP id 98e67ed59e1d1-2db24468f94sf789923a91.1 for ; Wed, 25 Sep 2024 20:43:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1727322219; cv=pass; d=google.com; s=arc-20240605; b=ff+WTG422VQcUVE4qhsxAjUPtNd3kGd9X3rJlcNlI6gYg+amrdiEsobOnAHCl9uijT 0n1UMqmu5HnajDeyHijGA0pl7l4Fkn3kQ7eFYMH/+6pEQZhT8BH7bIZD1FxGCh5sGFeW UQIrl0da2tK3q0md0Bk2YqWerpx96DnftHSpnVaI6IqUEpOoiattuDae9PhNWBJQavB7 6w1XceNlZlpYIgYQ801i6h0SDynmw3GMaHrfM7CxAVw+3aBwGAr0cGjJgrY4C7Y0DjPq UWfi9XNA3nUHys7NPRPwapiB6dRqGomyWxWOmw77hcW1CIClQiqv0nT1gzobso34eLZ6 xb6w== 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:feedback-id:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ZbXDdXI4NITyz8FjUPJBMLtt1/mElW7QGNJr3V39Z/g=; fh=v8F1o8jw2aJ2oF6R61CZHSPwfUepF4rRMUF/Q4eOMpE=; b=BbI95h2W5FEgcNny2NEecdF5IWM6/UazACR5xg2ZvZjOIYMeUTck2Z75np1tcsB+ZQ TxVDHsz5waZlhVh39LSTCZROBPRDd5g0m6tsVwVcZr1vouQovHp3NY9KxS3t2usNf+OE GC9TlABnJygvzch1fXW+17Vupzi/4EHF9e56PYUK7iHi9PHsmVcL4LCHWOUuJYkVjSQs o2GIVmTX8XIw4Msbs4PQA3k7aSWfMKFovJjnl0UytobPq0IiEZlfgdXNqx+c22+SOQ3y GWL2rZ7O/1kieca4bU8P1LdtAWB56pJvAMr2V7nJMsbN/P/5lP60rpVttJGTsZZdq9Aa y/oQ==; darn=isar-build.org ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm2 header.b=OF9vu1cP; spf=pass (google.com: domain of fm-1212295-2024092603433400751eb2a27ac460c3-qxsloz@rts-flowmailer.siemens.com designates 185.136.65.225 as permitted sender) smtp.mailfrom=fm-1212295-2024092603433400751eb2a27ac460c3-QXsLOz@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1727322219; x=1727927019; 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:feedback-id :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=ZbXDdXI4NITyz8FjUPJBMLtt1/mElW7QGNJr3V39Z/g=; b=Uor4WLDtKPVsB6X5kJePA+ZGQnrmeZAG/0mXC5oMq1m9kC6HYUEA1wenZ6NTlLL67d nClhqjttrWQUL+Rilmy/NzyKklNlb59rAb7LoXgvSGLo7qK10QEOV3By/oCTaLo98xg/ TlcZJl2rNaKff9YkV6B8yLOrkcf6KOFR6zOh+8c5V2JPEYbxXjk7tdjxeJsz4r1nOl4F aQPLsJlfwpS3Qxa29232VagVUWgZ3tU85UzG3ZAtWbWv0gOCHNQI/Au1LBIigxuqayPC mHoeCJEQSdKGdDyPjDXAEUc1DPw4VwAw38e37UBUlOM2b8LVWb+qQdHTLvm8beyMoWzW DlSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727322219; x=1727927019; 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:feedback-id :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=ZbXDdXI4NITyz8FjUPJBMLtt1/mElW7QGNJr3V39Z/g=; b=msb9fBN7YjIBs0tFs22/rpIyDOb3XLyimr1VEkz8uzIfQAFULT3nU/XsLTqsVOkLJT 7r3597dlJIXlzV2b8uN3yOrSqmD8fD8swjEP6rlU2QmvI+MdNXg3g0pW/beEC4tfkvFz njX951q8BLeSuCjm3ItTMr/6aS9YWCr/FPIUQc8u25ESkkPtzBQXCuHbmDqk7RSIxUhF dk5ervzCjUKVI1q8c8cQUbvYjOWtlQPy/kPnt51ylFva+pffhuwW7lv0B9jpB3osJygI RGV8msQBmmkIWg5P24OeRegCJtFyvuudKQhCSojQKvae6fZ9TVrbZFWW0cJlQqR27t6F 4ykw== X-Forwarded-Encrypted: i=2; AJvYcCVXyxBDJYz5ff79U9U2ULMpWF/Gg8F/bLC2wn5NVKnE4kuVkeVVfscyTnXM6C3o4THDGZUX46M=@isar-build.org X-Gm-Message-State: AOJu0YyVo0qv0VX8dTsav0KOmnyPXo1ZTtLwpLG0Oi0v2fhC58Rn2Hck nzEt6qQwdzj4VnLbG3nXmldconcai6gyvVEX5k87MoJNx3EdT36N X-Google-Smtp-Source: AGHT+IEKHdSSrzw9c+OmEXRkjYl3bvo1wolVXewLxpliJaGCYDuLqxfTTXyeYItXENcQ6vsUoyEq0A== X-Received: by 2002:a17:90b:4a10:b0:2d3:da6d:8330 with SMTP id 98e67ed59e1d1-2e06ae25e6fmr5754353a91.4.1727322218865; Wed, 25 Sep 2024 20:43:38 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a17:90a:f598:b0:2ca:b919:b4aa with SMTP id 98e67ed59e1d1-2e090a6bc5els442636a91.2.-pod-prod-01-us; Wed, 25 Sep 2024 20:43:37 -0700 (PDT) X-Received: by 2002:a17:90a:3045:b0:2e0:74c9:ecf1 with SMTP id 98e67ed59e1d1-2e074c9eecemr4493888a91.10.1727322217552; Wed, 25 Sep 2024 20:43:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1727322217; cv=none; d=google.com; s=arc-20240605; b=NANfp5Vfj0T5pC5fUk0RqIFkMdbWfV1Ex+/m1FcnzPChOTFdRfcbFgq+3OBSj6AzZS ir94houyg6v4hwC9ti626+vBQVyhCMzsvdrNDlpo0KURSAK/uH8noWvz5v2ITdo+ZGd+ WRb1yD75q2gi51swwd0AcIAwXdmHvwrb95tbRp3hrHs3LdFwNCV2kXjIM5VunEwPRdSO czLxPISjXXx/fRjr6lziLps/PeADOoefDRtE58Ka+34vxiIJoBeahsCWt6y8j3l+dWCu rKeP2InzzOschqj/oR8Vl+d1UMLCzmktHF0goAykT+IOC3h8EoY/WONfwPhSXBGQ8Kmx HUjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=feedback-id:content-transfer-encoding:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=oOyu7qRh8n7NVPwB0xmDuAXsfUswaQ7vdLixM4/YGmc=; fh=1z37pEVhqwMLlkT4FDzOga7XBsM6Rzv6sXOq0pipxqo=; b=F6jj3w8FRIArNe1dRtUKBWHFvGCwHQvCHvC/wKizjyUW4eTyk92SNHeMGuw2lh4km7 r62UL9ZyKarFeUGXEiDYSNdKaLf/kBqHh7BSWEl0f4KyDUvWswI9KBqLEf7cNGn7a8Zh tkBjavey3kZjmlhbUBx7jgszUKcjVj4foMCZ3NkWhy9B1P4glOAjV7uLdVLTAfbDom+M x+MqLKh1ykP/E8FGPbNv2py+7TW/jG8m6Bgt4z5FqRV9mfFUWmRYXwf0Smzf7GoSpXrG bJlOfGO5Uq127V4cdo6uq25uE+te87Eba82Nk19Rfkum0k4YQQVy6vFT6OvLIQBk1mdZ bSLQ==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm2 header.b=OF9vu1cP; spf=pass (google.com: domain of fm-1212295-2024092603433400751eb2a27ac460c3-qxsloz@rts-flowmailer.siemens.com designates 185.136.65.225 as permitted sender) smtp.mailfrom=fm-1212295-2024092603433400751eb2a27ac460c3-QXsLOz@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com Received: from mta-65-225.siemens.flowmailer.net (mta-65-225.siemens.flowmailer.net. [185.136.65.225]) by gmr-mx.google.com with ESMTPS id 98e67ed59e1d1-2e06ca9e74csi228171a91.0.2024.09.25.20.43.36 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Sep 2024 20:43:37 -0700 (PDT) Received-SPF: pass (google.com: domain of fm-1212295-2024092603433400751eb2a27ac460c3-qxsloz@rts-flowmailer.siemens.com designates 185.136.65.225 as permitted sender) client-ip=185.136.65.225; Received: by mta-65-225.siemens.flowmailer.net with ESMTPSA id 2024092603433400751eb2a27ac460c3 for ; Thu, 26 Sep 2024 05:43:34 +0200 X-Patchwork-Original-From: "'Cedric Hombourger' via isar-users" From: "cedric.hombourger@siemens.com" To: isar-users@googlegroups.com Cc: Cedric Hombourger Subject: [PATCH v3 0/3] do not build -compat/-native for dpkg-raw packages Date: Thu, 26 Sep 2024 05:39:32 +0200 Message-Id: <20240926033935.2955085-1-cedric.hombourger@siemens.com> In-Reply-To: References: MIME-Version: 1.0 X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-1212295:519-21489:flowmailer X-Original-Sender: cedric.hombourger@siemens.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm2 header.b=OF9vu1cP; spf=pass (google.com: domain of fm-1212295-2024092603433400751eb2a27ac460c3-qxsloz@rts-flowmailer.siemens.com designates 185.136.65.225 as permitted sender) smtp.mailfrom=fm-1212295-2024092603433400751eb2a27ac460c3-QXsLOz@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com X-Original-From: Cedric Hombourger Reply-To: Cedric Hombourger 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=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,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?= The intent of the dpkg-raw class is to easily package configuration and data files into a Debian package. Packages to be compiled should really use other dpkg classes where support for cross-compilation and multiarch is provided and tested. `DPKG_ARCH` is now defaulting to `all` for `dpkg-raw` recipes. Despite this change, Isar may still build dpkg-raw packages a second time when pulled by a -compat or -native package. multiarch is changed to check if DPKG_ARCH is "all" and will add -compat and -native to the PROVIDES of the package (this condition will be checked for all dpkg variants) It shall be noted that setting DPKG_ARCH in a recipe is a contract, the user declares that generated package(s) are either architecture dependent or independent. Changes in v3: * Do not warn if DPKG_ARCH is not "all" as users may use this class to create a Debian package from a prebuilt binaries (shared libraries, applications, etc.) * Set DEBIAN_MULTI_ARCH to "foreign" in dpkg-raw if DPKG_ARCH is "all" * Introduce helpers in a separate commit to ease reviews (a "fast" ci_build run was used to validate this intermediate step). Changes in v2: * v1 used a completely different approach where we were ensuring that do_install was called whether sources were built or pulled from isar_apt (do_fetch_common_source) since override_dh_install is pulling contents of dpkg-raw packages outside of the source tree (${PP}/image) Cedric Hombourger (3): multiarch: introduce some helpers to later handle corner cases multiarch: avoid separate builds when DPKG_ARCH is all dpkg-raw: change DPKG_ARCH to all RECIPE-API-CHANGELOG.md | 10 ++++++++++ meta/classes/dpkg-raw.bbclass | 4 ++++ meta/classes/multiarch.bbclass | 34 ++++++++++++++++++++++++---------- 3 files changed, 38 insertions(+), 10 deletions(-)