From d0a1fbbe550aeabef272d841d58fc050bb9475e0 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sat, 28 Sep 2013 11:14:34 +0000 Subject: [PATCH] clamav: Fix building on ARM. Disable using fanotify: CC fan.o In file included from fan.c:38: fan-syscalllib.h:14:3: error: #error "System call numbers not defined for this architecture" In file included from fan.c:38: fan-syscalllib.h: In function 'fanotify_init': fan-syscalllib.h:19: error: '__NR_fanotify_init' undeclared (first use in this function) fan-syscalllib.h:19: error: (Each undeclared identifier is reported only once fan-syscalllib.h:19: error: for each function it appears in.) fan-syscalllib.h: In function 'fanotify_mark': fan-syscalllib.h:25: error: '__NR_fanotify_mark' undeclared (first use in this function) make[3]: *** [fan.o] Error 1 make[3]: Leaving directory `/usr/src/clamav-0.98/clamd' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/usr/src/clamav-0.98' make[1]: *** [all] Error 2 make[1]: Leaving directory `/usr/src/clamav-0.98' make: *** [/usr/src/log/clamav-0.98] Error 2 --- lfs/clamav | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lfs/clamav b/lfs/clamav index 45606fdf8..9878fec0c 100644 --- a/lfs/clamav +++ b/lfs/clamav @@ -36,6 +36,10 @@ PAK_VER = 23 DEPS = "" +ifeq "$(MACHINE_TYPE)" "arm" +CONFIGURE_FLAGS = --disable-fanotify +endif + ############################################################################### # Top-level Rules ############################################################################### @@ -77,7 +81,10 @@ $(subst %,%_MD5,$(objects)) : $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) @$(PREBUILD) @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE) - cd $(DIR_APP) && ./configure --prefix=/usr --sysconfdir=/var/ipfire/clamav + cd $(DIR_APP) && ./configure \ + --prefix=/usr \ + --sysconfdir=/var/ipfire/clamav \ + $(CONFIGURE_FLAGS) cd $(DIR_APP) && make $(MAKETUNING) cd $(DIR_APP) && make install mkdir -p /usr/share/clamav/