collectd: Link against libip4tc

Message ID 20200910203906.14234-1-michael.tremer@ipfire.org
State Accepted
Commit b171c68349a5ccc778c54ba99a104a6508e427ac
Headers
Series collectd: Link against libip4tc |

Commit Message

Michael Tremer Sept. 10, 2020, 8:39 p.m. UTC
  libiptc is no longer being shipped by iptables and has been split
into a version for IPv4 and IPv6.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
---
 lfs/collectd                                        |  1 +
 src/patches/collectd-4.10-libiptc-build-fixes.patch | 11 +++++++++++
 2 files changed, 12 insertions(+)
 create mode 100644 src/patches/collectd-4.10-libiptc-build-fixes.patch
  

Patch

diff --git a/lfs/collectd b/lfs/collectd
index e3fcc1013..0f99c4ce7 100644
--- a/lfs/collectd
+++ b/lfs/collectd
@@ -105,6 +105,7 @@  $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
 	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) && patch -p1 -i $(DIR_SRC)/src/patches/collectd-4.10-libiptc-build-fixes.patch
 	cd $(DIR_APP) && autoreconf -vfi
 	cd $(DIR_APP)/libltdl && autoreconf -vfi
 	cd $(DIR_APP) && ./configure --prefix=/usr --localstatedir=/var \
diff --git a/src/patches/collectd-4.10-libiptc-build-fixes.patch b/src/patches/collectd-4.10-libiptc-build-fixes.patch
new file mode 100644
index 000000000..851dba70f
--- /dev/null
+++ b/src/patches/collectd-4.10-libiptc-build-fixes.patch
@@ -0,0 +1,11 @@ 
+--- collectd-4.10.9/src/Makefile.am~	2020-09-10 19:45:41.936847854 +0000
++++ collectd-4.10.9/src/Makefile.am	2020-09-10 19:45:50.416713658 +0000
+@@ -418,7 +418,7 @@
+ iptables_la_LIBADD  = owniptc/libiptc.la
+ iptables_la_DEPENDENCIES = owniptc/libiptc.la
+ else
+-iptables_la_LIBADD = -liptc
++iptables_la_LIBADD = -lip4tc
+ endif
+ collectd_LDADD += "-dlopen" iptables.la
+ collectd_DEPENDENCIES += iptables.la