From fef7fbb0530c7c0e5e41c24280c05f84e7afc326 Mon Sep 17 00:00:00 2001 From: CyberMind-FR Date: Mon, 5 Jan 2026 17:57:59 +0100 Subject: [PATCH] fix(netifyd): Fix build by removing malformed 003-skip-tests patch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The 003-skip-tests.patch file was malformed and causing build failures with "Only garbage was found in the patch input" error. Removed the patch as it's not needed - the build succeeds without it since we already use --with-only-libndpi configure flag. Added 002-fix-ndpi-example-linking.patch to properly link ndpi examples with correct library order. Build verified: netifyd_5.2.1-r1_aarch64_cortex-a72.ipk (1.2M) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 --- .../002-fix-ndpi-example-linking.patch | 20 +++++++++++++++++++ .../netifyd/patches/003-skip-tests.patch | 7 ------- 2 files changed, 20 insertions(+), 7 deletions(-) create mode 100644 package/secubox/netifyd/patches/002-fix-ndpi-example-linking.patch delete mode 100644 package/secubox/netifyd/patches/003-skip-tests.patch diff --git a/package/secubox/netifyd/patches/002-fix-ndpi-example-linking.patch b/package/secubox/netifyd/patches/002-fix-ndpi-example-linking.patch new file mode 100644 index 00000000..00dd4514 --- /dev/null +++ b/package/secubox/netifyd/patches/002-fix-ndpi-example-linking.patch @@ -0,0 +1,20 @@ +--- a/libs/ndpi/example/Makefile.in ++++ b/libs/ndpi/example/Makefile.in +@@ -48,6 +48,8 @@ + + CFLAGS+=-pthread + ++LIBS_NO_NDPI := $(filter-out $(LIBNDPI),$(LIBS)) ++ + all: ndpiReader$(EXE_SUFFIX) @DPDK_TARGET@ + + EXECUTABLE_SOURCES := ndpiReader.c ndpiSimpleIntegration.c +@@ -57,7 +59,7 @@ + $(AR) rsv libndpiReader.a $(COMMON_SOURCES:%.c=%.o) + + ndpiReader$(EXE_SUFFIX): libndpiReader.a $(LIBNDPI) ndpiReader.o +- $(CC) $(CFLAGS) $(LDFLAGS) ndpiReader.o libndpiReader.a $(LIBS) -o $@ ++ $(CC) $(CFLAGS) $(LDFLAGS) ndpiReader.o -Wl,--start-group libndpiReader.a $(LIBNDPI) -Wl,--end-group $(LIBS_NO_NDPI) -o $@ + + ndpiSimpleIntegration$(EXE_SUFFIX): ndpiSimpleIntegration.o + $(CC) $(CFLAGS) $(LDFLAGS) $< $(LIBS) -o $@ diff --git a/package/secubox/netifyd/patches/003-skip-tests.patch b/package/secubox/netifyd/patches/003-skip-tests.patch deleted file mode 100644 index bef5baa6..00000000 --- a/package/secubox/netifyd/patches/003-skip-tests.patch +++ /dev/null @@ -1,7 +0,0 @@ ---- a/Makefile.am -+++ b/Makefile.am -@@ --SUBDIRS = libs/inih libs/ndpi $(SUBDIRS_EXTRA) include src deploy doc tests util --DIST_SUBDIRS = $(SUBDIRS) -+SUBDIRS = libs/inih libs/ndpi $(SUBDIRS_EXTRA) include src deploy doc util -+DIST_SUBDIRS = $(SUBDIRS) tests