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 337CCC77B60 for ; Wed, 26 Apr 2023 23:23:59 +0000 (UTC) Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by mx.groups.io with SMTP id smtpd.web10.7982.1682551435066232119 for ; Wed, 26 Apr 2023 16:23:55 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@ti.com header.s=ti-com-17q1 header.b=xU37TPAf; spf=pass (domain: ti.com, ip: 198.47.23.248, mailfrom: afd@ti.com) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 33QNNolx046468; Wed, 26 Apr 2023 18:23:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1682551430; bh=OhUWwXciDipSwKlsQ2ib9YG6FdmhdEk1EZNsY57ZCpo=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=xU37TPAfyK7pdaosrzI57geNFGXBrTVfj0KTLBldCE36OxK6VUBHH4EMFIMwYFOfo w8Wk06XLSk97C00W3gGNalztHiJVxZUz1OCkxpoYqMQKJEMuLxAU9jdolOB3E8d0+a D7/aMRWVBxtdiDq0X8I2VUpussGD4ttfo5WMcOGM= Received: from DFLE115.ent.ti.com (dfle115.ent.ti.com [10.64.6.36]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 33QNNo8g012743 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 26 Apr 2023 18:23:50 -0500 Received: from DFLE103.ent.ti.com (10.64.6.24) by DFLE115.ent.ti.com (10.64.6.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Wed, 26 Apr 2023 18:23:49 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16 via Frontend Transport; Wed, 26 Apr 2023 18:23:49 -0500 Received: from [10.250.35.77] (ileaxei01-snat.itg.ti.com [10.180.69.5]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 33QNNngI036711; Wed, 26 Apr 2023 18:23:49 -0500 Message-ID: <72a49599-d3d0-111f-7939-4c901ca371e2@ti.com> Date: Wed, 26 Apr 2023 18:23:49 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [meta-arago][master/kirkstone][PATCH 6/6] glfw: convert to append and drop patches Content-Language: en-US To: , , , CC: References: <20230426213214.3501230-1-rs@ti.com> <20230426213214.3501230-8-rs@ti.com> From: Andrew Davis In-Reply-To: <20230426213214.3501230-8-rs@ti.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 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, 26 Apr 2023 23:23:59 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/meta-arago/message/14360 On 4/26/23 4:32 PM, rs@ti.com wrote: > From: Randolph Sapp > > A reasonable version of glfw is now provided by meta-oe. Also the EGL > version this package needs to build a against can be satisfied by Mesa > EGL so this old patch isn't required anymore. > > Add a PACKAGECONFIG variable for wayland and use it. This append can be > dropped entirely when meta-oe accepts my PACKAGECONFIG patch [1]. > > [1] https://lists.openembedded.org/g/openembedded-devel/message/102202 > > Signed-off-by: Randolph Sapp > --- Seems reasonable, Acked-by: Andrew Davis > ...xt-remove-check-for-Wayland-Egl-prov.patch | 27 ------------------- > .../recipes-graphics/glfw/glfw_%.bbappend | 6 +++++ > .../recipes-graphics/glfw/glfw_git.bb | 24 ----------------- > 3 files changed, 6 insertions(+), 51 deletions(-) > delete mode 100644 meta-arago-extras/recipes-graphics/glfw/glfw/0001-HACK-CMakeList.txt-remove-check-for-Wayland-Egl-prov.patch > create mode 100644 meta-arago-extras/recipes-graphics/glfw/glfw_%.bbappend > delete mode 100644 meta-arago-extras/recipes-graphics/glfw/glfw_git.bb > > diff --git a/meta-arago-extras/recipes-graphics/glfw/glfw/0001-HACK-CMakeList.txt-remove-check-for-Wayland-Egl-prov.patch b/meta-arago-extras/recipes-graphics/glfw/glfw/0001-HACK-CMakeList.txt-remove-check-for-Wayland-Egl-prov.patch > deleted file mode 100644 > index 6116fc12..00000000 > --- a/meta-arago-extras/recipes-graphics/glfw/glfw/0001-HACK-CMakeList.txt-remove-check-for-Wayland-Egl-prov.patch > +++ /dev/null > @@ -1,27 +0,0 @@ > -From c6e30af80018f7a6fc7b8b0e810718f4bd646cf6 Mon Sep 17 00:00:00 2001 > -From: Denys Dmytriyenko > -Date: Thu, 12 Apr 2018 12:29:39 -0400 > -Subject: [PATCH] HACK: CMakeList.txt: remove check for Wayland-Egl, provided > - by SGX libs > - > -Signed-off-by: Denys Dmytriyenko > ---- > - CMakeLists.txt | 2 +- > - 1 file changed, 1 insertion(+), 1 deletion(-) > - > -diff --git a/CMakeLists.txt b/CMakeLists.txt > -index 1f5d6ef..eaf780f 100644 > ---- a/CMakeLists.txt > -+++ b/CMakeLists.txt > -@@ -266,7 +266,7 @@ if (_GLFW_WAYLAND) > - find_package(ECM REQUIRED NO_MODULE) > - list(APPEND CMAKE_MODULE_PATH "${ECM_MODULE_PATH}") > - > -- find_package(Wayland REQUIRED Client Cursor Egl) > -+ find_package(Wayland REQUIRED Client Cursor) > - find_package(WaylandScanner REQUIRED) > - find_package(WaylandProtocols 1.12 REQUIRED) > - > --- > -2.7.4 > - > diff --git a/meta-arago-extras/recipes-graphics/glfw/glfw_%.bbappend b/meta-arago-extras/recipes-graphics/glfw/glfw_%.bbappend > new file mode 100644 > index 00000000..8f80e55d > --- /dev/null > +++ b/meta-arago-extras/recipes-graphics/glfw/glfw_%.bbappend > @@ -0,0 +1,6 @@ > +# Add some wayland configuration options until meta-oe adds some good > +# PACKAGECONFIGS > + > +PACKAGECONFIG[wayland] = "-DGLFW_USE_WAYLAND=ON,,wayland wayland-native wayland-protocols extra-cmake-modules libxkbcommon" > + > +PACKAGECONFIG += " wayland" > diff --git a/meta-arago-extras/recipes-graphics/glfw/glfw_git.bb b/meta-arago-extras/recipes-graphics/glfw/glfw_git.bb > deleted file mode 100644 > index 0e83979f..00000000 > --- a/meta-arago-extras/recipes-graphics/glfw/glfw_git.bb > +++ /dev/null > @@ -1,24 +0,0 @@ > -SUMMARY = "GLFW cross platform graphics framework" > -DESCRIPTION = "A multi-platform library for OpenGL and OpenGLES, window and input" > -HOMEPAGE = "http://glfw.org/" > -LICENSE = "Zlib & Libpng" > -LIC_FILES_CHKSUM = "file://LICENSE.md;md5=90c6dd54408744b0f8a55f2a6c7ad870" > - > -PV = "3.2.1+git${SRCPV}" > -PR = "r0" > - > -BRANCH = "master" > -SRC_URI = "git://github.com/glfw/glfw.git;protocol=https;branch=${BRANCH}" > -SRCREV = "0a3c4f5d80b041ee1a12c8da3503653d98bd1a15" > - > -SRC_URI += "file://0001-HACK-CMakeList.txt-remove-check-for-Wayland-Egl-prov.patch" > - > -DEPENDS = "extra-cmake-modules glib-2.0 virtual/libgles2 virtual/egl weston wayland wayland-native wayland-protocols" > - > -S = "${WORKDIR}/git" > - > -inherit cmake pkgconfig > - > -EXTRA_OECMAKE += "-DGLFW_USE_WAYLAND=ON -DGLFW_BUILD_EXAMPLES=OFF -DGLFW_BUILD_TESTS=OFF" > - > -FILES:${PN}-dev += "${libdir}/cmake"