]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
clamav: Fix building on ARM.
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 28 Sep 2013 11:14:34 +0000 (11:14 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 28 Sep 2013 11:14:34 +0000 (11:14 +0000)
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

index 45606fdf8f44806774347ba07eba5e95f1a980bb..9878fec0c4c2a7706ecbab0285e3c17f43ee8389 100644 (file)
@@ -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/