diff options
-rw-r--r-- | testing/yara/APKBUILD | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/testing/yara/APKBUILD b/testing/yara/APKBUILD index 54dbc3ed97..b9e955bfb4 100644 --- a/testing/yara/APKBUILD +++ b/testing/yara/APKBUILD @@ -2,7 +2,7 @@ pkgname=yara pkgver=3.7.0 -pkgrel=0 +pkgrel=1 pkgdesc="The pattern matching swiss knife for malware researchers" url="https://virustotal.github.io/yara/" arch="all !armhf" # armhf: tests fail @@ -12,6 +12,15 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/VirusTotal/$pkgname/archive/ subpackages="$pkgname-doc" builddir="$srcdir/$pkgname-$pkgver" +prepare() { + default_prepare + # Delete re_lexer.c to force it to be build with new version + # of flex, othwewise tests fail in some arches because of a bug + # in older version of flex. + # See: https://github.com/VirusTotal/yara/issues/771 + rm "$srcdir"/yara-3.6.3/libyara/re_lexer.c +} + build() { cd "$builddir" autoreconf -fiv |