From patchwork Mon Dec 23 20:04:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Hochstein X-Patchwork-Id: 54583 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 8C24CE7718B 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.71]) by mx.groups.io with SMTP id smtpd.web10.20963.1734984321952508713 for ; Mon, 23 Dec 2024 12:05:22 -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=PiTm8CSB; spf=pass (domain: oss.nxp.com, ip: 40.107.247.71, mailfrom: tom.hochstein@oss.nxp.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=B+s8WoPDK2Xr8xzUTJF2y4iMFEkJuUDIecoHC860N93wVDbdcXHnLdlSLHiTgIqWP0f2FV68LJgBjoFcbEBu89xc/4YFxPoUTcecl9uYJGLt6IbirKuAaFgYq1X6sn5cCTv3EU/vVQjlwaakctJtTDvr9BhBJvSum4fqWT3M6FXClZ8Itk81lNL1qqZt38riKbV/hI6wkL352XeXDv2LLhOGx/aMNOJsqbMWoQJOJu/uGkS9x39ARxCIf/27T6wjeDH5KaWjXdwECYKqnZWZyqhVkFDcYpP0vOG8wcvegmNVb9af3ZV8DfsAEnWeaOOPPIgkgsYUYrO4BthAVDy6zA== 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=epIEKRjqGJElmQl+6kZUAyBh7YI/1hpQ+FlfQ+3ykRI=; b=FdzO+MIIfPSawkp79WR+vm37ZF02/6jrGc79n5om7OvnpWMIN9ZGtIDzlzxTvNQBB/bLoH+xyiDum9X1YsFxV789ZPCs4SBTSgaTJtf3mlEPDpzLhtyHr/rwY8+FcOHLU0k3NMjlYbSrN8SkvQOm8jDQagSCPYY4/dxnZn0OcqXuAXlA6UzKhaSPoMhSYjXy5wPmE8SbojeacOoGoW2xUv3yVpgl3AIpsNHbe80cZw6QR7r00m1hbmkQelmmxb+gE7D1KA1IpvWGRDltlsyPAioN47PArFOtwd4m8bXbDjpI/zPlqEAXil8Jmybn30Dt/1sxk7BfR+EIUjXv29ZU7A== 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=epIEKRjqGJElmQl+6kZUAyBh7YI/1hpQ+FlfQ+3ykRI=; b=PiTm8CSBn6jGbnclfX1qd68IQ+1ZnqcKm97IOAL7eX+U2JeP3xB5f75qQKunyDgdpR+dxyztvu+SpXw4u94SP/izbL+9MHEyMiumQI2sukxHONMQnWB10WZAPm5TvQi6aDOFRJ7fmF+cgQxNAaYRD6NHS9m58iIfZGFbxjZGTkV8O7UsKZOi7oUp2bJrs76HoZ/fsEGJcNPcorIwzfyS9VVfkB1nCZdbP9AZ323jKCsm7MNr++h2ezkV/+71r0vPklmhhSHpiCqtkDDnCLm3rnUn/ehVUpvWcRjfLYZ0L7M2CbtvaR+as6/hG7Q61xBZhGTOwmIdrrcTndwkojSZEw== 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:15 +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:15 +0000 From: Tom Hochstein To: openembedded-core@lists.openembedded.org CC: Tom Hochstein Subject: [PATCH v4 5/5] mesa: Fix missing GLES3 headers in SDK sysroot Date: Mon, 23 Dec 2024 14:04:56 -0600 Message-ID: <20241223200456.2504683-5-tom.hochstein@oss.nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241223200456.2504683-1-tom.hochstein@oss.nxp.com> References: <20241223200456.2504683-1-tom.hochstein@oss.nxp.com> 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: b593344f-23b4-4986-562d-08dd238d1de8 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: cOOLedmtxzdBKC61nHzxmoFiCaUzCsk6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DyJAxvjsthD2OknMe6yov1BXoHJziT0s6gjdKuyjrQQ40Ls35Zc89O3FnGocbJBcfoaoxv57Wb1BN9Jns9cN0DaDX+d3kbdlbAOSbC8902Z+aqtcBtVy0/yM4+UzMIFjD+YeMqAFCO+IsIgQHDNwk4xsuvC9x8a6lgMulqt7GqkhlO4CGATaEGxdiVhu9OuT1r6nU7wflq+uxc5pr8xfCBSq8C+oJTsBL2KgVezMMJlr+tBHC/0CnVetfzGh7fly//bnvjKNQp8tnAwbLBJ71f5BjvzcZCohkXDftcTwEC/O3+3WZD4W6f06Ksn7Bum98JZMaIzzvLMZBse35NwXzdQEzBu1OuhKTJr7FlwDaZ 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: P5Rsvl0oEorMjWG/utLE+jwTFSNN8Jsu3TkZKQzAVM3bxYWBQ5qUUkyemxl4Jxk018AetYXfovo0GqVTnpzY3WGTq7GzBvg9kZLUJNL6mCoDcaWHMhXXTwNGdlLzugf5gZMFbnfipKOt2oJYzI/l3QhMsMmwxiwvEmjoj6QIK5qP6lsRwugndSV8/VDy5AtqX2zs0ubd07Ii5nnebMwa9pKKkwfyoXcy74LW5XN/LKvz/d/5GxwhcCFcvkTNdOdYcqsbC8VcarDbNwso2L4YpKHRZwZfxN0F7bzvjvy/SZCyeqM6mQb9qwXfx4EnS6EMkXPmiOqTylzQ2qJ4CIPIMvNZIWiA4F7za8Ip0Rc9dJowC+DpJyGVTQcbexcBpJ3prJ4iKoX9+K5gkuvueCYLJobgGn2iCVqUVpjmnbGetQMPjyEFkRtZ4Y/uvOURmca6phiwZwtU7GPiTG7X76Nq4wMO98dndmDfW/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njkg25Vu3qlEhhQ8J6mkfaVaUI5WcBWf8O6K5WSSpAOwGPcFLuj X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: b593344f-23b4-4986-562d-08dd238d1de8 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:15.6921 (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: 9C6ZR+TVHzb9hX6c18PFlEQOJrqy6msBl4vcKKQEq8IGuDQk7PfviYAd7sw+lC7E3mackWGyZ9XNlVLvLlMM3Q== 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/209052 Building weston with core-image-weston SDK fails: ``` ../libweston/renderer-gl/gl-shader-config-color-transformation.c:29:10: fatal error: GLES3/gl3.h: No such file or directory 29 | #include | ^~~~~~~~~~~~~ ``` Both GLES2 and GLES3 implementations are contained in libGLESv2.so.2, which is packaged in libgles2-mesa. However, the headers are split between libgles2-mesa-dev and libgles3-mesa-dev, which is why the GLES3 headers end up missing in the SDK sysroot. Add a dependency so the GLES3 headers are properly associated with the GLES3 implementation. Signed-off-by: Tom Hochstein --- meta/recipes-graphics/mesa/mesa.inc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc index 9fdf496e8b..b3c595b767 100644 --- a/meta/recipes-graphics/mesa/mesa.inc +++ b/meta/recipes-graphics/mesa/mesa.inc @@ -233,6 +233,11 @@ DEV_PKG_DEPENDENCY = "" # development package of libgles3. RDEPENDS:libgles3-mesa-dev += "libgles2-mesa-dev" +# GLES2 and GLES3 implementations are packaged in a single library in libgles2-mesa. +# Add a dependency so the GLES3 dev package is associated with its implementation. +RDEPENDS:libgles2-mesa += "libgles3-mesa" +ALLOW_EMPTY:libgles3-mesa = "1" + RDEPENDS:libopencl-mesa += "${@bb.utils.contains('PACKAGECONFIG', 'opencl', 'libclc spirv-tools', '', d)}" PACKAGES =+ "libegl-mesa libegl-mesa-dev \