summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-webserver/recipes-webadmin/netdata/netdata/0001-Add-check-for-64bit-builtin-atomics.patch (renamed from meta-webserver/recipes-webadmin/netdata/netdata/0001-cmake-Add-check-for-64bit-builtin-atomics.patch)30
-rw-r--r--meta-webserver/recipes-webadmin/netdata/netdata/0002-Do-not-hardcode-systemd-unit-directories.patch12
-rw-r--r--meta-webserver/recipes-webadmin/netdata/netdata_1.47.3.bb (renamed from meta-webserver/recipes-webadmin/netdata/netdata_1.47.1.bb)4
3 files changed, 22 insertions, 24 deletions
diff --git a/meta-webserver/recipes-webadmin/netdata/netdata/0001-cmake-Add-check-for-64bit-builtin-atomics.patch b/meta-webserver/recipes-webadmin/netdata/netdata/0001-Add-check-for-64bit-builtin-atomics.patch
index d8ad69ceca..bb4a5235fe 100644
--- a/meta-webserver/recipes-webadmin/netdata/netdata/0001-cmake-Add-check-for-64bit-builtin-atomics.patch
+++ b/meta-webserver/recipes-webadmin/netdata/netdata/0001-Add-check-for-64bit-builtin-atomics.patch
@@ -1,7 +1,7 @@
1From 1e8fbb6da4e5ee44fe24c078aae1930d759f0ba3 Mon Sep 17 00:00:00 2001 1From 555cfa9c4d5b1114d975be5208ab066c7924a171 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 17 Sep 2024 05:29:13 +0000 3Date: Tue, 17 Sep 2024 05:29:13 +0000
4Subject: [PATCH] cmake: Add check for 64bit builtin atomics 4Subject: [PATCH] Add check for 64bit builtin atomics
5 5
6Compilers for some architectures e.g. RISCV32 do not have 64bit atomics 6Compilers for some architectures e.g. RISCV32 do not have 64bit atomics
7therefore, its important to deduce that and use it to pass right flags to 7therefore, its important to deduce that and use it to pass right flags to
@@ -15,13 +15,13 @@ nection.c.o): in function `h2o_create_connection':
15Upstream-Status: Submitted [https://github.com/netdata/netdata/pull/18565] 15Upstream-Status: Submitted [https://github.com/netdata/netdata/pull/18565]
16Signed-off-by: Khem Raj <raj.khem@gmail.com> 16Signed-off-by: Khem Raj <raj.khem@gmail.com>
17--- 17---
18 CMakeLists.txt | 13 +++++++++++++ 18 CMakeLists.txt | 11 +++++++++++
19 1 file changed, 13 insertions(+) 19 1 file changed, 11 insertions(+)
20 20
21Index: netdata-v1.47.1/CMakeLists.txt 21Index: netdata-v1.47.3/CMakeLists.txt
22=================================================================== 22===================================================================
23--- netdata-v1.47.1.orig/CMakeLists.txt 23--- netdata-v1.47.3.orig/CMakeLists.txt
24+++ netdata-v1.47.1/CMakeLists.txt 24+++ netdata-v1.47.3/CMakeLists.txt
25@@ -448,6 +448,15 @@ int main() { 25@@ -448,6 +448,15 @@ int main() {
26 } 26 }
27 " HAVE_BUILTIN_ATOMICS) 27 " HAVE_BUILTIN_ATOMICS)
@@ -38,14 +38,12 @@ Index: netdata-v1.47.1/CMakeLists.txt
38 check_c_source_compiles(" 38 check_c_source_compiles("
39 void my_printf(char const *s, ...) __attribute__((format(gnu_printf, 1, 2))); 39 void my_printf(char const *s, ...) __attribute__((format(gnu_printf, 1, 2)));
40 int main() { return 0; } 40 int main() { return 0; }
41@@ -523,6 +532,10 @@ if(OS_FREEBSD OR OS_MACOS) 41@@ -1528,6 +1537,8 @@ if(ENABLE_H2O)
42 set(HAVE_BUILTIN_ATOMICS True) 42
43 target_compile_options(h2o PUBLIC -DH2O_USE_LIBUV=0)
44 target_link_libraries(h2o PRIVATE PkgConfig::TLS)
45+ target_compile_definitions(h2o PRIVATE
46+ "$<$<NOT:$<BOOL:${ARCH_SUPPORTS_64BIT_ATOMICS}>>:H2O_NO_64BIT_ATOMICS>")
43 endif() 47 endif()
44 48
45+if (ENABLE_H2O AND NOT ARCH_SUPPORTS_64BIT_ATOMICS) 49 #
46+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DH2O_NO_64BIT_ATOMICS")
47+endif (NOT ARCH_SUPPORTS_64BIT_ATOMICS)
48+
49 # openssl/crypto
50 set(ENABLE_OPENSSL True)
51 pkg_check_modules(TLS IMPORTED_TARGET openssl)
diff --git a/meta-webserver/recipes-webadmin/netdata/netdata/0002-Do-not-hardcode-systemd-unit-directories.patch b/meta-webserver/recipes-webadmin/netdata/netdata/0002-Do-not-hardcode-systemd-unit-directories.patch
index f8509e993a..143caf89cb 100644
--- a/meta-webserver/recipes-webadmin/netdata/netdata/0002-Do-not-hardcode-systemd-unit-directories.patch
+++ b/meta-webserver/recipes-webadmin/netdata/netdata/0002-Do-not-hardcode-systemd-unit-directories.patch
@@ -9,11 +9,11 @@ Signed-off-by: Enguerrand de Ribaucourt <enguerrand.de-ribaucourt@savoirfairelin
9 CMakeLists.txt | 6 +++--- 9 CMakeLists.txt | 6 +++---
10 1 file changed, 3 insertions(+), 3 deletions(-) 10 1 file changed, 3 insertions(+), 3 deletions(-)
11 11
12diff --git a/CMakeLists.txt b/CMakeLists.txt 12Index: netdata-v1.47.3/CMakeLists.txt
13index 622bf88..ef3a771 100644 13===================================================================
14--- a/CMakeLists.txt 14--- netdata-v1.47.3.orig/CMakeLists.txt
15+++ b/CMakeLists.txt 15+++ netdata-v1.47.3/CMakeLists.txt
16@@ -2533,7 +2533,7 @@ if(BUILD_FOR_PACKAGING) 16@@ -2531,7 +2531,7 @@ if(BUILD_FOR_PACKAGING)
17 install(FILES 17 install(FILES
18 ${CMAKE_BINARY_DIR}/system/systemd/netdata.service 18 ${CMAKE_BINARY_DIR}/system/systemd/netdata.service
19 COMPONENT netdata 19 COMPONENT netdata
@@ -22,7 +22,7 @@ index 622bf88..ef3a771 100644
22 install(DIRECTORY 22 install(DIRECTORY
23 COMPONENT netdata 23 COMPONENT netdata
24 DESTINATION usr/lib/systemd/journald@netdata.conf.d) 24 DESTINATION usr/lib/systemd/journald@netdata.conf.d)
25@@ -2622,11 +2622,11 @@ if(NOT OS_WINDOWS) 25@@ -2620,11 +2620,11 @@ if(NOT OS_WINDOWS)
26 install(FILES 26 install(FILES
27 ${CMAKE_BINARY_DIR}/system/systemd/netdata-updater.service 27 ${CMAKE_BINARY_DIR}/system/systemd/netdata-updater.service
28 COMPONENT netdata 28 COMPONENT netdata
diff --git a/meta-webserver/recipes-webadmin/netdata/netdata_1.47.1.bb b/meta-webserver/recipes-webadmin/netdata/netdata_1.47.3.bb
index 33a4299dde..841894ede9 100644
--- a/meta-webserver/recipes-webadmin/netdata/netdata_1.47.1.bb
+++ b/meta-webserver/recipes-webadmin/netdata/netdata_1.47.3.bb
@@ -9,13 +9,13 @@ DEPENDS += "json-c libuv libyaml util-linux zlib lz4"
9 9
10SRC_URI = " \ 10SRC_URI = " \
11 https://github.com/${BPN}/${BPN}/releases/download/v${PV}/${BPN}-v${PV}.tar.gz \ 11 https://github.com/${BPN}/${BPN}/releases/download/v${PV}/${BPN}-v${PV}.tar.gz \
12 file://0001-cmake-Add-check-for-64bit-builtin-atomics.patch \ 12 file://0001-Add-check-for-64bit-builtin-atomics.patch \
13 file://0002-Do-not-hardcode-systemd-unit-directories.patch \ 13 file://0002-Do-not-hardcode-systemd-unit-directories.patch \
14 file://netdata.conf \ 14 file://netdata.conf \
15 file://netdata-volatiles.conf \ 15 file://netdata-volatiles.conf \
16 ${@bb.utils.contains('PACKAGECONFIG', 'go', 'file://go.d.conf', '', d)} \ 16 ${@bb.utils.contains('PACKAGECONFIG', 'go', 'file://go.d.conf', '', d)} \
17 " 17 "
18SRC_URI[sha256sum] = "fb970a4b571ffd542b7d24220ef806a4c1b56c535e0f549a9978860a9f1dcc9c" 18SRC_URI[sha256sum] = "cf906c304ac49ca335bef8f085664efe4c567d47877a91e0744a7942ba351053"
19 19
20UPSTREAM_CHECK_URI = "https://github.com/${BPN}/${BPN}/tags" 20UPSTREAM_CHECK_URI = "https://github.com/${BPN}/${BPN}/tags"
21UPSTREAM_CHECK_REGEX = "${BPN}/releases/tag/v(?P<pver>\d+(?:\.\d+)*)" 21UPSTREAM_CHECK_REGEX = "${BPN}/releases/tag/v(?P<pver>\d+(?:\.\d+)*)"