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:07:22 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-lj1-f189.google.com (mail-lj1-f189.google.com [209.85.208.189]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 4AM67Lfm016692 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 22 Nov 2024 07:07:22 +0100 Received: by mail-lj1-f189.google.com with SMTP id 38308e7fff4ca-2fb53ef3524sf12164481fa.1 for ; Thu, 21 Nov 2024 22:07:22 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1732255636; cv=pass; d=google.com; s=arc-20240605; b=Y9/qx0FjeXamCAUN1txQbywRtHFQ9fgjH1AG6QSwuzybMJxS2y7+LGEZlghLrwfkks nThrm5CZxmsNAeMVKtnxZip0R6KHYdpDNkuqTer8Ki3d8gwqno+q8Nka12qroeH6o7N4 EF1vQ/3gcInSbSqvSws1c2tkicVlRAOo1Vw0KbMUatL8siSCvHqXSCYZgsaw11OUp8DR y47sp98PSg194jWx7aytvblkiogDuqXEFUJ6DNurQo0YRxxllYnuiAUqru8/yIb8woqn TevUaRaGDCA+x9pUuw/ddBZmEOE9+miiwVyW+0mEP+zJ+dQceTTkiotdvHn86+y6csBj vjcA== 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=eFPUFejNBemRG6Qv0THt1RCnzanz1bKMNCdovGnE9BE=; fh=1SudlHQut3JsP5eAIlQ8QHmCDGk7fEH8++GGHHSjyZ4=; b=frpK3U6zWK1YYXj4zhhCACqfdslNqad/LkC/j9o0hQ/pjVNtVVCmkiDBY4ATm5NBuc SYN/6EyxTuTOzkntwklvCMSjMLd4z1qBYC+43tJhkstc4m0akZUJP7msCvpgXLXgSanx yZgOytu2G4mxkwizMEMo/V3w3tCPCU5k8jOLWgvhxE2wTt4wvjdr9rnPyNc4mJA4lIHo dfQIZZLOg5DZbbb4A0Ib5MOCiJUnzHzSUWgOxiLSxyo283dcQw62qT1Ed1LNEUqWavFD iINfm60KBcGSGTq0ccAq+bqyRT6zlnwFiomoIbfE1V7AfZZokVnwCdekKkAUoVgW63NH L2dA==; 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=1732255636; x=1732860436; 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=eFPUFejNBemRG6Qv0THt1RCnzanz1bKMNCdovGnE9BE=; b=NuLho/RuXjwm3XmoauLOx/d3uRL10WR01AyFO0Ioxt+0PdbKw7cMCnMV6Y0ocCllqS z72RKJ1lNYl31Xl4LT4th/H/LgzbAVY5+Qsap77agHbKv+koeDrzQQVISkRpowCvWBW/ CCMcec72KWc9BQpJlObwVDbOan1CcRq8+san5kuPczcdLmGk84aeEAw+0qnG0RQ8Mafb 59pL11RpdSPktz+ifNmvoENMzZyAKRtSzKjIs06RcEW63P+hGrZtidg11Erc4jEzENfV uyXKfj903esLaO5qmA2NvqAi6Q0VO93t33RFH/YNR0HM/+8VXML0emHkckZUYy0z+bNY fb8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732255636; x=1732860436; 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=eFPUFejNBemRG6Qv0THt1RCnzanz1bKMNCdovGnE9BE=; b=SnAsd7lySPguQOmVbUHqtvvZAffyfHdNi0RjAGU3PuLK6Af/OFByjJWKQ/Z5zBFHtr iYCCvt8baqdZiRPUMnIooAiqsS0/rLxtlzqHmGFCFDaKKXmYTdLsH7WY7YQhl49YxQkx 1C2eGZX+DYGyP372bldv9Uv+Y+6cB+Wrlij6RQ9FDdm2N25E1zZ9jMZ7OD2UBw8aovcL zx1R+l1O9Ba50/Y0egOq78AmKruplLorLbfHhjx5GKAmdCMOLyEXSwyFcfswdpbZbN++ QUR89g0pwz+M6kg6tlr2MkOhE3dSaLu+y44QBQ9HXHCTj96jvW9voEg0awnu5LKELz7l K4/Q== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCX5OrXw2OHD0tma690RGRDeuDT3a2k6FrzmaSjz4zaJCpYE54XjICAPl50kfQrSK6tIJDcN@ilbers.de X-Gm-Message-State: AOJu0YxBvDoTTbhHYOPfuLxPzjFScwTyZiWWJgGwItfD55HLOLw9O3Lu wJYv7H1G4fW1nsTyKHkASmOd1OKzs+JbgK0qwNyt8/pmbTpupqcD X-Google-Smtp-Source: AGHT+IE3M2Y0eJtIoxpBAt6ehQ3OF/5t487pmJk9oBzSSIN1Q2VFx5W/Yvpl8uNJ+ZrYzjdlWrTj1w== X-Received: by 2002:a2e:a550:0:b0:2fc:a347:6d90 with SMTP id 38308e7fff4ca-2ffa71e07e6mr6320291fa.27.1732255635563; Thu, 21 Nov 2024 22:07:15 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a2e:9046:0:b0:2ff:a438:d238 with SMTP id 38308e7fff4ca-2ffa438d4adls2242441fa.0.-pod-prod-07-eu; Thu, 21 Nov 2024 22:07:12 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCW0PNfpiKxCdPiq2ztetpnA0lSZj2BVeupIatjwZiGqM53GA3bsr5x0FPOSAHIsQ7Kjwbt/y4eXr1X3@googlegroups.com X-Received: by 2002:ac2:4e09:0:b0:539:8980:2009 with SMTP id 2adb3069b0e04-53dd39a5198mr406855e87.36.1732255632279; Thu, 21 Nov 2024 22:07:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1732255632; cv=none; d=google.com; s=arc-20240605; b=ko/oXsQ1OCn4dmNT42CSHPZq9VCMiMlVSzudO9A19j8RAL0n/2X+rWsb/m7XMkLram cM2FLuoU93V4NQyq+cu8IYoB+Si/G9ct662ord4SQEIHe2xLQalDOrMk6KD5lhFo01+H LgavFhdXrhDzzS1py6Vjl2OIfndBvl3BbriqVvCnNRNix+zbdAwqwakYi3J423wWzJsn mdmmMeCRqLZ+GqOO8Np7ZFBFLM3M6GN05uRX7Jm1i7pzKpWKO52QTuyIZ7JuvLpMxmjT +ozeZTkbC59O6aSSWYJrbbOO/4hblEboYkP9LRzLJaLFvgx92vjqakqa6ZDl2IgQG6Hs rlLQ== 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=gXYUcXpQfO1CC8jwd15f/XFaOZjHqi45hrg0S3Woxnw=; fh=1x/T85rXr8yhgzXWAa7zssXnuyt2jGlhJYPIGFWr6UE=; b=HGuQjBU0thBip79C5iNWLt/wbHRt+1Wuc1PAdkeJuaYtVx6TOFV0W6StCO/z4PRn+4 lJg5cl/e4lyOpjhxC1ShWIPLrEpBgulhaY5blj6gj/YBK4Td5bt7ZO4l6amMQAUZwx5h Xacv63QUliHOgAPje5O66oOuwkNTZ4DuOvt/FBaWbzamDkVFUZjEwrUIQw9lw+Kk34EZ ToyaxyUcRcicAat1bqf7/iFX88SJhIdDbNGBiSbHWbsYUw85Mib2IjVRafBhuGzPjEqP nrTDYGNxHV7OamFUdDEIlwbSG7LDQa8EfABm8WvWDVr8PN4+e/gSz8ni88NttHp2kbWQ y26Q==; 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 2adb3069b0e04-53dd243b001si40546e87.1.2024.11.21.22.07.11 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 21 Nov 2024 22:07:12 -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 4AM6795Y016686 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 22 Nov 2024 07:07:10 +0100 Message-ID: <5e56d7f698c9b25eea59373e904e24f2c9c91746.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:07:09 +0300 In-Reply-To: <20240926033935.2955085-4-cedric.hombourger@siemens.com> References: <20240926033935.2955085-1-cedric.hombourger@siemens.com> <20240926033935.2955085-4-cedric.hombourger@siemens.com> 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=-1.9 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_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-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: j8cVjxUcEUny 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' else > 'no' }" > + Playing with isar-apt I've found an issue that existed for a long time but with this patch it became easier to find. For the packages with "all" architecture there are no source packages found in isar-apt. Steps to reproduce: 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/`) With current `next` we have in isar-apt: ``` libhello dsc + deb hello dsc + deb example-raw only deb sshd-regen-keys only deb ``` With this patch reverted (and some followed patches): ``` libhello dsc + deb hello dsc + deb example-raw dsc + deb sshd-regen-keys only deb ``` Package `sshd-regen-keys` is still affected since it explicitly sets DPKG_ARCH =3D "all" in the recipe. 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. > =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 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/= 5e56d7f698c9b25eea59373e904e24f2c9c91746.camel%40ilbers.de.