[FS#711] iptables 600-shared-libext.patch broken and incomplete
LEDE Bugs
lede-bugs at lists.infradead.org
Fri Jul 14 04:06:58 PDT 2017
The following task has a new comment added:
FS#711 - iptables 600-shared-libext.patch broken and incomplete
User who did this - Alexander Lochmann (flipreverse)
----------
Hi Folks,
I've been able to fix that issue. At least for my scenario.
Due to some reasons, the LEDE iptables maintainer decided to turn various auxiliary libraries, e.g., libext, into shared libraries (instead of a static one). To do so, they've written a patch to modify the appropriate makefile.am file. Those changes can be found in ./package/network/utils/iptables/patches/600-shared-libext.patch.
However, the iptables maintainter more or less recently added another target called xtables_compat_multi. Guess what, that target relies on static libraries instead of shared libraries as the origin iptables project used to do.
To overcome that issue, I've added the following lines to the aforementioned patch file:
# nftables compatibility layer
if ENABLE_NFTABLES
BUILT_SOURCES += xtables-config-parser.h
xtables_compat_multi_SOURCES = xtables-compat-multi.c iptables-xml.c
xtables_compat_multi_CFLAGS = ${AM_CFLAGS}
-xtables_compat_multi_LDADD = ../extensions/libext.a ../extensions/libext_ebt.a
+xtables_compat_multi_LDADD =
+xtables_compat_multi_LDFLAGS = -L../extensions/ -liptext -liptext_ebt
Et voilá, the issue is fixed.
Can one of the maintainers please confirm my fix?
Regards,
Alex
----------
More information can be found at the following URL:
https://bugs.lede-project.org/index.php?do=details&task_id=711#comment2958
More information about the lede-bugs
mailing list