From patchwork Sun Dec 22 16:22:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Hochstein X-Patchwork-Id: 54537 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 4F6AFE7718D for ; Sun, 22 Dec 2024 16:23:08 +0000 (UTC) Received: from EUR05-DB8-obe.outbound.protection.outlook.com (EUR05-DB8-obe.outbound.protection.outlook.com [40.107.20.46]) by mx.groups.io with SMTP id smtpd.web10.27158.1734884579574530729 for ; Sun, 22 Dec 2024 08:23:00 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@NXP1.onmicrosoft.com header.s=selector1-NXP1-onmicrosoft-com header.b=YIAetN2p; spf=pass (domain: oss.nxp.com, ip: 40.107.20.46, mailfrom: tom.hochstein@oss.nxp.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=BzBfuvzfg59TH3bGK7k2vsjOv+Xzqu0h2cddfFU7rqMzme+G9TUqLTKcelwNNtCl2QS0K598DZ2eISchYEod2/AHlhL4YGG2i6GP1JC3reY1yh0QJKTz/nYB52F8UdesJP1BbADNkAO9JnGe9z5anrGq1hG0ZTNEZd6yxlK+UH0EZalDXtZ9q5CnnJEyY7W/MigyNYK+zunUWY/blnPaahXD7BxUBlKhS4HBBzIyza5+Ffz0N04M1AoHqXqZ5HyobWII925eWd70srb2KulSo5xs2W0VZqy2dSKPRnNpTVpbEON8NNCmRhuCwAm1bj9Lshoz26D5kP6yd1IYDAzdHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=wHV92y8DSYfToHl6jXQa4dt4yHKHiEzMvXmZcYJB6OM=; b=mKK0en+pM+YfL4WZxVlGoz0xYz2UOyvQueQHNlMNAg/yxsjd9sYLhtXJ27g9UaQdbToO8lDxDlKKuG5t6QJPo9lVDaJXaDC1BQb5KBMGnweOicV3zJF9aHp2GcZRubhjST4QbEgWkq7GP91/BiRGdvIFIqwRm4GrrzxSWbtu/HhOoBirgMJgpwDrztm1XOGoL+KWPuYOt/Ez0baoLvsU0lZUNoxWKGkdHJn9npCPW8mKej4ETfgiXEeoz0PzJiTE2E/1t+hrR+HpFENWzlFdWkXIN/LmHZMtklt4EcNakWSn3xcIbNINMwmTQWWKmme1qKo25vxDTTy6+XRho/6VQA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector1-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=wHV92y8DSYfToHl6jXQa4dt4yHKHiEzMvXmZcYJB6OM=; b=YIAetN2phk3g/XPvw2RaU64cF3V1YOtbnbvLajmMcJycxvnuLrqE49oJoeCcRZSWw8a82Yprc2PByNAMbLutK3PBENPPBH4A9p/l2GjsloGafPK5N/XE5YZSJU29yz06pgLbX9m3CJkFGKZEZogW+KNoZyEx3INaWgIPJoj/XE20X9oOGGjuaId0WDVgmoNgT5aihTakIznWLxUq5Ve+WP1tNLMWyw3hQuURc+mwx/V9Qtdcwt0+yXn6qhw4uwW/OEvrNJ/1z6GxFeYcRiPpTld3Xqsi0na5x/8+pMumT3P56BWvVT5VTbQxfth8Z7zLJmL4QZ7C7kY/CatQK2SrGw== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from PAXPR04MB9448.eurprd04.prod.outlook.com (2603:10a6:102:2b1::21) by AS4PR04MB9483.eurprd04.prod.outlook.com (2603:10a6:20b:4ec::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8207.18; Sun, 22 Dec 2024 16:22:55 +0000 Received: from PAXPR04MB9448.eurprd04.prod.outlook.com ([fe80::51ae:5f12:9744:1abc]) by PAXPR04MB9448.eurprd04.prod.outlook.com ([fe80::51ae:5f12:9744:1abc%2]) with mapi id 15.20.8272.013; Sun, 22 Dec 2024 16:22:50 +0000 From: Tom Hochstein To: openembedded-core@lists.openembedded.org CC: Tom Hochstein Subject: [PATCH v3 1/5] pkgconfig: Add pkg-config-native to SDK Date: Sun, 22 Dec 2024 10:22:30 -0600 Message-ID: <20241222162234.2411262-1-tom.hochstein@oss.nxp.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: SN6PR16CA0049.namprd16.prod.outlook.com (2603:10b6:805:ca::26) To PAXPR04MB9448.eurprd04.prod.outlook.com (2603:10a6:102:2b1::21) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9448:EE_|AS4PR04MB9483:EE_ X-MS-Office365-Filtering-Correlation-Id: 92743eef-e678-4319-7517-08dd22a4e0e5 X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|52116014|376014|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: 72i3dfMVQPROoywnntpqfgtO8D9YUNn4NP/COouSOAtQwOAU/yXf1N8MjvdCxwKysCar8fidS2yjFX8NERhpDWxNo0nFeJr9tYdLjS7C940Yu6szPVMFZIyzZSRLo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GHpqAUOydGymBjcwlHqRTt1rYvh7lrYsGSJQellYPay+b+sKB1rVXMO66yEbQYpWZ+C5ktS1H5VT8mq0P3GyBBATcPW2/f1wB148d0uzle7bRUdjRVs01l/02bMrAdr+qMqJG5zBLaN7k9xWgJDFHTqWcAnXYBU+cMfpoVjLQ/5YUG9X1FRoxIKPKakx/J8j2NxnxuO+x1gUm+Fhd8/gQFxdjD676Ca1LPEXFeg6/DRP15ud+7DoyBPcFSfUnsq1T/k2ODFm96 X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9448.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(52116014)(376014)(1800799024)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: mljgu1UcHuzG8/pHlaDIYhdhaEVeI3sv3TJ1kdCbOu+1Ij1vMk5sTCFADErvr+oxuvGrLeck9QQB+Bs9hfliEeSn2ptfBXRPo+gQQg0pVDiCPERm2N619//eaTgVm7jhS5Ok2RXE5tVGAqIp6E/uFtFxZhKRVlTDW+qZLyB5wgMh8GyDsxg6R0d/VreMSEV+jwlSUkHEQP9DbUMpjbU++LDDiCXF8NGnu2UFEBENeCztFMre2vncx+ifRXw1V6A5SQ8pBYBlNTRvPnKmcD9haTNe3JBmCxOGEZu7+p+42K4MsgQ780LSkCOp8ExI+gUd553toeaZYIxZ+fsIHfFquN+i5vOSIhEvjC5nnMGakqeRWWmOTGYzVCjQrmtfUjrCRMqxHlKVSN8u9r425dZWsRaLOGn96nZCb4UvdllkZVXOqFmR2OMYVGGkN4efqka/8dA4iw4anGwarY14R33HBzl+zlrOkAQ+ryy6ISgeLCzqIoE0xJgqYNyoq0oB1/CjdFQbuzOw1XZdYlpaLuRYzfgEVY6UJ1Vj/iBvl6An2I6qyzLiSsBEUJ46/s7v16ZbdF+uIH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22a4e0e5 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9448.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Dec 2024 16:22:50.1560 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: m6XKu48jp+alEpU6xgcZ+7ykWcKeKwHpvO8RMcdzwSaCxEevk7hUhgasAWfbqCurRIfgbf36eEc72goHSKVciw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS4PR04MB9483 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 ; Sun, 22 Dec 2024 16:23:08 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/209007 Building weston with an SDK fails to find pkg-config-native: ``` Did not find pkg-config by name 'pkg-config-native' Found pkg-config: NO Found CMake: /opt/poky/5.1/sysroots/x86_64-pokysdk-linux/usr/bin/cmake (3.31.0) Build-time dependency wayland-scanner found: NO (tried cmake) protocol/meson.build:1:14: ERROR: Dependency lookup for wayland-scanner with method 'pkgconfig' failed: Pkg-config for machine build machine not found. Giving up. ``` Fix the problem by extending the pkg-config-native wrapper install to class-nativesdk. Signed-off-by: Tom Hochstein --- meta/recipes-devtools/pkgconfig/pkgconfig_git.bb | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/meta/recipes-devtools/pkgconfig/pkgconfig_git.bb b/meta/recipes-devtools/pkgconfig/pkgconfig_git.bb index 6f13d0177e..2b298eb5e8 100644 --- a/meta/recipes-devtools/pkgconfig/pkgconfig_git.bb +++ b/meta/recipes-devtools/pkgconfig/pkgconfig_git.bb @@ -46,9 +46,9 @@ FILES:${PN} += "${datadir}/aclocal/pkg.m4" # specifying an appropriate provide. RPROVIDES:${PN} += "pkgconfig(pkg-config)" -# Install a pkg-config-native wrapper that will use the native sysroot instead -# of the MACHINE sysroot, for using pkg-config when building native tools. do_install:append:class-native () { + # Install a pkg-config-native wrapper that will use the native sysroot instead + # of the MACHINE sysroot, for using pkg-config when building native tools. sed -e "s|@PATH_NATIVE@|${PKG_CONFIG_PATH}|" \ -e "s|@LIBDIR_NATIVE@|${PKG_CONFIG_LIBDIR}|" \ < ${UNPACKDIR}/pkg-config-native.in > ${B}/pkg-config-native @@ -59,6 +59,15 @@ do_install:append:class-native () { install -m755 ${B}/pkg-config-esdk ${D}${bindir}/pkg-config-esdk } +do_install:append:class-nativesdk () { + # Install a pkg-config-native wrapper that will use the native sysroot instead + # of the MACHINE sysroot, for using pkg-config when building native tools. + sed -e "s|@PATH_NATIVE@|\$OECORE_NATIVE_SYSROOT|" \ + -e "s|@LIBDIR_NATIVE@|\$OECORE_NATIVE_SYSROOT/usr/lib/pkgconfig|" \ + < ${UNPACKDIR}/pkg-config-native.in > ${B}/pkg-config-native + install -m755 ${B}/pkg-config-native ${D}${bindir}/pkg-config-native +} + pkgconfig_sstate_fixup_esdk () { if [ "${BB_CURRENTTASK}" = "populate_sysroot_setscene" -a "${WITHIN_EXT_SDK}" = "1" ] ; then pkgconfdir="${SSTATE_INSTDIR}/recipe-sysroot-native/${bindir_native}"