summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHemanth Kumar M D <Hemanth.KumarMD@windriver.com>2026-06-11 05:32:22 -0700
committerKhem Raj <khem.raj@oss.qualcomm.com>2026-06-14 23:07:49 -0700
commite5d88131c8f54520ea441202f86d899987d7eac2 (patch)
treecd70f31965f10c861bffb2092597e9fb7b90c0fd
parent5cd1fc041e04ce31e209c8b86ec4fbd234c1ad01 (diff)
downloadmeta-openembedded-e5d88131c8f54520ea441202f86d899987d7eac2.tar.gz
directfb: fix build with GCC 16
GCC 16 requires std::set comparators to be callable on a const comparator object. TaskManager::operator() is used as a comparator but is not const-qualified, causing the build to fail. Add the missing const qualifier to restore compatibility with GCC 16. Link: https://github.com/deniskropp/DirectFB/issues/29 Signed-off-by: Hemanth Kumar M D <Hemanth.KumarMD@windriver.com> Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
-rw-r--r--meta-oe/recipes-graphics/directfb/directfb.inc3
-rw-r--r--meta-oe/recipes-graphics/directfb/directfb/0001-TaskManager-make-comparator-const.patch26
2 files changed, 28 insertions, 1 deletions
diff --git a/meta-oe/recipes-graphics/directfb/directfb.inc b/meta-oe/recipes-graphics/directfb/directfb.inc
index 0dc410b2cb..70e1280e2f 100644
--- a/meta-oe/recipes-graphics/directfb/directfb.inc
+++ b/meta-oe/recipes-graphics/directfb/directfb.inc
@@ -26,7 +26,8 @@ SRC_URI = "http://downloads.yoctoproject.org/mirror/sources/DirectFB-${PV}.tar.g
26 file://0001-include-libgen.h-for-basename.patch \ 26 file://0001-include-libgen.h-for-basename.patch \
27 file://0001-inputdrivers-Correct-the-signature-of-bind-call-on-m.patch \ 27 file://0001-inputdrivers-Correct-the-signature-of-bind-call-on-m.patch \
28 file://0001-libdirect-remove-use-of-keyword-register.patch \ 28 file://0001-libdirect-remove-use-of-keyword-register.patch \
29 " 29 file://0001-TaskManager-make-comparator-const.patch \
30 "
30 31
31S = "${UNPACKDIR}/DirectFB-${PV}" 32S = "${UNPACKDIR}/DirectFB-${PV}"
32 33
diff --git a/meta-oe/recipes-graphics/directfb/directfb/0001-TaskManager-make-comparator-const.patch b/meta-oe/recipes-graphics/directfb/directfb/0001-TaskManager-make-comparator-const.patch
new file mode 100644
index 0000000000..3064a4f420
--- /dev/null
+++ b/meta-oe/recipes-graphics/directfb/directfb/0001-TaskManager-make-comparator-const.patch
@@ -0,0 +1,26 @@
1TaskManager: make comparator const for GCC 16
2
3Fixes build failure with GCC 16 due to stricter libstdc++ requirements
4for std::set comparator (must be const-callable).
5
6Upstream-Status: Submitted [https://github.com/deniskropp/DirectFB/issues/29]
7
8Signed-off-by: Hemanth Kumar M D <Hemanth.KumarMD@windriver.com>
9---
10 src/core/TaskManager.h | 2 +-
11 1 file changed, 1 insertion(+), 1 deletion(-)
12
13diff --git a/src/core/TaskManager.h b/src/core/TaskManager.h
14index 3f2174c..6ac29ee 100644
15--- a/src/core/TaskManager.h
16+++ b/src/core/TaskManager.h
17@@ -121,7 +121,7 @@ public:
18 static void dumpTasks();
19
20
21- bool operator()( Task *t1, Task *t2 )
22+ bool operator()( Task *t1, Task *t2 ) const
23 {
24 return t1->ts_emit < t2->ts_emit;
25 }
26