package/netdata: needs C++
PATCH 1/1 package/netdata: needs C++
Buildroot commit 9cfcd906cff299ef83b48681e50bcef9df124ad4 bumped the package from 1.33.1 to 1.37.1. Upstream changed the optional C++ support into a mandatory dependency with commit
https://github.com/netdata/netdata/commit/b6d2a3662dfb683e9e95203ef3b21f8e31238b06
added to version 1.35.0 causing build errors with toolchains without C++ support:
GEN netdatacli/bin/sh: line 1: no: command not found make[3]: *** [Makefile:5502: netdatacli] Error 127
Fixes:
https://autobuild.buildroot.org/results/7084a73d5727a86ca55eda3d1f01ea4d5b8ecf65/
--- package/netdata/Config.in | 10 +++++----- support/testing/tests/package/test_netdata.py | 1 + 2 files changed, 6 insertions(+), 5 deletions(-)
package/netdata/Config.in +5 -5
@@ -1,6 +1,7 @@ config BR2_PACKAGE_NETDATA bool "netdata" depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL + depends on BR2_INSTALL_LIBSTDCPP depends on BR2_USE_MMU # fork() depends on !BR2_STATIC_LIBS # libuv depends on BR2_TOOLCHAIN_HAS_SYNC_4 # libuv
@@ -22,22 +23,21 @@ if BR2_PACKAGE_NETDATA config BR2_PACKAGE_NETDATA_PROMETHEUS bool "prometheus remote write backend" depends on BR2_PACKAGE_PROTOBUF_ARCH_SUPPORTS - depends on BR2_INSTALL_LIBSTDCPP # protobuf, snappy depends on BR2_TOOLCHAIN_GCC_AT_LEAST_8 # protobuf select BR2_PACKAGE_PROTOBUF select BR2_PACKAGE_SNAPPY help Enable prometheus remote write backend -comment "prometheus remote write backend needs a toolchain w/ C++, gcc >= 8" - depends on !BR2_INSTALL_LIBSTDCPP || \ - !BR2_TOOLCHAIN_GCC_AT_LEAST_8 +comment "prometheus remote write backend needs a toolchain w/ gcc >= 8" + depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_8 depends on BR2_PACKAGE_PROTOBUF_ARCH_SUPPORTS endif -comment "netdata needs a toolchain w/ NPTL, dynamic library, gcc >= 4.9" +comment "netdata needs a toolchain w/ C++, NPTL, dynamic library, gcc >= 4.9" depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL || BR2_STATIC_LIBS \ + || !BR2_INSTALL_LIBSTDCPP \ || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 depends on BR2_USE_MMU depends on BR2_TOOLCHAIN_HAS_SYNC_4
support/testing/tests/package/test_netdata.py +1 -0
@@ -6,6 +6,7 @@ import infra.basetest class TestNetdata(infra.basetest.BRTest): config = infra.basetest.BASIC_TOOLCHAIN_CONFIG + \ """ + BR2_INSTALL_LIBSTDCPP=y BR2_PACKAGE_NETDATA=y BR2_TARGET_ROOTFS_CPIO=y # BR2_TARGET_ROOTFS_TAR is not set
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Looks sensible to me!
Quoted 12 lines · Bernd Kuhls
Buildroot commit
9cfcd906cff299ef83b48681e50bcef9df124ad4bumped the package from 1.33.1 to 1.37.1. Upstream changed the optional C++ support into a mandatory dependency with commithttps://github.com/netdata/netdata/commit/b6d2a3662dfb683e9e95203ef3b21f8e31238b06
added to version 1.35.0 causing build errors with toolchains without C++ support:GEN netdatacli
/bin/sh: line 1: no: command not found make[3]: *** [Makefile:5502: netdatacli] Error 127
Quoted 6 lines
Fixes:
https://autobuild.buildroot.org/results/7084a73d5727a86ca55eda3d1f01ea4d5b8ecf65/
Signed-off-by Bernd Kuhls <[email protected]>
Quoted 62 lines
--- package/netdata/Config.in | 10 +++++----- support/testing/tests/package/test_netdata.py | 1 + 2 files changed, 6 insertions(+), 5 deletions(-)package/netdata/Config.in +1
-2@@ -1,6 +1,7 @@ config BR2_PACKAGE_NETDATA bool "netdata" depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL + depends on BR2_INSTALL_LIBSTDCPP depends on BR2_USE_MMU # fork() depends on !BR2_STATIC_LIBS # libuv depends on BR2_TOOLCHAIN_HAS_SYNC_4 # libuv@@ -22,22 +23,21 @@ if BR2_PACKAGE_NETDATA config BR2_PACKAGE_NETDATA_PROMETHEUS bool "prometheus remote write backend" depends on BR2_PACKAGE_PROTOBUF_ARCH_SUPPORTS - depends on BR2_INSTALL_LIBSTDCPP # protobuf, snappy depends on BR2_TOOLCHAIN_GCC_AT_LEAST_8 # protobuf select BR2_PACKAGE_PROTOBUF select BR2_PACKAGE_SNAPPY help Enable prometheus remote write backend -comment "prometheus remote write backend needs a toolchain w/ C++, gcc >=8"
package/netdata/Config.in +3
-3- depends on !BR2_INSTALL_LIBSTDCPP || \ - !BR2_TOOLCHAIN_GCC_AT_LEAST_8 +comment "prometheus remote write backend needs a toolchain w/ gcc >= 8" + depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_8 depends on BR2_PACKAGE_PROTOBUF_ARCH_SUPPORTS endif -comment "netdata needs a toolchain w/ NPTL, dynamic library, gcc >= 4.9" +comment "netdata needs a toolchain w/ C++, NPTL, dynamic library, gcc >=4.9"
depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL || BR2_STATIC_LIBS \package/netdata/Config.in +1
-0+ || !BR2_INSTALL_LIBSTDCPP \ || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 depends on BR2_USE_MMU depends on BR2_TOOLCHAIN_HAS_SYNC_4support/testing/tests/package/test_netdata.py +1
-1@@ -6,6 +6,7 @@ import infra.basetest class TestNetdata(infra.basetest.BRTest): config = infra.basetest.BASIC_TOOLCHAIN_CONFIG + \ """ + BR2_INSTALL_LIBSTDCPP=y BR2_PACKAGE_NETDATA=y BR2_TARGET_ROOTFS_CPIO=y # BR2_TARGET_ROOTFS_TAR is not set --2.47.3
Quoted 5 lines
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 9 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Bernd" == Bernd Kuhls <[email protected]> writes:
Buildroot commit
9cfcd906cff299ef83b48681e50bcef9df124ad4bumped the package from 1.33.1 to 1.37.1. Upstream changed the optional C++ support into a mandatory dependency with commit
https://github.com/netdata/netdata/commit/b6d2a3662dfb683e9e95203ef3b21f8e31238b06
added to version 1.35.0 causing build errors with toolchains without C++ support:
Quoted 8 lines
GEN netdatacli
/bin/sh: line 1: no: command not found make[3]: *** [Makefile:5502: netdatacli] Error 127Fixes:
https://autobuild.buildroot.org/results/7084a73d5727a86ca55eda3d1f01ea4d5b8ecf65/Signed-off-by Bernd Kuhls <[email protected]>
Committed, thanks.
Signature · 5 lines
Bye, Peter Korsgaard _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Thomas Perale via buildroot
AppliedIn reply of:
Quoted 7 lines
Buildroot commit
9cfcd906cff299ef83b48681e50bcef9df124ad4bumped the package from 1.33.1 to 1.37.1. Upstream changed the optional C++ support into a mandatory dependency with commit
https://github.com/netdata/netdata/commit/b6d2a3662dfb683e9e95203ef3b21f8e31238b06
added to version 1.35.0 causing build errors with toolchains without C++ support:
Quoted 8 lines
GEN netdatacli
/bin/sh: line 1: no: command not found make[3]: *** [Makefile:5502: netdatacli] Error 127Fixes:
https://autobuild.buildroot.org/results/7084a73d5727a86ca55eda3d1f01ea4d5b8ecf65/Signed-off-by Bernd Kuhls <[email protected]>
Applied to 2025.02.x & 2025.11.x. Thanks
Quoted 63 lines
--- package/netdata/Config.in | 10 +++++----- support/testing/tests/package/test_netdata.py | 1 + 2 files changed, 6 insertions(+), 5 deletions(-)package/netdata/Config.in +5
-5@@ -1,6 +1,7 @@ config BR2_PACKAGE_NETDATA bool "netdata" depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL + depends on BR2_INSTALL_LIBSTDCPP depends on BR2_USE_MMU # fork() depends on !BR2_STATIC_LIBS # libuv depends on BR2_TOOLCHAIN_HAS_SYNC_4 # libuv@@ -22,22 +23,21 @@ if BR2_PACKAGE_NETDATA config BR2_PACKAGE_NETDATA_PROMETHEUS bool "prometheus remote write backend" depends on BR2_PACKAGE_PROTOBUF_ARCH_SUPPORTS - depends on BR2_INSTALL_LIBSTDCPP # protobuf, snappy depends on BR2_TOOLCHAIN_GCC_AT_LEAST_8 # protobuf select BR2_PACKAGE_PROTOBUF select BR2_PACKAGE_SNAPPY help Enable prometheus remote write backend -comment "prometheus remote write backend needs a toolchain w/ C++, gcc >= 8" - depends on !BR2_INSTALL_LIBSTDCPP || \ - !BR2_TOOLCHAIN_GCC_AT_LEAST_8 +comment "prometheus remote write backend needs a toolchain w/ gcc >= 8" + depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_8 depends on BR2_PACKAGE_PROTOBUF_ARCH_SUPPORTS endif -comment "netdata needs a toolchain w/ NPTL, dynamic library, gcc >= 4.9" +comment "netdata needs a toolchain w/ C++, NPTL, dynamic library, gcc >= 4.9" depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL || BR2_STATIC_LIBS \ + || !BR2_INSTALL_LIBSTDCPP \ || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 depends on BR2_USE_MMU depends on BR2_TOOLCHAIN_HAS_SYNC_4support/testing/tests/package/test_netdata.py +1
-0@@ -6,6 +6,7 @@ import infra.basetest class TestNetdata(infra.basetest.BRTest): config = infra.basetest.BASIC_TOOLCHAIN_CONFIG + \ """ + BR2_INSTALL_LIBSTDCPP=y BR2_PACKAGE_NETDATA=y BR2_TARGET_ROOTFS_CPIO=y # BR2_TARGET_ROOTFS_TAR is not setSignature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot