From 12dad65071b3c9e3cb16e0b1dee3d09378ebe85e Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sat, 7 Jan 2023 19:12:54 -0800 Subject: [PATCH] egt-launcher: Use std::filesystem instead of std::experimental::filesystem Signed-off-by: Khem Raj --- recipes-egt/apps/egt-launcher_1.2.bb | 3 +- ...ncher-Switch-to-using-std-filesystem.patch | 40 +++++++++++++++++++ 2 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 recipes-egt/apps/files/0001-launcher-Switch-to-using-std-filesystem.patch diff --git a/recipes-egt/apps/egt-launcher_1.2.bb b/recipes-egt/apps/egt-launcher_1.2.bb index a379e905..38018173 100644 --- a/recipes-egt/apps/egt-launcher_1.2.bb +++ b/recipes-egt/apps/egt-launcher_1.2.bb @@ -12,7 +12,8 @@ DEPENDS = "libegt" RDEPENDS:${PN} = "evtest" SRC_URI = "git://github.com/linux4sam/egt-launcher.git;protocol=https;branch=master \ - file://0001-launch.sh-Use-start-stop-daemon-to-restart-egt.patch" + file://0001-launcher-Switch-to-using-std-filesystem.patch \ + file://0001-launch.sh-Use-start-stop-daemon-to-restart-egt.patch" PV = "1.2+git${SRCPV}" SRCREV = "529465ba53c5a0b68a0027ee149f75108557c351" diff --git a/recipes-egt/apps/files/0001-launcher-Switch-to-using-std-filesystem.patch b/recipes-egt/apps/files/0001-launcher-Switch-to-using-std-filesystem.patch new file mode 100644 index 00000000..5393848a --- /dev/null +++ b/recipes-egt/apps/files/0001-launcher-Switch-to-using-std-filesystem.patch @@ -0,0 +1,40 @@ +From 6a9542ff552689e80aae913d12282ae21c9c5c82 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Sat, 7 Jan 2023 19:07:28 -0800 +Subject: [PATCH] launcher: Switch to using std::filesystem + +experimental/filesystem is promoted to std::filesystem and is must have +with c++17 and newer standard, some compilers e.g. libcxx with +llvm/clang 15+ has already dropped experimental/filesystem and expect +one to use std::filesystem + +Signed-off-by: Khem Raj +--- + src/launcher.cpp | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/launcher.cpp b/src/launcher.cpp +index 35afa0f..c6d583d 100644 +--- a/src/launcher.cpp ++++ b/src/launcher.cpp +@@ -12,7 +12,7 @@ + #include + #include + #include +-#include ++#include + #include + #include + #include +@@ -121,7 +121,7 @@ private: + SwipeCallback m_callback; + }; + +-namespace filesys = std::experimental::filesystem; ++namespace filesys = std::filesystem; + + /* + * Execute a command. +-- +2.39.0 +