xtables-addons: set ipp2p depends on kmod-lib-textsearch
authorMieczyslaw Nalewaj <redacted>
Sun, 18 May 2025 16:14:06 +0000 (18:14 +0200)
committerRobert Marko <redacted>
Mon, 26 May 2025 17:04:18 +0000 (19:04 +0200)
For version 3.27 CONFIG_TEXTSEARCH_BM checks is enabled,
so ipp2p is set depends on kmod-lib-textsearch.

If ipp2p (and kmod-lib-textsearch) is disabled the error
"error CONFIG_TEXTSEARCH=y/m is required.." is displayed.
This is because all modules are always compiled.
So to make compilation possible with ipp2p disabled, the message
was disabled.

Signed-off-by: Mieczyslaw Nalewaj <redacted>
net/xtables-addons/Makefile
net/xtables-addons/patches/400-deactivate-no-textsearch-bm-error.patch [new file with mode: 0644]

index d699c656e162774eb0c3b84e344fcd8c6db0e77c..db0302b7345a1f7ea98b40dda2cde2cb4405ae76 100644 (file)
@@ -8,7 +8,7 @@ include $(INCLUDE_DIR)/kernel.mk
 
 PKG_NAME:=xtables-addons
 PKG_VERSION:=3.27
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 PKG_HASH:=e47ea8febe73c12ecab09d2c93578c5dc72d76f17fdf673397758f519cce6828
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
@@ -221,7 +221,7 @@ $(eval $(call BuildTemplate,fuzzy,fuzzy,xt_fuzzy,xt_fuzzy,))
 $(eval $(call BuildTemplate,geoip,geoip,xt_geoip,xt_geoip,))
 $(eval $(call BuildTemplate,iface,iface,xt_iface,xt_iface,))
 $(eval $(call BuildTemplate,ipmark,IPMARK,xt_IPMARK,xt_IPMARK,+kmod-ipt-compat-xtables))
-$(eval $(call BuildTemplate,ipp2p,IPP2P,xt_ipp2p,xt_ipp2p,+kmod-ipt-compat-xtables))
+$(eval $(call BuildTemplate,ipp2p,IPP2P,xt_ipp2p,xt_ipp2p,+kmod-ipt-compat-xtables +kmod-lib-textsearch))
 $(eval $(call BuildTemplate,ipv4options,ipv4options,xt_ipv4options,xt_ipv4options,))
 $(eval $(call BuildTemplate,length2,length2,xt_length2,xt_length2,+kmod-ipt-compat-xtables))
 $(eval $(call BuildTemplate,logmark,LOGMARK,xt_LOGMARK,xt_LOGMARK,+kmod-ipt-compat-xtables))
diff --git a/net/xtables-addons/patches/400-deactivate-no-textsearch-bm-error.patch b/net/xtables-addons/patches/400-deactivate-no-textsearch-bm-error.patch
new file mode 100644 (file)
index 0000000..ccf15c2
--- /dev/null
@@ -0,0 +1,23 @@
+From: Mieczyslaw Nalewaj <namiltd@yahoo.com>
+Date: Thu, 15 May 2025 14:59:18 +0200
+Subject: xtables-addons: deactivate 'no TEXTSEARCH_BM' error
+
+If ipp2p (and kmod-lib-textsearch) is disabled the error
+"error CONFIG_TEXTSEARCH=y/m is required.." is displayed.
+This is because all modules are always compiled.
+So to make compilation possible with ipp2p disabled, the message
+was disabled.
+
+Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
+
+--- a/extensions/xt_ipp2p.c
++++ b/extensions/xt_ipp2p.c
+@@ -14,7 +14,7 @@
+ #include "xt_ipp2p.h"
+ #include "compat_xtables.h"
+ #if !defined(CONFIG_TEXTSEARCH_BM) && !defined(CONFIG_TEXTSEARCH_BM_MODULE)
+-#     error CONFIG_TEXTSEARCH_BM=y/m is required for ipp2p. Either enable textsearch in your kernel ".config" file, or disable ipp2p in the "mconfig" file in Xtables-addons.
++//#   error CONFIG_TEXTSEARCH_BM=y/m is required for ipp2p. Either enable textsearch in your kernel ".config" file, or disable ipp2p in the "mconfig" file in Xtables-addons.
+ #endif
+ //#define IPP2P_DEBUG_ARES
git clone https://git.99rst.org/PROJECT