Skip to contentSkip to conversation

package/sdbus-cpp: fix required gcc version

PATCH New Sergey Bobrenok 1 participant 1 message May 9, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/sdbus-cpp: fix required gcc version

Since bump to version 2.0.0 in commit 0f5bb364c629dd7fc91f4295f872e46d89c0feef sdbus-cpp package requires designated initializers support (C++20 feature), and fails to compile with gcc < 8:

/home/buildroot/autobuild/run/instance-2/output-1/build/host-sdbus-cpp-2.0.0/src/Proxy.cpp: In member function 'virtual sdbus::Slot sdbus::internal::Proxy::callMethodAsync(const sdbus::MethodCall&, sdbus::async_reply_handler, uint64_t, sdbus::return_slot_t)':
/home/buildroot/autobuild/run/instance-2/output-1/build/host-sdbus-cpp-2.0.0/src/Proxy.cpp:146:90: sorry, unimplemented: non-trivial designated initializers not supported

                                                                       , .floating = true });
Fixes 0f5bb364c629dd7fc91f4295f872e46d89c0feef

- http://autobuild.buildroot.net/results/1764ce0d48b390e430d2d8f54388013d3700e9d7

---
 package/sdbus-cpp/Config.in      | 6 +++---
 package/sdbus-cpp/Config.in.host | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)
package/sdbus-cpp/Config.in +3 -3
index 85f149eaa1..010efaafcf 100644
@@ -2,7 +2,7 @@ config BR2_PACKAGE_SDBUS_CPP
 	bool "sdbus-c++"
 	depends on BR2_INSTALL_LIBSTDCPP
 	depends on BR2_PACKAGE_SYSTEMD
-	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_7 # C++17
+	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_8 # C++20
 	help
 	  sdbus-c++ is a high-level C++ D-Bus library for Linux
 	  designed to provide expressive, easy-to-use API in modern C++.
@@ -11,6 +11,6 @@ config BR2_PACKAGE_SDBUS_CPP
 
 	  https://github.com/Kistler-Group/sdbus-cpp
 
-comment "sdbus-c++ needs systemd and a toolchain w/ C++, gcc >= 7"
+comment "sdbus-c++ needs systemd and a toolchain w/ C++, gcc >= 8"
 	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_PACKAGE_SYSTEMD || \
-		!BR2_TOOLCHAIN_GCC_AT_LEAST_7
+		!BR2_TOOLCHAIN_GCC_AT_LEAST_8
package/sdbus-cpp/Config.in.host +1 -1
index d62a65ae84..024a2e9a9c 100644
@@ -1,6 +1,6 @@
 config BR2_PACKAGE_HOST_SDBUS_CPP
 	bool "host sdbus-c++"
-	depends on BR2_HOST_GCC_AT_LEAST_7
+	depends on BR2_HOST_GCC_AT_LEAST_8 # C++20
 	help
 	  sdbus-c++ is a high-level C++ D-Bus library for Linux
 	  designed to provide expressive, easy-to-use API in modern C++.
Signature · 6 lines
2.45.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot