From patchwork Thu Sep 26 03:39:35 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: 3833 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:10 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-yw1-f184.google.com (mail-yw1-f184.google.com [209.85.128.184]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 48Q3hjwO017110 (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-yw1-f184.google.com with SMTP id 00721157ae682-6d54ab222fcsf14526977b3.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=LK5XEn2LiV63+ZOkKwqQ8M4FB5fA24KNtk7cw3TtT/K494/sgaFuorH6dUsg6xQBJy Dv3Lw6Y2gjVsuLt+DuGA19I8VCjcHwueFFMLTyU9S+6/pYfVy8Iyvi/Vf/4jqoUtHvJV U5ZYL2xSbx5K/UclJIlvdrkDvW6Z1dkbwQ7697nAeod33s4Q68Z75qUYz8Hj9uZiPaq1 DpPXNTB0597eB/p+ws0weJ8SIFae8hTVFFt51b/Pq+ls1H1WwOzZZ3ZWtBpDz5E1LjLN 5cnVOnAjYJipi+WGuq8RAFYKQTseGmH7yXwa5NNr3jcaAqWfmUpjcg2B1C+UnCNYkcc5 uDDQ== 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=9HnMGibyREsAfkfxAbfeQi9l9vzsvxo8Mtsh66cIkHs=; fh=WaZZtUncDmqC961wlorzuM3WoxF4omje2mJFKphulkU=; b=Fq+iPDy5JVKGxHhKMj14dRNY/Jj7R06sCFRorfqKfLE53Dcl2JGPRAtrrTEnxAV/0W x4+0afOjFe2N93mHIXtcYMhOu2ELH1ZEB18kLFvgQI87dURXl9En5WaoTu6XpT7BEvm/ v6LLJMWPhDnpP4aOyTE2QwEd1I8WjAfUJNBeu+8ESmUkjK7UnKT96rO0JcHxPGZroPCf KQRLtklY6moIyyZ/tpNpBRuSwKtFJUvCh1bVRGYoTzP6h95J2E7wdWtUUIabPaF6CsVx g+/B2G8XOAhuVntt3RiLB80W4V8zsLQVJQhCkur87iilq+arXbxBt8yebLWYdCVbu2OZ W+fw==; darn=isar-build.org ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm2 header.b=N4KYC34D; spf=pass (google.com: domain of fm-1212295-202409260343352411f3dde6b420a46a-tzo5ex@rts-flowmailer.siemens.com designates 185.136.65.226 as permitted sender) smtp.mailfrom=fm-1212295-202409260343352411f3dde6b420a46a-TzO5ex@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=9HnMGibyREsAfkfxAbfeQi9l9vzsvxo8Mtsh66cIkHs=; b=POHSeQrMiHqCtobh0CP5KXA+PdeXSNdxnH7OoVjfPCB2Yr/F2WnHRfhLFsJtesumhm YfwEaHxAb1/sZd1zxMxU1VeckZewrxZL/kQZyVUUJpEMNX6hHYJC/paV1//x0sSsh90M Wj1vKwxU7K4dnER1cIC1PURwTroaITzSouJIYSEXtFMByfRRyF2E+dvNciXhJF+UaYxY QNRh9dmmbdEN4hT6rYRd7XCcr8XDpfhQy+2zglxS6TkHRtpveLfycedaG5TyxaNcHP9h UDa+a0seTB4BarNtlXcHk/kf3Zq72sZe8SECcD03v9xwD2RWFQDnBivKDFtfMdNdBfqE xfDQ== 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=9HnMGibyREsAfkfxAbfeQi9l9vzsvxo8Mtsh66cIkHs=; b=ivRbQacNUHObvRggFDBcvHHIi5p4kRvHYARE5qH5xyP83YMCGO+/k0SuXtwywYBFWB 9CGOOm16x7sD2NXuxAVCCqmuyGnZvfutxt/tiK/8IpTKcrOgb7UJJGkJwFecRbnkCUtx 1YdlyHMimgO2S5guO/Omx7H2Da1qcD1vra5/pJHI9RC2HKB98AYTSuYS8GkeaB/sD131 wtPVKz+udqTHorO77h0Ac6AiTOqSmBAPE8rXWxgTB2EN44BpbYsvMe87qSjaCNj6T35R 3vvPrKDFLIys2xyEO1yb3/qwgCgQJABV0RxphZzPg+Z50u+P0daKqpstRNZxc0ZOEuU8 kI0w== X-Forwarded-Encrypted: i=2; AJvYcCUuOOpy5ttakbhlekqOQveZ2NEKLpQ+89765+9Wk5zRKoXKAflRGtUmEnhBQiDIKS3uoYLdLx0=@isar-build.org X-Gm-Message-State: AOJu0YwLtpgGTaVS1Dr7DOP23HN1oeOK5s/iDEB2fKKn3HmgZalCN/+R FgoC7ph8SBaAcgabQIY7UphQFmPD4HHrUtPLUY5ceb6CPJc5tYX2 X-Google-Smtp-Source: AGHT+IFnt6LjOErkYU6K6SDHP+cMAZNS0dTOo7OOvzvEN35JfVtN9nYLNCDi45nER77p4zQD7sW8hg== X-Received: by 2002:a05:6902:2582:b0:e25:cb91:3452 with SMTP id 3f1490d57ef6-e25cb9134d2mr1439736276.31.1727322219324; Wed, 25 Sep 2024 20:43:39 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a25:b292:0:b0:e25:d03f:aac5 with SMTP id 3f1490d57ef6-e25d03fafbels72265276.1.-pod-prod-01-us; Wed, 25 Sep 2024 20:43:38 -0700 (PDT) X-Received: by 2002:a25:bb83:0:b0:e22:5049:eb6d with SMTP id 3f1490d57ef6-e24d85addf9mr4027533276.34.1727322218375; Wed, 25 Sep 2024 20:43:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1727322218; cv=none; d=google.com; s=arc-20240605; b=gMtTWeKi8hqCgqcc8GtQos3NYkj9T35rwOKSSpryZKZZZP9vWokq9K95c76lnR4ghs 7jg3ZW/SnGiIEl7pHqPHFM89rKD0MtL0F7idXIDB3Jzgpb9EQdu75Tc+6SCtPbDNOeHH bCqbhwosiRJCh6P5S7PU3XiRX0+DwbnRgyZwSsf7JMi99uUwi7DSekOFdVRWLdmQ+VT4 45G3ApnHU2h94vpg2C6LBs92J67cT645g6n0GHSNrte64RkDTyniucIHS9fCIvMzDakg VrPVv7nAJLcsOarrSMW5xp53B5tcdoC5jqhGNGkhx/gcZhIymi9/NWm3V7HRUm3m8V5l mlxQ== 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=HLU0u7WrnXMAbe4vdnKHkVGoGdZwygIJQA0GeGcldAE=; fh=1z37pEVhqwMLlkT4FDzOga7XBsM6Rzv6sXOq0pipxqo=; b=azU9vBuTSuxbS+czBDrpiKOI1ahTAzKyMh5dxatdHIUawMzCLTtTYiVQy0+HZySWNk p6dt2mEfek09KFXBTSjRcpd8muiE7F15lFW+CTL5O9D4UzQjMe+T/e1Da1iPq7z9Y/bE l4fTE60c0voXp5rkFLU/Tg8xv8sGjRoJiwK8vaFr/WYiwBoG79tYVV2NKzKIrV/1PBZu J8ikwvgr5YUW6nTmoqiCqZv+EGNQhoVodirLmnHxNV3abwcFczTpVbV33IjvCCuYW/IG Ijjoy06xgg4JM/X+Ks3NxN7qceH4GpCsf5ptg2nJCa5LqrSyD6/OYFAvmrXvXFYhxDxD 1Q0w==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm2 header.b=N4KYC34D; spf=pass (google.com: domain of fm-1212295-202409260343352411f3dde6b420a46a-tzo5ex@rts-flowmailer.siemens.com designates 185.136.65.226 as permitted sender) smtp.mailfrom=fm-1212295-202409260343352411f3dde6b420a46a-TzO5ex@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com Received: from mta-65-226.siemens.flowmailer.net (mta-65-226.siemens.flowmailer.net. [185.136.65.226]) by gmr-mx.google.com with ESMTPS id 3f1490d57ef6-e25ce55d01asi34857276.2.2024.09.25.20.43.37 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-202409260343352411f3dde6b420a46a-tzo5ex@rts-flowmailer.siemens.com designates 185.136.65.226 as permitted sender) client-ip=185.136.65.226; Received: by mta-65-226.siemens.flowmailer.net with ESMTPSA id 202409260343352411f3dde6b420a46a for ; Thu, 26 Sep 2024 05:43:36 +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 3/3] dpkg-raw: change DPKG_ARCH to all Date: Thu, 26 Sep 2024 05:39:35 +0200 Message-Id: <20240926033935.2955085-4-cedric.hombourger@siemens.com> In-Reply-To: <20240926033935.2955085-1-cedric.hombourger@siemens.com> References: <20240926033935.2955085-1-cedric.hombourger@siemens.com> 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=N4KYC34D; spf=pass (google.com: domain of fm-1212295-202409260343352411f3dde6b420a46a-tzo5ex@rts-flowmailer.siemens.com designates 185.136.65.226 as permitted sender) smtp.mailfrom=fm-1212295-202409260343352411f3dde6b420a46a-TzO5ex@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=-2.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2, RCVD_IN_PSBL,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?= Packages created by dpkg-raw are really for configuration and data files and therefore architecture independent. DPKG_ARCH is now set to "all" and DEBIAN_MULTI_ARCH will default to "foreign" unless DPKG_ARCH is changed (it would then be reset to "no"). Signed-off-by: Cedric Hombourger --- RECIPE-API-CHANGELOG.md | 10 ++++++++++ meta/classes/dpkg-raw.bbclass | 4 ++++ 2 files changed, 14 insertions(+) diff --git a/RECIPE-API-CHANGELOG.md b/RECIPE-API-CHANGELOG.md index 21c558d2..57b2205a 100644 --- a/RECIPE-API-CHANGELOG.md +++ b/RECIPE-API-CHANGELOG.md @@ -646,3 +646,13 @@ recipe would use the following setting: ``` HEADERS_INSTALL_EXTRA += "nvidia" ``` + +### Architecture for dpkg-raw packages + +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 set to `all` for `dpkg-raw` recipes. + +This change fixes an issue where a `dpkg` package is built for `-compat` or +`-native` and `DEPENDS` on a `dpkg-raw` package. diff --git a/meta/classes/dpkg-raw.bbclass b/meta/classes/dpkg-raw.bbclass index dd7b761f..ac70d5cc 100644 --- a/meta/classes/dpkg-raw.bbclass +++ b/meta/classes/dpkg-raw.bbclass @@ -7,6 +7,10 @@ inherit dpkg D = "${WORKDIR}/image" +# Create a binary-indep package +DPKG_ARCH = "all" +DEBIAN_MULTI_ARCH = "${@ 'foreign' if '${DPKG_ARCH}' == 'all' else 'no' }" + # Populate folder that will be picked up as package do_install() { bbnote "Put your files for this package in $""{D}"