diff options
| author | Hemanth Kumar M D <Hemanth.KumarMD@windriver.com> | 2026-06-11 05:32:22 -0700 |
|---|---|---|
| committer | Khem Raj <khem.raj@oss.qualcomm.com> | 2026-06-14 23:07:49 -0700 |
| commit | e5d88131c8f54520ea441202f86d899987d7eac2 (patch) | |
| tree | cd70f31965f10c861bffb2092597e9fb7b90c0fd | |
| parent | 5cd1fc041e04ce31e209c8b86ec4fbd234c1ad01 (diff) | |
| download | meta-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.inc | 3 | ||||
| -rw-r--r-- | meta-oe/recipes-graphics/directfb/directfb/0001-TaskManager-make-comparator-const.patch | 26 |
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 | ||
| 31 | S = "${UNPACKDIR}/DirectFB-${PV}" | 32 | S = "${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 @@ | |||
| 1 | TaskManager: make comparator const for GCC 16 | ||
| 2 | |||
| 3 | Fixes build failure with GCC 16 due to stricter libstdc++ requirements | ||
| 4 | for std::set comparator (must be const-callable). | ||
| 5 | |||
| 6 | Upstream-Status: Submitted [https://github.com/deniskropp/DirectFB/issues/29] | ||
| 7 | |||
| 8 | Signed-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 | |||
| 13 | diff --git a/src/core/TaskManager.h b/src/core/TaskManager.h | ||
| 14 | index 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 | |||
