[Buildroot] [git commit branch/2024.02.x] package/sdbus-cpp: fix build failure on gcc14
Peter Korsgaard
peter at korsgaard.com
Sun Feb 9 08:43:52 UTC 2025
commit: https://git.buildroot.net/buildroot/commit/?id=945968d41010854314a90faea51a83f315c7e06b
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2024.02.x
The original commit [1] was merged [2] in sdbus-cpp v1.5.0.
Fixes:
https://autobuild.buildroot.org/results/bd0a9fe123956f01336462a31c3375a036744234/
[1]
https://github.com/Kistler-Group/sdbus-cpp/commit/f50e4676fe9289eec0744efae2216aa8795fa461
[2] https://github.com/Kistler-Group/sdbus-cpp/pull/380
Signed-off-by: Sergey Bobrenok <bobrofon at gmail.com>
[Peter: add upstream tag to patch]
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
---
...-add-missing-algorithm-header-include-380.patch | 30 ++++++++++++++++++++++
1 file changed, 30 insertions(+)
diff --git a/package/sdbus-cpp/0001-fix-add-missing-algorithm-header-include-380.patch b/package/sdbus-cpp/0001-fix-add-missing-algorithm-header-include-380.patch
new file mode 100644
index 0000000000..7778408d63
--- /dev/null
+++ b/package/sdbus-cpp/0001-fix-add-missing-algorithm-header-include-380.patch
@@ -0,0 +1,30 @@
+From f50e4676fe9289eec0744efae2216aa8795fa461 Mon Sep 17 00:00:00 2001
+From: Alfred Wingate <parona at protonmail.com>
+Date: Thu, 16 Nov 2023 21:26:42 +0000
+Subject: [PATCH] fix: add missing algorithm header include (#380)
+
+* https://gcc.gnu.org/gcc-14/porting_to.html
+
+Using gcc 14 uncovers a missing include in Message.h
+
+Signed-off-by: Alfred Wingate <parona at protonmail.com>
+Upstream: https://github.com/Kistler-Group/sdbus-cpp/commit/f50e4676fe9289eec0744efae2216aa8795fa461
+---
+ include/sdbus-c++/Message.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/include/sdbus-c++/Message.h b/include/sdbus-c++/Message.h
+index 915a071..9c85c01 100644
+--- a/include/sdbus-c++/Message.h
++++ b/include/sdbus-c++/Message.h
+@@ -42,6 +42,7 @@
+ #include <cassert>
+ #include <functional>
+ #include <sys/types.h>
++#include <algorithm>
+
+ // Forward declarations
+ namespace sdbus {
+--
+2.48.1
+
More information about the buildroot
mailing list