mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-04-20 11:38:34 +00:00
collectd: upgrade 5.8.1 -> 5.10.0
0001-conditionally-check-libvirt.patch Removed because it is not applicable to 5.10.0. Refresh the following patches: 0001-Remove-including-sys-sysctl.h-on-glibc-based-systems.patch 0001-configure-Check-for-Wno-error-format-truncation-comp.patch 0001-fix-to-build-with-glibc-2.25.patch Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -3,66 +3,30 @@ From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Sat, 27 Jul 2019 14:20:14 -0700
|
||||
Subject: [PATCH] Remove including sys/sysctl.h on glibc based systems
|
||||
|
||||
Glibc 2.30 has added deprecation notice and collectd detects it as warning [1]
|
||||
Glibc 2.30 has added deprecation notice and collectd detects it as
|
||||
warning [1]
|
||||
|
||||
Fixes
|
||||
sys/sysctl.h:21:2: error: "The <sys/sysctl.h> header is deprecated and will be removed." [-Werror,-W#warnings]
|
||||
sys/sysctl.h:21:2: error: "The <sys/sysctl.h> header is deprecated and
|
||||
will be removed." [-Werror,-W#warnings]
|
||||
|
||||
[1] https://sourceware.org/git/?p=glibc.git;a=commit;h=744e829637162bb7d5029632aacf341c64b86990
|
||||
[1]
|
||||
https://sourceware.org/git/?p=glibc.git;a=commit;h=744e829637162bb7d5029632aacf341c64b86990
|
||||
|
||||
Upstream-Status: Submitted [https://github.com/collectd/collectd/pull/3234]
|
||||
Upstream-Status: Submitted
|
||||
[https://github.com/collectd/collectd/pull/3234]
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
src/contextswitch.c | 2 +-
|
||||
src/memory.c | 2 +-
|
||||
src/swap.c | 2 +-
|
||||
src/uuid.c | 2 +-
|
||||
4 files changed, 4 insertions(+), 4 deletions(-)
|
||||
src/cpu.c | 2 +-
|
||||
src/memory.c | 2 +-
|
||||
src/processes.c | 2 +-
|
||||
src/swap.c | 2 +-
|
||||
src/uptime.c | 2 +-
|
||||
src/uuid.c | 2 +-
|
||||
6 files changed, 6 insertions(+), 6 deletions(-)
|
||||
|
||||
--- a/src/contextswitch.c
|
||||
+++ b/src/contextswitch.c
|
||||
@@ -26,7 +26,7 @@
|
||||
#include "common.h"
|
||||
#include "plugin.h"
|
||||
|
||||
-#ifdef HAVE_SYS_SYSCTL_H
|
||||
+#if defined(HAVE_SYS_SYSCTL_H) && !defined(__GLIBC__)
|
||||
#include <sys/sysctl.h>
|
||||
#endif
|
||||
|
||||
--- a/src/memory.c
|
||||
+++ b/src/memory.c
|
||||
@@ -28,7 +28,7 @@
|
||||
#include "common.h"
|
||||
#include "plugin.h"
|
||||
|
||||
-#ifdef HAVE_SYS_SYSCTL_H
|
||||
+#if defined(HAVE_SYS_SYSCTL_H) && !defined(__GLIBC__)
|
||||
#include <sys/sysctl.h>
|
||||
#endif
|
||||
#ifdef HAVE_SYS_VMMETER_H
|
||||
--- a/src/swap.c
|
||||
+++ b/src/swap.c
|
||||
@@ -49,7 +49,7 @@
|
||||
#if HAVE_SYS_PARAM_H
|
||||
#include <sys/param.h>
|
||||
#endif
|
||||
-#if HAVE_SYS_SYSCTL_H
|
||||
+#if defined(HAVE_SYS_SYSCTL_H) && !defined(__GLIBC__)
|
||||
#include <sys/sysctl.h>
|
||||
#endif
|
||||
#if HAVE_SYS_DKSTAT_H
|
||||
--- a/src/uuid.c
|
||||
+++ b/src/uuid.c
|
||||
@@ -29,7 +29,7 @@
|
||||
#include "common.h"
|
||||
#include "plugin.h"
|
||||
|
||||
-#if HAVE_SYS_SYSCTL_H
|
||||
+#if defined(HAVE_SYS_SYSCTL_H) && !defined(__GLIBC__)
|
||||
#include <sys/sysctl.h>
|
||||
#endif
|
||||
|
||||
diff --git a/src/cpu.c b/src/cpu.c
|
||||
index 09d60fe..9d12623 100644
|
||||
--- a/src/cpu.c
|
||||
+++ b/src/cpu.c
|
||||
@@ -60,7 +60,7 @@
|
||||
@@ -74,9 +38,24 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
#include <sys/sysctl.h>
|
||||
#endif
|
||||
|
||||
diff --git a/src/memory.c b/src/memory.c
|
||||
index 10bccde..50a8086 100644
|
||||
--- a/src/memory.c
|
||||
+++ b/src/memory.c
|
||||
@@ -28,7 +28,7 @@
|
||||
#include "plugin.h"
|
||||
#include "utils/common/common.h"
|
||||
|
||||
-#ifdef HAVE_SYS_SYSCTL_H
|
||||
+#if defined(HAVE_SYS_SYSCTL_H) && !defined(__GLIBC__)
|
||||
#include <sys/sysctl.h>
|
||||
#endif
|
||||
#ifdef HAVE_SYS_VMMETER_H
|
||||
diff --git a/src/processes.c b/src/processes.c
|
||||
index f83913a..9f71511 100644
|
||||
--- a/src/processes.c
|
||||
+++ b/src/processes.c
|
||||
@@ -82,7 +82,7 @@
|
||||
@@ -87,7 +87,7 @@
|
||||
#if HAVE_MACH_VM_PROT_H
|
||||
#include <mach/vm_prot.h>
|
||||
#endif
|
||||
@@ -85,6 +64,21 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
#include <sys/sysctl.h>
|
||||
#endif
|
||||
/* #endif HAVE_THREAD_INFO */
|
||||
diff --git a/src/swap.c b/src/swap.c
|
||||
index 61c9e28..5a475e4 100644
|
||||
--- a/src/swap.c
|
||||
+++ b/src/swap.c
|
||||
@@ -49,7 +49,7 @@
|
||||
#if HAVE_SYS_PARAM_H
|
||||
#include <sys/param.h>
|
||||
#endif
|
||||
-#if HAVE_SYS_SYSCTL_H
|
||||
+#if defined(HAVE_SYS_SYSCTL_H) && !defined(__GLIBC__)
|
||||
#include <sys/sysctl.h>
|
||||
#endif
|
||||
#if HAVE_SYS_DKSTAT_H
|
||||
diff --git a/src/uptime.c b/src/uptime.c
|
||||
index 0892bda..4b15150 100644
|
||||
--- a/src/uptime.c
|
||||
+++ b/src/uptime.c
|
||||
@@ -33,7 +33,7 @@
|
||||
@@ -96,3 +90,19 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
#include <sys/sysctl.h>
|
||||
/* Using sysctl interface to retrieve the boot time on *BSD / Darwin / OS X
|
||||
* systems */
|
||||
diff --git a/src/uuid.c b/src/uuid.c
|
||||
index 60d09b5..17e4dd8 100644
|
||||
--- a/src/uuid.c
|
||||
+++ b/src/uuid.c
|
||||
@@ -29,7 +29,7 @@
|
||||
#include "plugin.h"
|
||||
#include "utils/common/common.h"
|
||||
|
||||
-#if HAVE_SYS_SYSCTL_H
|
||||
+#if defined(HAVE_SYS_SYSCTL_H) && !defined(__GLIBC__)
|
||||
#include <sys/sysctl.h>
|
||||
#endif
|
||||
|
||||
--
|
||||
2.17.1
|
||||
|
||||
|
||||
@@ -1,39 +0,0 @@
|
||||
From 385bf1c2ec57942e17ee529e57eef0dcd99904e6 Mon Sep 17 00:00:00 2001
|
||||
From: Roy Li <rongqing.li@windriver.com>
|
||||
Date: Tue, 1 Sep 2015 17:00:33 +0800
|
||||
Subject: [PATCH] [PATCH] conditionally check libvirt
|
||||
|
||||
Upstream-Statue: Pending
|
||||
|
||||
check if libvirt is available only when a user wants to use libvirt
|
||||
|
||||
Signed-off-by: Roy Li <rongqing.li@windriver.com>
|
||||
|
||||
---
|
||||
configure.ac | 13 ++++++++-----
|
||||
1 file changed, 8 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 101d6f9f..a7eca97d 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -5758,11 +5758,14 @@ else
|
||||
with_libxml2="no (pkg-config doesn't know libxml-2.0)"
|
||||
fi
|
||||
|
||||
-$PKG_CONFIG --exists libvirt 2>/dev/null
|
||||
-if test $? = 0; then
|
||||
- with_libvirt="yes"
|
||||
-else
|
||||
- with_libvirt="no (pkg-config doesn't know libvirt)"
|
||||
+if test "x$enable_libvirt" = "xyes"; then
|
||||
+ $PKG_CONFIG --exists libvirt 2>/dev/null
|
||||
+ if test "$?" = "0"
|
||||
+ then
|
||||
+ with_libvirt="yes"
|
||||
+ else
|
||||
+ with_libvirt="no (pkg-config doesn't know libvirt)"
|
||||
+ fi
|
||||
fi
|
||||
|
||||
if test "x$with_libxml2" = "xyes"; then
|
||||
@@ -23,9 +23,9 @@ diff --git a/configure.ac b/configure.ac
|
||||
index a7eca97d..560eb988 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -6794,6 +6794,7 @@ if test "x$enable_werror" != "xno"; then
|
||||
AM_CFLAGS="$AM_CFLAGS -Werror"
|
||||
AM_CXXFLAGS="$AM_CXXFLAGS -Werror"
|
||||
@@ -7101,6 +7101,7 @@ if test "x$GCC" = "xyes"; then
|
||||
AM_CXXFLAGS="$AM_CXXFLAGS -Werror"
|
||||
fi
|
||||
fi
|
||||
+AX_CHECK_COMPILE_FLAG([-Werror -Werror=format-truncation],[AM_CFLAGS="$AM_CFLAGS -Wno-error=format-truncation" AM_CXXFLAGS="$AM_CXXFLAGS -Wno-error=format-truncation"])
|
||||
|
||||
|
||||
@@ -11,8 +11,8 @@ diff --git a/src/md.c b/src/md.c
|
||||
index 3725f9a..202225b 100644
|
||||
--- a/src/md.c
|
||||
+++ b/src/md.c
|
||||
@@ -25,6 +25,7 @@
|
||||
#include "utils_ignorelist.h"
|
||||
@@ -26,6 +26,7 @@
|
||||
#include "utils/ignorelist/ignorelist.h"
|
||||
|
||||
#include <sys/ioctl.h>
|
||||
+#include <sys/sysmacros.h>
|
||||
|
||||
@@ -9,15 +9,14 @@ SRC_URI = "http://collectd.org/files/collectd-${PV}.tar.bz2 \
|
||||
file://collectd.init \
|
||||
file://collectd.service \
|
||||
file://no-gcrypt-badpath.patch \
|
||||
file://0001-conditionally-check-libvirt.patch \
|
||||
file://0001-fix-to-build-with-glibc-2.25.patch \
|
||||
file://0001-configure-Check-for-Wno-error-format-truncation-comp.patch \
|
||||
file://0005-Disable-new-gcc8-warnings.patch \
|
||||
file://0006-libcollectdclient-Fix-string-overflow-errors.patch \
|
||||
file://0001-Remove-including-sys-sysctl.h-on-glibc-based-systems.patch \
|
||||
"
|
||||
SRC_URI[md5sum] = "bfce96c42cede5243028510bcc57c1e6"
|
||||
SRC_URI[sha256sum] = "e796fda27ce06377f491ad91aa286962a68c2b54076aa77a29673d53204453da"
|
||||
SRC_URI[md5sum] = "a8344a199b124711bdbec57f1c0b624f"
|
||||
SRC_URI[sha256sum] = "a03359f563023e744c2dc743008a00a848f4cd506e072621d86b6d8313c0375b"
|
||||
|
||||
inherit autotools python3native update-rc.d pkgconfig systemd
|
||||
|
||||
Reference in New Issue
Block a user