]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
collectd: Fix compiling against newer xfsprogs
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 23 Oct 2018 15:45:33 +0000 (16:45 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 23 Oct 2018 15:45:33 +0000 (16:45 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/rootfiles/core/125/filelists/collectd [new symlink]
lfs/collectd
src/patches/collectd-4.10.9-xfs-compile-fix.patch [new file with mode: 0644]

diff --git a/config/rootfiles/core/125/filelists/collectd b/config/rootfiles/core/125/filelists/collectd
new file mode 120000 (symlink)
index 0000000..871b32f
--- /dev/null
@@ -0,0 +1 @@
+../../../common/collectd
\ No newline at end of file
index fd5dd946a284693214c0158fae91db4bc5e44a45..9592ec95a3572c622751764749f2f0fa2741e700 100644 (file)
@@ -104,6 +104,9 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        cd $(DIR_APP) && patch -p1 -i $(DIR_SRC)/src/patches/collectd/0021-openvpn-Fix-copy-and-paste-error.patch
        cd $(DIR_APP) && patch -p1 -i $(DIR_SRC)/src/patches/collectd/0022-openvpn-Change-data-type-from-COUNTER-to-DERIVE.patch
        cd $(DIR_APP) && patch -p1 -i $(DIR_SRC)/src/patches/collectd/silence-openvpn-errors.patch
+       cd $(DIR_APP) && patch -p1 -i $(DIR_SRC)/src/patches/collectd-4.10.9-xfs-compile-fix.patch
+       cd $(DIR_APP) && autoreconf -vfi
+       cd $(DIR_APP)/libltdl && autoreconf -vfi
        cd $(DIR_APP) && ./configure --prefix=/usr --localstatedir=/var \
                --disable-{apple_sensors,csv,ipvs,mbmon,memcached,mysql} \
                --disable-{netlink,nginx,nut,perl,serial,snmp,tape,vserver,xmms} \
diff --git a/src/patches/collectd-4.10.9-xfs-compile-fix.patch b/src/patches/collectd-4.10.9-xfs-compile-fix.patch
new file mode 100644 (file)
index 0000000..f622104
--- /dev/null
@@ -0,0 +1,28 @@
+--- collectd-4.10.9/src/utils_mount.c~ 2018-10-23 12:16:24.979393842 +0000
++++ collectd-4.10.9/src/utils_mount.c  2018-10-23 12:18:44.473984419 +0000
+@@ -21,20 +21,22 @@
+  *   Niki W. Waibel <niki.waibel@gmx.net>
+ **/
++#define _GNU_SOURCE
++
+ #if HAVE_CONFIG_H
+ # include "config.h"
+ #endif
+ #include "common.h"
++#include "plugin.h"
++#include "utils_mount.h"
++
+ #if HAVE_XFS_XQM_H
+ # include <xfs/xqm.h>
+ #define XFS_SUPER_MAGIC_STR "XFSB"
+ #define XFS_SUPER_MAGIC2_STR "BSFX"
+ #endif
+-#include "plugin.h"
+-#include "utils_mount.h"
+-
+ #if HAVE_GETVFSSTAT
+ #  if HAVE_SYS_TYPES_H
+ #    include <sys/types.h>