]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
collected: Fix build with glibc 2.36
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 15 Aug 2022 17:17:49 +0000 (17:17 +0000)
committerPeter Müller <peter.mueller@ipfire.org>
Sun, 11 Sep 2022 08:36:17 +0000 (08:36 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
lfs/collectd
src/patches/collectd-4.10.9-fix-glibc-headers.patch [new file with mode: 0644]

index bc508cb4a07de76a65c84ce414250648c3f4529d..5c4236b3af4686042ca7111bbf6f2cec73df4eb7 100644 (file)
@@ -108,6 +108,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        cd $(DIR_APP) && patch -p1 -i $(DIR_SRC)/src/patches/collectd-4.10-libiptc-build-fixes.patch
        cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/collectd-4.10.9-remove-checks-for-SENSORS_API_VERSION-upper-limit.patch
        cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/collectd-4.10-drop-linux-disk-module.patch
+       cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/collectd-4.10.9-fix-glibc-headers.patch
        cd $(DIR_APP) && autoupdate -v configure.in
        cd $(DIR_APP) && autoreconf -vfi
        cd $(DIR_APP)/libltdl && autoreconf -vfi
diff --git a/src/patches/collectd-4.10.9-fix-glibc-headers.patch b/src/patches/collectd-4.10.9-fix-glibc-headers.patch
new file mode 100644 (file)
index 0000000..fd05c4a
--- /dev/null
@@ -0,0 +1,10 @@
+--- collectd-4.10.9/src/utils_mount.c~ 2022-08-10 13:45:39.424289940 +0000
++++ collectd-4.10.9/src/utils_mount.c  2022-08-10 13:45:58.224239495 +0000
+@@ -31,6 +31,7 @@
+ #include "plugin.h"
+ #include "utils_mount.h"
++#undef HAVE_XFS_XQM_H
+ #if HAVE_XFS_XQM_H
+ # include <xfs/xqm.h>
+ #define XFS_SUPER_MAGIC_STR "XFSB"