From f74db5cf4ab3e281c8e515b9e1dc04f62b2c6dc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Wed, 2 Dec 2015 11:09:33 +0100 Subject: [PATCH] clamav: unbreak musl --- srcpkgs/clamav/patches/musl-sys_inotify_h.patch | 11 +++++++++++ srcpkgs/clamav/template | 9 ++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/clamav/patches/musl-sys_inotify_h.patch diff --git a/srcpkgs/clamav/patches/musl-sys_inotify_h.patch b/srcpkgs/clamav/patches/musl-sys_inotify_h.patch new file mode 100644 index 00000000000..af2fd2be0dd --- /dev/null +++ b/srcpkgs/clamav/patches/musl-sys_inotify_h.patch @@ -0,0 +1,11 @@ +--- clamd/onaccess_ddd.h 2015-11-24 00:15:21.000000000 +0100 ++++ clamd/onaccess_ddd.h 2015-12-02 10:54:49.836791779 +0100 +@@ -22,6 +22,8 @@ + #ifndef __ONAS_IN_H + #define __ONAS_IN_H + ++#include ++ + #define ONAS_IN 0x01 + #define ONAS_FAN 0x02 + diff --git a/srcpkgs/clamav/template b/srcpkgs/clamav/template index 43b0e79e8dc..6160ec31cfe 100644 --- a/srcpkgs/clamav/template +++ b/srcpkgs/clamav/template @@ -1,7 +1,7 @@ # Template file for 'clamav' pkgname=clamav version=0.99.0 -revision=1 +revision=2 wrksrc=${pkgname}-${version%.*} build_style=gnu-configure configure_args="--sbindir=/usr/bin --with-pcre=/usr" @@ -27,8 +27,15 @@ if [ "$CROSS_BUILD" ]; then configure_args+=" --with-zlib=${XBPS_CROSS_BASE}/usr" configure_args+=" --disable-mempool" fi +case "$XBPS_TARGET_MACHINE" in + *-musl) makedepends+=" musl-fts" + LDFLAGS="-lfts" + ;; +esac do_configure() { + # Disable detection of sys/cdefs.h (it's obsolete) + sed -i configure -e 's; sys/cdefs\.h$;;' # Need to set PCRE_HOME to make --with-pcre=/usr work PCRE_HOME=/usr ./configure ${configure_args} }