clamav: unbreak musl
This commit is contained in:
parent
da1a689b70
commit
f74db5cf4a
2 changed files with 19 additions and 1 deletions
11
srcpkgs/clamav/patches/musl-sys_inotify_h.patch
Normal file
11
srcpkgs/clamav/patches/musl-sys_inotify_h.patch
Normal file
|
@ -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 <sys/inotify.h>
|
||||||
|
+
|
||||||
|
#define ONAS_IN 0x01
|
||||||
|
#define ONAS_FAN 0x02
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'clamav'
|
# Template file for 'clamav'
|
||||||
pkgname=clamav
|
pkgname=clamav
|
||||||
version=0.99.0
|
version=0.99.0
|
||||||
revision=1
|
revision=2
|
||||||
wrksrc=${pkgname}-${version%.*}
|
wrksrc=${pkgname}-${version%.*}
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--sbindir=/usr/bin --with-pcre=/usr"
|
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+=" --with-zlib=${XBPS_CROSS_BASE}/usr"
|
||||||
configure_args+=" --disable-mempool"
|
configure_args+=" --disable-mempool"
|
||||||
fi
|
fi
|
||||||
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
|
*-musl) makedepends+=" musl-fts"
|
||||||
|
LDFLAGS="-lfts"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
do_configure() {
|
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
|
# Need to set PCRE_HOME to make --with-pcre=/usr work
|
||||||
PCRE_HOME=/usr ./configure ${configure_args}
|
PCRE_HOME=/usr ./configure ${configure_args}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue