Hi Scott,

since clamav builds on powerpc and ppc64 I don't think any additional changes to Roland's patch are necessary for building on powerpcspe.

However my previous patch didn't include the fanotify syscall numbers for alpha and m68k, which you can find in the attached patch. (I didn't find the syscall definitions for the other ports, so clamav will probably not build on them.)
Additionally my patch includes minor fixes for debian/rules:
 * '-i' is not necessary for dh_autoreconf, as '-i -f' is the default
 * '--with-dbdir=/var/lib/clamav/' has an unnecessary closing slash,
   which might lead to // in path names

Please consider applying both patches.

Best regards,
Andreas

diff -ruN clamav-0.98.1+dfsg.orig_/clamd/fan-syscalllib.h clamav-0.98.1+dfsg/clamd/fan-syscalllib.h
--- clamav-0.98.1+dfsg.orig_/clamd/fan-syscalllib.h	2014-02-01 13:42:18.000000000 +0100
+++ clamav-0.98.1+dfsg/clamd/fan-syscalllib.h	2014-02-11 18:53:58.319991230 +0100
@@ -41,6 +41,12 @@
 #elif defined(__sparc__)
 # define __NR_fanotify_init 329
 # define __NR_fanotify_mark 330
+#elif defined(__alpha__)
+# define __NR_fanotify_init 494
+# define __NR_fanotify_mark 495
+#elif defined(__m68k__)
+# define __NR_fanotify_init 337
+# define __NR_fanotify_mark 338
 #else
 # error "System call numbers not defined for this architecture"
 #endif
diff -ruN clamav-0.98.1+dfsg.orig_/debian/rules clamav-0.98.1+dfsg/debian/rules
--- clamav-0.98.1+dfsg.orig_/debian/rules	2014-02-01 13:42:18.000000000 +0100
+++ clamav-0.98.1+dfsg/debian/rules	2014-02-11 19:03:09.512296039 +0100
@@ -61,8 +61,8 @@
 	done;
 	# Add here commands to configure the package.
 	touch libclamav/version.h  # Missing upstream in 0.98
-	dh_autoreconf -i
-	./configure CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" CXXFLAGS="$(CXXFLAGS)" LDFLAGS="$(LDFLAGS)" --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --disable-clamav --with-dbdir=/var/lib/clamav/ --sysconfdir=/etc/clamav --enable-milter --disable-clamuko --with-gnu-ld --enable-dns-fix ${DEBUG_OPTS} --disable-unrar --libdir=\$${prefix}/lib --with-system-tommath  --without-included-ltdl
+	dh_autoreconf
+	./configure CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" CXXFLAGS="$(CXXFLAGS)" LDFLAGS="$(LDFLAGS)" --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --disable-clamav --with-dbdir=/var/lib/clamav --sysconfdir=/etc/clamav --enable-milter --disable-clamuko --with-gnu-ld --enable-dns-fix ${DEBUG_OPTS} --disable-unrar --libdir=\$${prefix}/lib --with-system-tommath  --without-included-ltdl
 
 build: build-stamp
 build-stamp: build-arch build-indep

Reply via email to