From a1e9c360f4c4301b93c7632cb86686ff296944ed Mon Sep 17 00:00:00 2001 From: Roberto Oliveira <robertoguimaraes8@gmail.com> Date: Wed, 10 Jan 2018 00:03:48 +0000 Subject: [PATCH] testing/yara: keep using workaround in 3.7.0 version For more info see commit 8db25d5fa1aaafe794536ed073f8c6b938c8147f --- testing/yara/APKBUILD | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/testing/yara/APKBUILD b/testing/yara/APKBUILD index 54dbc3ed9795..b9e955bfb4d0 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 -- GitLab