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; Fri, 22 Nov 2024 07:12:49 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-wr1-f59.google.com (mail-wr1-f59.google.com [209.85.221.59]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 4AM6Cm2A016801 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 22 Nov 2024 07:12:48 +0100 Received: by mail-wr1-f59.google.com with SMTP id ffacd0b85a97d-3822ebe9321sf1000952f8f.2 for ; Thu, 21 Nov 2024 22:12:48 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1732255963; cv=pass; d=google.com; s=arc-20240605; b=HYo37NgUQmb2ZUlchEY3O0GiO9oCFsjiBxQlNhj6J0a/gsn7jRvbGP/GBR3qgMKn8v C45GSsVRSqSUm2TEQlx0mgJpmOlagrc13ooeqAc6TTfKnNgkBbFXQtHMdjwm5q1rCkQF LbsH2f3teDxnBCEsfxg6p71ghqSnzyHnf0mwXosSIzlfCrzhjMQRY1icHo+VW1s2StnP zFz060xJ8QXSJ3GAHoB1qV9r7AH8fpOy+aJTfGRro+0d8jS/xYx6v/Qcq4HQ56GqK7rW 9W9vYFZEGIm0+5HGKKbeisFxz0dSQPbofO92654R/TaTca/OLKDv18l0ZtGTqIN1Iht/ bKNQ== 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:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:to:from :subject:message-id:sender:dkim-signature; bh=xbcgc3quaBt0HJn3mmLjKfcPlIPPFoGWxZ/E4ohqf6Q=; fh=DmEtZzqr5icZzoCB+uGjS/k+teWZsy1NhiXj/mNsWmQ=; b=j3uSTpyVfQNaMfpJjCABZnjOLDRoUZnBtXKdNT9PrsA7yDit16SoB/ekJya4fcXzPx qG6GzStqP6jUcIP51Ql+Pw2VPbg+v+t7ZH1yM1eKH8IocQRbrC5GBmEzMaBrR1dtm/0d 8gSv9OVoESGaXEpavKzECwa5QGigoXoSnzl0nQcVV5o22UUifuIe+TGa2IbBYUDe44gj KCeVUJA8Sk+PjN8ODsP6WDzyzGjsqmBpxlrcdi17jK8u2xR9Bt3ezwOcwsxzuz3AM64r ypdhCnud/s1/zcl8LoI2GR5foYeIzuYbqCopUAGINEV829hbCtQy1huf076ixp5wopiv FEHA==; darn=ilbers.de ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1732255963; x=1732860763; 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:mime-version:user-agent:content-transfer-encoding :references:in-reply-to:date:to:from:subject:message-id:sender:from :to:cc:subject:date:message-id:reply-to; bh=xbcgc3quaBt0HJn3mmLjKfcPlIPPFoGWxZ/E4ohqf6Q=; b=Bn8WcZqSasK/hWPw+h+8qECukNDof0tcqcAGWvzAvz88GA6fbuDXS7WGmnDd41rkxi BcPfJPIdtYXsKLizyxvUDo9wK06Ai5gkyCiBHQhlMNCtmKuNu2KXR73cFGXnrNd3gF3R DZflh7M79cdSzqAkIHgyB5+wrJUdwEumscKdFezSzD3kwn8Swm7zA1TIlk0PKNb+FAIo ynzsIFaIn0d6ls/f7WVOG53vyCYh0H/o6uTAgASa3ngLnIV5TXSXpKV4qOFhdM6FjRy2 koJIL7WtqJt/c8a9x1UmcVTBkdvAoEIIhQwnH0pMF/aSdi/zhUNHOMsY2+qjtWMA1cq+ cGtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732255963; x=1732860763; 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:mime-version :user-agent:content-transfer-encoding:references:in-reply-to:date:to :from:subject:message-id:x-beenthere:x-gm-message-state:sender:from :to:cc:subject:date:message-id:reply-to; bh=xbcgc3quaBt0HJn3mmLjKfcPlIPPFoGWxZ/E4ohqf6Q=; b=WFJ+qAO8Cj+3ruKqnwRDBoxVfn03Kmh3bKaNryQWYeECoJjLCSiUGayrGLwCfZcRhW mlWlpeZhKBX2VUcocmU3fiW0tQq6xje/ikuhfPbHXwgqcaAUmaGXaZrahsyFnJMJmSGm xvHxj8hkCSPydc2aVOQAU9ob7xMXxty9P+I7jJtU3gT6rpRPEHvKWYr/Bd11+RpuAtIG 7OWcYbzGmozo92BdxCZH6GowUwdw547tg+WTGBbWs0cYksg4rt/LaHjVrlYGWoemJ+CZ I/rE/UAZmVu+KA5yEMIZkg1q+LQ9ub7H7sts1UR1k/GuGxIoBPLk8rpKXwNdVlcdhpHB eqtA== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCVwZbDZS7/I2HOVT9ElEiGcTpK4Vwe1S3kSUBbx2k8jivaWt2IbQnA6LvYDdIEpovs20ikk@ilbers.de X-Gm-Message-State: AOJu0YyS2dLCjP9zrRh0/DYTENtRcWrshcW5XWs3uVfqxHySvJUj6Dhf tga0kX+pnWBnYgb2RgEyPIG97N55BDdlKPJXI4YVVA3tEoItLODW X-Google-Smtp-Source: AGHT+IEZx6xJLGQn3yrRD9i9GuBu7/PYu6DSx5H050j3SenaJBj6AByqRVMkrwL+ASrXzFLU70sLqw== X-Received: by 2002:a05:600c:46c8:b0:426:66a2:b200 with SMTP id 5b1f17b1804b1-433ce398a87mr11823955e9.0.1732255962436; Thu, 21 Nov 2024 22:12:42 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:600c:1d04:b0:431:405a:f96f with SMTP id 5b1f17b1804b1-433c5d8f91cls5536375e9.0.-pod-prod-02-eu; Thu, 21 Nov 2024 22:12:40 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWn1ynNQNkPzLFo/qw3QQdO1BXqcjUifQbIDWj01XVZ94ZH1t5gbZ+3snpZ7oTM/2jrMFIq6EXC9rIt@googlegroups.com X-Received: by 2002:a05:600c:4f87:b0:431:588a:44a2 with SMTP id 5b1f17b1804b1-433ce42113dmr11229325e9.12.1732255960120; Thu, 21 Nov 2024 22:12:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1732255960; cv=none; d=google.com; s=arc-20240605; b=kuAp5imUWp03MtbGK2bytZ4Ytk8qt+tirKXzQct52LTLjiQhaaqzM/W71tFwL2CSwm eHC2Qlhr5Ta3tjfmrkhUD5iHDWs+6c9JFmQzKAc4667qTIfFvp/Fr8hqoIJVOByaXAOY VylqJ+Tnk0IdUKDmPc3jmJhqiRJHKL/PkgQNuWpLpK/vwbvQ+uC8Q4JttjVGcW41eHyL lt3sQIYvKcnCukFBDSe2rYfqnqcv/czCT89a0YK6gVYLI6Ycr8/bVUxbnBQf5H31oXgK RVvV0lA4QZQIrzrfYeiGCQsxGqq4ZKGmk4TLOTpMs4tk8iYAy+F1ucKvvMJKuJJRliyk FilQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id; bh=EdcaBHtOu0XoJ3ZkUPZghgMttA175p2rqoYBVG4xZ+U=; fh=1x/T85rXr8yhgzXWAa7zssXnuyt2jGlhJYPIGFWr6UE=; b=VtdFEu/UHLFmzClmIareImoQWjVAUpZzwisy8an/Rnw+b3so5ZPHUfL5N2m+vNpV4Y 90Uaus4sPTMst7WKwhktIWIHSpQc1SE1SDgCv1qr2rWXE99GQL4wBuBoVcALyNUsnOke Ynf+XTip3kjOoSGeg3dLnYwwFheNeg/Dlj7DY1xaArsvSsKYYxGLEUb5CW2c8NpOl5YA 1gK5vSWimcqRRg6HFJH9qoI41n25J+61kedaJLIlzaXSUey/Sj7knbzxi6DWAp+asnrO tkIVOnnVGifhkWOwS4b/VbKiJcwusc4wYMLOmPuJTgn0yrkQ8o6Oxi4UAg6nlW0OcjZk 5hCg==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id 5b1f17b1804b1-43366cbcf1fsi4140145e9.1.2024.11.21.22.12.39 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 21 Nov 2024 22:12:40 -0800 (PST) Received-SPF: pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Received: from [127.0.0.1] (host-80-81-17-52.static.customer.m-online.net [80.81.17.52]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPSA id 4AM6CbIG016791 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 22 Nov 2024 07:12:38 +0100 Message-ID: <1e9a5535961e2d2a597b3bf6c5141d88ab26e4d3.camel@ilbers.de> Subject: Re: [PATCH v3 3/3] dpkg-raw: change DPKG_ARCH to all From: Uladzimir Bely To: Cedric Hombourger , isar-users@googlegroups.com Date: Fri, 22 Nov 2024 09:12:37 +0300 In-Reply-To: <5e56d7f698c9b25eea59373e904e24f2c9c91746.camel@ilbers.de> References: <20240926033935.2955085-1-cedric.hombourger@siemens.com> <20240926033935.2955085-4-cedric.hombourger@siemens.com> <5e56d7f698c9b25eea59373e904e24f2c9c91746.camel@ilbers.de> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.54.1 (by Flathub.org) MIME-Version: 1.0 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-Original-Sender: ubely@ilbers.de X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de 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-TUID: j7BasqXP2jey On Fri, 2024-11-22 at 09:07 +0300, Uladzimir Bely wrote: > On Thu, 2024-09-26 at 05:39 +0200, 'Cedric Hombourger' via isar-users > wrote: > > 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"). > >=20 > > Signed-off-by: Cedric Hombourger > > --- > > =C2=A0RECIPE-API-CHANGELOG.md=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 | 10 = ++++++++++ > > =C2=A0meta/classes/dpkg-raw.bbclass |=C2=A0 4 ++++ > > =C2=A02 files changed, 14 insertions(+) > >=20 > > 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: > > =C2=A0``` > > =C2=A0HEADERS_INSTALL_EXTRA +=3D "nvidia" > > =C2=A0``` > > + > > +### 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 > > =C2=A0 > > =C2=A0D =3D "${WORKDIR}/image" > > =C2=A0 > > +# Create a binary-indep package > > +DPKG_ARCH =3D "all" > > +DEBIAN_MULTI_ARCH =3D "${@ 'foreign' if '${DPKG_ARCH}' =3D=3D 'all' el= se > > 'no' }" > > + >=20 > Playing with isar-apt I've found an issue that existed for a long > time > but with this patch it became easier to find. >=20 > For the packages with "all" architecture there are no source packages > found in isar-apt. >=20 > Steps to reproduce: >=20 > 1. Run `bitbake libhello hello example-raw sshd-regen-keys`. > 2. Check isar-apt contents (e.g. `build/tmp/deploy/isar-apt/debian- > bookworm-amd64/apt/debian-bookworm/pool/main/`) >=20 > With current `next` we have in isar-apt: >=20 > ``` > libhello=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 dsc + deb > hello=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 dsc + deb > example-raw=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 only deb > sshd-regen-keys=C2=A0=C2=A0=C2=A0=C2=A0 only deb > ``` >=20 > With this patch reverted (and some followed patches): >=20 > ``` > libhello=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 dsc + deb > hello=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 dsc + deb > example-raw=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 dsc + deb > sshd-regen-keys=C2=A0=C2=A0=C2=A0=C2=A0 only deb > ``` >=20 > Package `sshd-regen-keys` is still affected since it explicitly sets > DPKG_ARCH =3D "all" in the recipe. >=20 > Debugging shows that source package goes to the isar-apt but later > is wrongly removed by `repo_del_package` from `repository.bbclass` > due > to "all" architecture. >=20 @Cedric Oh, while I was writing this email you seem to have sent a patchset that fixes the issue. Thanks, will check it. > > =C2=A0# Populate folder that will be picked up as package > > =C2=A0do_install() { > > =C2=A0 bbnote "Put your files for this package in $""{D}" > > --=20 > > 2.34.1 > >=20 >=20 > --=20 > Best regards, > Uladzimir. >=20 --=20 Best regards, Uladzimir. --=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/= 1e9a5535961e2d2a597b3bf6c5141d88ab26e4d3.camel%40ilbers.de.