From patchwork Tue Sep 17 07:00:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cedric Hombourger X-Patchwork-Id: 211 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Tue, 17 Sep 2024 09:01:21 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-qv1-f55.google.com (mail-qv1-f55.google.com [209.85.219.55]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 48H71JIX003900 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 17 Sep 2024 09:01:19 +0200 Received: by mail-qv1-f55.google.com with SMTP id 6a1803df08f44-6c354323ec2sf106971286d6.1 for ; Tue, 17 Sep 2024 00:01:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1726556473; cv=pass; d=google.com; s=arc-20240605; b=jcYlCnbawMu9NnXXSllkYhUcIT1DOAc8RNqZOcvykc+aFLaqWNnk9Yay1+UMWlWVlm Bg8wTFY5NURgA22yGZs89eFRSzooHNaVgGBVxdYsJpecXXQT02w9g4QXG3k5J0yg87kA mVdpamsuhAQ3pmw5XXFYEiWRRfR7jgb+DDVSivS7ZGWwj2kd9c7UrQP6XJkgLHIyEG3L KF+DdLsZUK9DU79ObGpoP8RxLavRn5CnD8XWY4+iA3DImkogvShr19rB667H1dPLS7sv /bs5wrv2W3NmZ10tImbWjnjdtiHEHJgBc0bvZQ/u2y2mttYrDkIH+IKxjXUpJL5GlX74 vBCg== 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=amA5WZ9XcGRzjkDOp7VM4eM7OPUK14ZUvSXoSr55Ag8=; fh=6kb23ddzTUKI9JszVgxtde097ooaGSLmvEXsUlBXESQ=; b=fgNgum4QO9JnEdRnAa24ze0pqD/zz9KiYkhvIqNNbqYsNKejiqSJhaWEX7Mk6L4FH6 1T+WPdv/kVMy6zmoF9dHoJd81MhDvILTLUZBrGGjLpowRkvFAm/NzMGlcXT3bLNF7CWg 3Srw6KoVsJsNV/cW35nOO65ON9xcaYQtbZslJgC9Z4YMRjLqPSVwWvl65bfBkxjV15CR ligIEJ+4U3AYs4eLpM/3Qp1de6ABZkpARlSsu3KhB3qC317m6YAEcHYMEEd/ergkiznZ 5g6KDBgwN3susvfESA0djwgTNuarON5A1fEwIse4iUUC9ZT9G/pLO3gXXZbYBu/9AqMm mRMw==; darn=isar-build.org ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm2 header.b="JoS/ZUjP"; spf=pass (google.com: domain of fm-1212295-20240917070110f1dc8899942ee7c49d-cjb0ni@rts-flowmailer.siemens.com designates 185.136.64.228 as permitted sender) smtp.mailfrom=fm-1212295-20240917070110f1dc8899942ee7c49d-CJB0ni@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=1726556473; x=1727161273; 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=amA5WZ9XcGRzjkDOp7VM4eM7OPUK14ZUvSXoSr55Ag8=; b=oV+ov72DM98SUyN3qdjMFnj7Vp2Mu5N95/YKkipm8ZwPAJgmU2vlu4NzOyU15OVJbm WhZHVhZrXg3TshvwBng2ARLkquOF98YvzHp3Y0otBpzQQcruzfyh20KX/K0e9/Fjr1fO 98iQlYltEx22xRmseyvI8O66D6Byde50uPOyL82VM4pu9OhYSA5N2ArwSW0NntETyVRl LeNieFxaQB6ufc9G9b3jSGpaIlodL/UxJhyx+5iOjm1TDjIVQHOJAs2bZuCUgw/X1IGY PpyV7KUFKTuBcAFoVZP3uIE1P4AoNzIORYN3pKamPlkIsSV0SDWGwvlEZWAHvCBEGEQo 3MGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726556473; x=1727161273; 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=amA5WZ9XcGRzjkDOp7VM4eM7OPUK14ZUvSXoSr55Ag8=; b=IbbebyU6fI36dxKDBt+f/h4P3ehh5Q4qpGdO12QaN3ggjtcPv5sy1ckRe+OBMuu6hk gSJVCRDgx0AARdTWCb4hM3+zu5Eh0Co/SsdW2lWFtagykVr7Uv4ti3M9KMLmOzZbRvLk GSQF1ABhYGf+7sW0sDk2HDQhDOU8k+kkFvh/AqY9CE/85pyThsEg/XVF8mq8vRlWuauY qgBCjafWZrdhqNJR4gaDN7mYdm1nVTYyXbsZ7KgX80yFoNsVIYeKkBAeb6CmIyeKBly6 KhEpdPJvcplj4aSCHh6XgrCM+8O0utjYQKcpgfzR2oRpmKJUmO4hLpIzOIRPC+P9Ny/D 659g== X-Forwarded-Encrypted: i=2; AJvYcCX8pZeO9D99kapsMuliVzvJMe7Kf5tI2iqnUm6+YL/HvMxrsdSK77ghMnX9Wfklt21w9Z4h2PE=@isar-build.org X-Gm-Message-State: AOJu0YxO88VA2sN8JS+0oNFIPjXe6IW5uszFDZ7hlSKiAXxunMi9AhT/ esdO+03MxHktNcMuCOOQIzJf5CD4e7wPF83Y7csF9WFZgG10Z77d X-Google-Smtp-Source: AGHT+IFS2R3C3FzuQS6jrjOJj5b9rfOGShog/rJ9FCEjreE4MSlhGFrOgrovFPHIClYAoPAoAkXPkg== X-Received: by 2002:a05:6214:4509:b0:6c3:6a68:499f with SMTP id 6a1803df08f44-6c573568dd5mr284550896d6.19.1726556473183; Tue, 17 Sep 2024 00:01:13 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:6214:40d:b0:6c3:6427:d7ff with SMTP id 6a1803df08f44-6c573542ae8ls89600806d6.2.-pod-prod-02-us; Tue, 17 Sep 2024 00:01:12 -0700 (PDT) X-Received: by 2002:a05:6214:5a01:b0:6c5:317a:f450 with SMTP id 6a1803df08f44-6c573556032mr306063446d6.10.1726556472242; Tue, 17 Sep 2024 00:01:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1726556472; cv=none; d=google.com; s=arc-20240605; b=C9XWCPHji8St2L6/PKpXKAQ3RzmdXraeklazBgNblfFQN51l20+1tFnzQtnj5juRsT GaRIvTxgValdFCx0wRho3axl9VCizSrH+4kG+qTjEXzYEZ0GZzR/wjKemkN/gFrMkoiP KVRWBVUy9e5eEc+6BdmYWmRToIcTyIwJlG3Skf7VAoFFwqKwVwEc2Lv3Na9d6TWUXWcq lZB7NWSA3U3gZLkclONgDm5n4c5G7sbtslUljj+6Dd7Xt73QgOW1adzZYsG406vXw3oi eqAbXq0pFEZ0mBlQzawEWFwD6bQHBuJXmcAJdE+NE+lgIvcjSCsvMQmhQFKbpWagANUW 3fog== 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=ktRHivJ4NGAWrylU81owBZoB5CNgUI3hUMh/REyArJA=; fh=1z37pEVhqwMLlkT4FDzOga7XBsM6Rzv6sXOq0pipxqo=; b=PNziLk4BVS8KtgFaUQkjh91OvGAbq/DW2bcUbBT3vT/oYckSYxJ9HED59z8GZq7rOc /wxUTNhjEUAElRizmAjWV7RQQs8TxGepOLk+ZOZNLNuR+XEvsUTXyzza5ExmjQ4NHvoO 8KU1asAO3sWIKgE9OySVJCa7wPY9hO9mDsGPa33/v5e67brFaxb3LvUG67w8Lp5X9Fjx YBf2wYwrD8GkWFkmGO6yOBN69TsHbMS1G2eFuj2iNF0+SCFcHfxCGX61FBV/MH3nOAo6 7CvNn1/A7okR6C0pn/yc40fhd44zZFK51as1Sl7ZeoIECTHw9LEdNzauD4b6tRbL0h/m lQaA==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm2 header.b="JoS/ZUjP"; spf=pass (google.com: domain of fm-1212295-20240917070110f1dc8899942ee7c49d-cjb0ni@rts-flowmailer.siemens.com designates 185.136.64.228 as permitted sender) smtp.mailfrom=fm-1212295-20240917070110f1dc8899942ee7c49d-CJB0ni@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com Received: from mta-64-228.siemens.flowmailer.net (mta-64-228.siemens.flowmailer.net. [185.136.64.228]) by gmr-mx.google.com with ESMTPS id 6a1803df08f44-6c58c692c46si2712566d6.6.2024.09.17.00.01.12 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Sep 2024 00:01:12 -0700 (PDT) Received-SPF: pass (google.com: domain of fm-1212295-20240917070110f1dc8899942ee7c49d-cjb0ni@rts-flowmailer.siemens.com designates 185.136.64.228 as permitted sender) client-ip=185.136.64.228; Received: by mta-64-228.siemens.flowmailer.net with ESMTPSA id 20240917070110f1dc8899942ee7c49d for ; Tue, 17 Sep 2024 09:01:10 +0200 X-Patchwork-Original-From: "'Cedric Hombourger' via isar-users" From: Cedric Hombourger To: isar-users@googlegroups.com Cc: Cedric Hombourger Subject: [PATCH v2 0/2] do not build -compat/-native for dpkg-raw packages Date: Tue, 17 Sep 2024 09:00:46 +0200 Message-Id: <20240917070048.577-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="JoS/ZUjP"; spf=pass (google.com: domain of fm-1212295-20240917070110f1dc8899942ee7c49d-cjb0ni@rts-flowmailer.siemens.com designates 185.136.64.228 as permitted sender) smtp.mailfrom=fm-1212295-20240917070110f1dc8899942ee7c49d-CJB0ni@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=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, 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?= 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 and a deprecation warning will be raised if overriden. 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 was changed to 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 since 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 (2): multiarch: avoid separate builds when DPKG_ARCH is all dpkg-raw: change DPKG_ARCH to all RECIPE-API-CHANGELOG.md | 11 +++++++++++ meta/classes/dpkg-raw.bbclass | 8 ++++++++ meta/classes/multiarch.bbclass | 34 ++++++++++++++++++++++++---------- 3 files changed, 43 insertions(+), 10 deletions(-)