Skip to contentSkip to conversation

package/netdata: needs C++

PATCH Applied Bernd Kuhls 3 participants 4 messages Jan 25 – Feb 6

lore
Share & tools
lore
#0 lore raw

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
index 3603eb071c..527d4d39af 100644
@@ -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
index 6b616398d3..42bcbcdc6f 100644
@@ -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
Reviewed-by Michael Cullen on v1 1/1
#1 lore raw

Looks sensible to me!

Quoted 12 lines · Bernd Kuhls

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

Quoted 6 lines

Fixes:

https://autobuild.buildroot.org/results/7084a73d5727a86ca55eda3d1f01ea4d5b8ecf65/

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
index 3603eb071c..527d4d39af 100644
@@ -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_4
support/testing/tests/package/test_netdata.py +1 -1
index 6b616398d3..42bcbcdc6f 100644
@@ -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

#2 lore raw
In reply to Bernd Kuhls
Quoted 9 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Bernd" == Bernd Kuhls <[email protected]> writes:

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:

Quoted 8 lines

GEN netdatacli
/bin/sh: line 1: no: command not found make[3]: *** [Makefile:5502: netdatacli] Error 127

Fixes:
https://autobuild.buildroot.org/results/7084a73d5727a86ca55eda3d1f01ea4d5b8ecf65/

Committed, thanks.

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#3 lore raw
In reply to Bernd Kuhls

In reply of:

Quoted 7 lines

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:

Quoted 8 lines

GEN netdatacli
/bin/sh: line 1: no: command not found make[3]: *** [Makefile:5502: netdatacli] Error 127

Fixes:
https://autobuild.buildroot.org/results/7084a73d5727a86ca55eda3d1f01ea4d5b8ecf65/

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
index 3603eb071c..527d4d39af 100644
@@ -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
index 6b616398d3..42bcbcdc6f 100644
@@ -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

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