From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id A7E1BC38145 for ; Wed, 7 Sep 2022 16:22:26 +0000 (UTC) Received: from mx0a-001d2f03.pphosted.com (mx0a-001d2f03.pphosted.com [148.163.144.40]) by mx.groups.io with SMTP id smtpd.web12.747.1662567740113810450 for ; Wed, 07 Sep 2022 09:22:20 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@hach.com header.s=s1pps20200804 header.b=unakiHmi; spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: hach.com, ip: 148.163.144.40, mailfrom: prvs=524967149c=guillaume.deroire@hach.com) Received: from pps.filterd (m0161802.ppops.net [127.0.0.1]) by mx0a-001d2f03.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 287GIfx9022431 for ; Wed, 7 Sep 2022 16:22:19 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hach.com; h=from : to : subject : date : message-id : content-type : content-transfer-encoding : mime-version; s=s1pps20200804; bh=YOrHondascqIVUvS5OrNpcdx2RSWDA9FS8bkw9xozP0=; b=unakiHmiJmNrtEuXxz0Hzn3NyDbRQW46xATNFUQsMUKOTNNLwpaEL/jZINkWWn1yLM+O JQK3PHgpESZAzXrH5Z9EH0Xccb7bbtSffsDYYtHhEl9UjYqN1njzlhIUPkniBV8YEg7S lZ2/CFBtPhdLbbeDSLjDpVNy3H88iBH3MNd/MIdGp1vCXiYZeR6CmfjppEx6XMAgvsuH 6oX9Ggmep7ILuQ1VkbpQfz+kBcNet/XuCu0xCkfCHMPUtwpejb0EA08HbOwY2aOxO9Ba 8wH3O9xQmFFDuYFSCfEPMSo75lenVE1Yci3giSJNHaSncop7NZUBGsoPwnZRDVxoF03E Vw== Received: from nam10-mw2-obe.outbound.protection.outlook.com (mail-mw2nam10lp2102.outbound.protection.outlook.com [104.47.55.102]) by mx0a-001d2f03.pphosted.com (PPS) with ESMTPS id 3jbwbxxr6m-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 07 Sep 2022 16:22:19 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jCYKsxdgMmPWzIUzcTBZE3xmK7V1dPEKqMaMoqCjjYAYV3jG3B8ZvO2bs37Eiw7kfmRWbmR1LVayv12CzJiGkqAYqIW1YtpT/HRDFyvw/G7sWp+LY0rZYouPKVhr1GdUdnkoOguf73PziOzj3hnB57c+9IHgEBNBx7TQRQnNS9fP+2X4MpLq3kRhW9W5+f0nR8q3/wusWhm8tjsh90NFE87MUbGVTAx8oKgKpn0836I4LaVhBJgaPU8g/2+Y/daj8O4i95BoUDZK3fGF9Cw5r4hVjmEiXhEIVi8vHPgqGmW9q3y53KcyRRbB7ykn2APVmZej7HhDGcQzl0xUHn3bsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=YOrHondascqIVUvS5OrNpcdx2RSWDA9FS8bkw9xozP0=; b=dAW8i4a2nDdusKiiVK8yct2dkmdQXQEl/XgMzz9tWj2ruit43a3HGPt4hz4Z8EbhccN4I9J/2BbaBujza+nNjqV7u06BTgHThApoXE6Sdyj5He3E3rovjaeEGSK0iwRi/wxUG6XTF29PP8ZHQoAsExlFDG/9NWwVQ1XujYFRlx3xcz5dx+9FDtPEv2NtfbKZ/59r9F307ce5HoRkIak6cb/FhPzk9Axg9FLU/gJVTZE1MXMauUh0lhTgZ2GDXBqZ6vg25sqvNK3oy4yc2yHLnMUKe1dM1UaM/92nsJYYz03+52TBUk4K5RVAghK/EDC08zmVGKjJuT1yPM+AynQiew== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=hach.com; dmarc=pass action=none header.from=hach.com; dkim=pass header.d=hach.com; arc=none Received: from CO6P222MB0554.NAMP222.PROD.OUTLOOK.COM (2603:10b6:303:14d::11) by CO1P222MB0292.NAMP222.PROD.OUTLOOK.COM (2603:10b6:303:15f::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5612.12; Wed, 7 Sep 2022 16:22:17 +0000 Received: from CO6P222MB0554.NAMP222.PROD.OUTLOOK.COM ([fe80::340e:60d8:56cc:9b83]) by CO6P222MB0554.NAMP222.PROD.OUTLOOK.COM ([fe80::340e:60d8:56cc:9b83%3]) with mapi id 15.20.5612.012; Wed, 7 Sep 2022 16:22:17 +0000 From: "Deroire, Guillaume" To: "meta-freescale@lists.yoctoproject.org" Subject: fsl-dynamic-packageearch.bbclass improvement for MULTILIB support Thread-Topic: fsl-dynamic-packageearch.bbclass improvement for MULTILIB support Thread-Index: AdjC1YusBCxMWeDfQBKoS5zA/XkcAw== Date: Wed, 7 Sep 2022 16:22:17 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_73094ff5-79ca-456b-95f6-d578316a3809_Enabled=true; MSIP_Label_73094ff5-79ca-456b-95f6-d578316a3809_SetDate=2022-09-07T16:22:03Z; MSIP_Label_73094ff5-79ca-456b-95f6-d578316a3809_Method=Privileged; MSIP_Label_73094ff5-79ca-456b-95f6-d578316a3809_Name=Public; MSIP_Label_73094ff5-79ca-456b-95f6-d578316a3809_SiteId=771c9c47-7f24-44dc-958e-34f8713a8394; MSIP_Label_73094ff5-79ca-456b-95f6-d578316a3809_ActionId=f9aa5760-572c-49da-bba5-ca9658b12d60; MSIP_Label_73094ff5-79ca-456b-95f6-d578316a3809_ContentBits=0 x-ms-publictraffictype: Email x-ms-traffictypediagnostic: CO6P222MB0554:EE_|CO1P222MB0292:EE_ x-ms-office365-filtering-correlation-id: 4134a6cc-fca4-4fa1-c77c-08da90ed21f4 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: NMbxFJoYHWPSe+9YY0o7tPmSpbEeBCY2DbiwfQr+l4+NOO0+yIAMnqTRGuGBolDyz/nisdIrX4ToBeCfKgg/Ib07D9Cj0XjTuqP3r0pu127V2NZR50mz8dcpPZFueBuxuafoCbCtlWXUC1n/DHs74aNM2a9/kmd5qf5OXOdkn9mx5fly29tZN2+HR071ROzzIKvdg4X7fvTEB4Zdwq5ncC6To15dpXVgQTFNV/q4FxvhvkLKaFvsRlq7wS4P6uYfOG3GuL8C/hCxT9UF5rWL3yL4sUj6Rf3z+MTUyiVgktslIOqcwm5kKlCBUOYZae/JykbGg52MMTuej7ZQDh8/kN44xJCm5nn513F3uJRQq9c8j6XGCTaWVZQSgtonbQIXekjBra3TndU/Oth9kmaq9rUCp8AKLWT7ifAFMSm3aN/NcKBQDUggEh2ev6o+tQ0yaEyyQM9fQeJHC+X4krPIjGjNcdiLBhlRR4VWdK32p/aH/6OxvN+kwAXT4vk+QzgLvoAcOjHWHIeVfrdnmwYHku8sx6Vb4ps7RQdDa0gKDbEXKBENuz6JgAvNcU/dCYCbDJxvCMVDXn1QfI6EXI1wEz3AUYWQBs9bMtgIkyKCAADJcGvqqi+Hme2yk8XTIr/iObhxZGV9GFGiknQwJJENm+7/R0dBA0BPp/SssNNkLg/AAGMg6qFtMiugTEzP5D4F6M/9PH0Oa69FIwo/vOu4OUC/ClS+kFNQjy6yt3emdUrzhk4VFwyDcaqRC002UlWSicRAHz479RwSoDjkuCfLRw== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CO6P222MB0554.NAMP222.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230016)(4636009)(376002)(396003)(346002)(136003)(39860400002)(366004)(8936002)(83380400001)(38100700002)(9686003)(33656002)(26005)(186003)(52536014)(5660300002)(55016003)(2906002)(41300700001)(6506007)(7696005)(6916009)(38070700005)(8676002)(66446008)(478600001)(71200400001)(66476007)(66946007)(64756008)(66556008)(86362001)(76116006)(122000001)(316002);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?J5vUKM0Q+Cb8WO9fe+eyUuQh0FNq6ru87hvCZqljSHmqEiFQuLelCnMC62Iu?= =?us-ascii?Q?VmcXzp/k04x8ML1+5TuIebV1h0amWJwBDSWo91mOg2R00h22t1TD5b1DjUEY?= =?us-ascii?Q?Mbhi23slXwB4/1A2oK7f4jyCa96GToMGDTduXXf+HhivOBfDskzR73/d2oHO?= =?us-ascii?Q?bEOvLSU/Mk1KR6q8sa7zCgX5Wcxcd+xYI6CalB7FICNc0UeIRQzd8Q3QFbJ8?= =?us-ascii?Q?hlxniD2b4ZXtdOiQ07LiMeNnnLpX8yOdbmRmKuJhO/OfslAb+MJc82QKbOpG?= =?us-ascii?Q?8Ca/FOq8q+zJaoPb0m+gFC1boFpQK43QywHHh53o0PcWTHB6N8FmYRUr3Lmf?= =?us-ascii?Q?6NwKCPNxvfzClW7Db+J5RN25TQqURpWJ6qOGJE/mOZljlOIL4zAxqwqpLhn2?= =?us-ascii?Q?4zAeYaYFSvOT9AdEcHBBL+ZCP7BeM24mTVhkLzF+6NiKmIAAxvYvI7gYfJgz?= =?us-ascii?Q?4YwYMrfJC090Idsng5VTJi/nqDJBsl7qBEyVF/79j3Nfweuauj2gbXMfWgBL?= =?us-ascii?Q?MNPWxJSuaFhMqKkMMOoCWsiX8RDwachWb2TtC7vNXZFBTY8QR1qvdiZLhuVN?= =?us-asc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Wf4E4zQgzxdyblneQ9l1MVPz?= =?us-ascii?Q?dVCNyvxXGR1BBb2i1GBH5HtkP+hkeHhLvtDCguFjmXOhwr2K6aV7ua/LbSiy?= =?us-ascii?Q?SvC6ddOJlKFkIXEU1MGvJcbPJCE5CHbs/FSbPl+cYCv4ashf39EM7bgZC328?= =?us-ascii?Q?ow=3D=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: hach.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CO6P222MB0554.NAMP222.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: 4134a6cc-fca4-4fa1-c77c-08da90ed21f4 X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Sep 2022 16:22:17.7372 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 771c9c47-7f24-44dc-958e-34f8713a8394 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: I8hXfHV0Kg9bYb6khdrbNPqjzHGkWow6jr4TmggoDYUKplZcMqlbGCWX5KyoIIaY9f7TDuP7c/4Tx5QgQHQJn+8xVxydpws1GHfKrjhQumE= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1P222MB0292 X-Proofpoint-GUID: BRAJ_XTb2vDkDpq4wZvJFJ7CIon1o7KY X-Proofpoint-ORIG-GUID: BRAJ_XTb2vDkDpq4wZvJFJ7CIon1o7KY X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.528,FMLib:17.11.122.1 definitions=2022-09-07_08,2022-09-07_02,2022-06-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 clxscore=1011 malwarescore=0 suspectscore=0 mlxscore=0 impostorscore=0 lowpriorityscore=0 mlxlogscore=751 phishscore=0 adultscore=0 priorityscore=1501 spamscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2207270000 definitions=main-2209070064 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 07 Sep 2022 16:22:26 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/meta-freescale/message/24858 Hi, I have recently tried to use the MULTILIB feature of Yocto Dunfell on a iMX= 8 platform and I was not able anymore to build the SDK as soon as I add the= lib32-libusb1 in the package list. Libusb1 has a dependency on wayland-protocols and it seems Yocto can find a= ny suitable version of lib32-wayland-protocols during do_populate_sdk. Here is the error I got: > test-image-1.0-r0 do_populate_sdk: Manifest /workdir/oe-core/build/tmp/ss= tate-control/manifest-x86_64_x86_64-nativesdk-lib32-wayland-protocols.packa= ge_write_ipk not found in 1388_imx8x aarch64-mx8 armv7at2hf-neon armv7ahf-n= eon armv7at2hf-vfp armv7ahf-vfp armv6thf-vfp armv6hf-vfp armv5tehf-vfp armv= 5ehf-vfp armv5thf-vfp armv5hf-vfp allarch x86_64_x86_64-nativesdk (variant = 'lib32')? > ERROR: test-image-1.0-r0 do_populate_sdk: No manifest generated from: lib= 32-wayland-protocols in virtual:multilib:lib32:/workdir/oe-core/build/../la= yers/meta-toradex-nxp/backports/recipes-graphics/wayland/wayland-protocols_= 1.20.imx.bb > ERROR: Logfile of failure stored in: /workdir/oe-core/build/tmp/work/1388= _imx8x-tdx-linux/test-image/1.0-r0/temp/log.do_populate_sdk.2532219 > ERROR: Task (/workdir/oe-core/build/../layers/meta-eagle/recipes-images/i= mages/test-image.bb:do_populate_sdk) failed with exit code '1' However I can found "manifest-armv7at2hf-neon-mx8-lib32-wayland" in the sst= ate-control folder. I'm a bit lost in that piece of code, but my understanding is that the fsl-= dynamic-packagearch.bbclass is appending an additional ARCH based on the cu= rrent ARCH + the "MACHINE_SOCARCH_SUFFIX" suffix, but doesn't manage the MU= LTILIB architectures. I have draft a patch to manage all ARCH coming from MULTILIB that seems to = fix the problem but I would appreciate any comments (is it the right way to= fix the problem, is the patch correct ...) diff --git a/classes/fsl-dynamic-packagearch.bbclass b/classes/fsl-dynamic-= packagearch.bbclass index 9fcf37be..f8b12a2c 100644 --- a/classes/fsl-dynamic-packagearch.bbclass +++ b/classes/fsl-dynamic-packagearch.bbclass @@ -54,6 +54,17 @@ python __anonymous () { if not machine_socarch in cur_package_archs: d.appendVar("PACKAGE_EXTRA_ARCHS", " %s" % machine_socarch) + multilib_variants =3D (d.getVar("MULTILIB_VARIANTS") or "").split() + for variant in multilib_variants: + defaulttune =3D d.getVar("DEFAULTTUNE_virtclass-multilib-" + varia= nt) + if defaulttune: + package_extra_archs_tune_archs =3D (d.getVar("PACKAGE_EXTRA_AR= CHS_tune-" + defaulttune) or "").split() + arch_suffix =3D d.getVar("MACHINE_SOCARCH_SUFFIX") + for arch in package_extra_archs_tune_archs: + socarch =3D arch + arch_suffix + if not socarch in cur_package_archs: + d.appendVar("PACKAGE_EXTRA_ARCHS", " %s" % socarch ) + if d.getVar("TUNE_ARCH") =3D=3D "arm": # For ARM we have two possible machine_socarch values, one for the= arm and one for the thumb instruction set # add the other value to extra archs also, so that a image recipe = searches both for packages. Kind regards Please be advised that this email may contain confidential information. If = you are not the intended recipient, please notify us by email by replying t= o the sender and delete this message. The sender disclaims that the content= of this email constitutes an offer to enter into, or the acceptance of, an= y agreement; provided that the foregoing does not invalidate the binding ef= fect of any digital or other electronic reproduction of a manual signature = that is included in any attachment.