From patchwork Mon Dec 23 20:04:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Hochstein X-Patchwork-Id: 54582 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 8D8BAE7718D for ; Mon, 23 Dec 2024 20:05:26 +0000 (UTC) Received: from EUR02-AM0-obe.outbound.protection.outlook.com (EUR02-AM0-obe.outbound.protection.outlook.com [40.107.247.77]) by mx.groups.io with SMTP id smtpd.web11.20895.1734984317855565748 for ; Mon, 23 Dec 2024 12:05:18 -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=cQLgKlNa; spf=pass (domain: oss.nxp.com, ip: 40.107.247.77, mailfrom: tom.hochstein@oss.nxp.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=jaNvWfB3aYdBL8dFrnmbxTQDsHhU9Cbrl4Ul/jpwEk75nJ3QeB4kUol+nVtEeFUYHqrIWHdTGVxlw1qcNSeQQnl5/pnia9N0qrnMDKGEnXT4h0AdDPrj/QPJVY6W2rTkqTubd9Nqj5w/HhJkjryvW90L+Mp4bqQQVks3uDxKojEBNJqwWWksLHM2ZJzF6xFcVbCrB5zN9lK7TjtBjBHbEhNvWvxSeuES2dcRFbNcmMTla5+dQN/YCIVScvcU6U5gHc4p2jVnii5qAoU/wURX7880tQbWTZfaDriHZQnRi1Ahs3oOEFxyeMFfPDxcwvHh0l9FtjYSNWEloGMMQQkaKg== 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=tCkWwXZtLfJuKqmeN9HtapMJOH2BaWP/fsvNRrzKtrMR/pqhgqanLqsgECag6hZKvoQMiJ+YypqjTA10SJodJYOGJ+w9eVHtL8PESzQbXfoWiHeH/cAmiB6eZ4ieLVs3Ykr2s+ARI98iephuRvpmxCHs75tvDIUNLG4Y4McDVfiKFdPxBFOBCaoETmCBdJu2+lFJqXB4SHumGjk0zWAiK7OJJ9BaJzrgSmS9Txnm3BDREAvI36154y1ckiFxMuE4U1cOmjAqnErcZFIAdD+lwwgIOcZrufbCSHajmUPnWHLWpXFTURL9OEf7IDNcjd0N0DNAmXyhWEPiMKWpwI+sJw== 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=cQLgKlNawEzrfvCYkME7yB5dxXUv1V66gOSqKc/pSipp+R/pUh9O+iZMXLs+OO91EVT9f+zyQETrh+Va7bC6NfaM53BO9YRnEa/wQ7XnBfWnph6OcdJAgEMydeD86XkzxkY3BgjafxUB5ln/luGd7POOIvzikkcH+CKVYyyPgAUwdwZ9Fl5ki0fqzPea2ppTKr2a8XOXFUKbMnWk3xSDiBxZDqUuSgt8hIeq/L8DVImZH/DDhItc9QlUPkREGwpPKVe0wA89NoYTq8ehWY8fWSCS1R2Yt/GdPr1mgw4Nssc+F6KVXXBaxU0uIjkIa/0icJE0EcT9zLRPqg8Surw7IQ== 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 PAXPR04MB8157.eurprd04.prod.outlook.com (2603:10a6:102:1cf::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8272.19; Mon, 23 Dec 2024 20:05:10 +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; Mon, 23 Dec 2024 20:05:10 +0000 From: Tom Hochstein To: openembedded-core@lists.openembedded.org CC: Tom Hochstein Subject: [PATCH v4 1/5] pkgconfig: Add pkg-config-native to SDK Date: Mon, 23 Dec 2024 14:04:52 -0600 Message-ID: <20241223200456.2504683-1-tom.hochstein@oss.nxp.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: BYAPR01CA0003.prod.exchangelabs.com (2603:10b6:a02:80::16) 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_|PAXPR04MB8157:EE_ X-MS-Office365-Filtering-Correlation-Id: 13f2cb11-d0cc-45b2-99c4-08dd238d1aa0 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|1800799024|52116014|376014|366016|38350700014; X-Microsoft-Antispam-Message-Info: krYylcRcPW428iuXmzipBxdrk6/hSthjT9P5/orOWHTySOunnxPvQAUyLKHod9XbaseYxNYId2bz4Mf7XMN61paCCxm1qtOutdGbKanCO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0YjunH+pibijblZo7VRjtuejTlvpCzsVHvI0+jTL3H/hq484TeS9x99+58BO7RCB1W+6cWrt/OtvQ/im5oF8u2sgnuwukjiMYyvcph/VUNMPBCUElHFHvP0gNDDOdzPN7dPPESQFj6OYAPrFDcdyo+sQYep8IuGlLo9ha0r61ED7RV5MKnz2aJ7EQv3lxv6IWjoIVSEEj2Ul2oONYFu2Dm3kHEcR3GvsKIyvrhaAyUP+/zKWhO9aKSXDDZkxyYb5ZWbmUK1BVlEhH/qtMT2+ 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)(1800799024)(52116014)(376014)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: I4kyXprRIXnHbxGsL+A7lE5AvY9JC7NNJJwAShnp/wxWLDiHCRETe19CHqIz/dy5Q/mn1y5w3FF5ZyZ7grRfVgrLQ8YNad1g38u5lrItDTnl/2qHIwxVCD4IvhaefAds1C4UHCvgto3G35JjRIT+BivCOvJA9mL1PiFVkTY5gaqC5kHd9417i9qnxesgyzh9r9wIsSAle04ESmdHliT9CtMnyPhoYWgsgcJCYzPnchibGDCZAmJ4IgGNc4slmPW89joDS2buCj5osfe370SiiK06qvqnp1tvWnenN+HPD1F0Ag89gjf4SJnyn0yUzJWDqRutG75nx9VRasO7ahV7xgcBZQZS1VF+WeJBKUmloE5lul2Ia4u83sql1eXS/47C7fUpn75sJYX3o1UKAChsvi6rEd0TfevBs9tVOracleG3GIXespr/hmBelsdpzjfZjXWaQHDClx754cnHxATtuUhIr1WDHc0rj0NYEgOHv3gguYoL7jlD1hTkwEU0W3reVgluZU3oEchYx31YDm6vYWsIggSiaY6vfNumiG8pkNBMpBJujhD+8NYOg5IVJim4dbwTElLjpr6SId8hmr50NSq6OdL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0 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9448.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Dec 2024 20:05:10.2924 (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: U5q7iE0aDJKVHcLslwOA2QT3ibsC8SPL7K/b4qGLmSl/Nw2ws2LfYH94OEQVV5FAAlZFKPR3rBVGpHVbbdeb4A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8157 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 ; Mon, 23 Dec 2024 20:05:26 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/209048 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}"