From df00abe9c53da3dcfabd6533b0e498d98b7aeac4 Mon Sep 17 00:00:00 2001 From: Jan Pavlinec Date: Tue, 9 Apr 2019 14:21:36 +0200 Subject: [PATCH] yara: update to version 3.9.0 Changes: Remove merged patch for OpenSSL THREADID Add PKG_CPE_ID Signed-off-by: Jan Pavlinec --- utils/yara/Makefile | 7 +-- ...ara-Switch-to-OpenSSL-s-THREADID-API.patch | 47 ------------------- 2 files changed, 4 insertions(+), 50 deletions(-) delete mode 100644 utils/yara/patches/010-libyara-Switch-to-OpenSSL-s-THREADID-API.patch diff --git a/utils/yara/Makefile b/utils/yara/Makefile index e3f8727f6..81b93e65f 100644 --- a/utils/yara/Makefile +++ b/utils/yara/Makefile @@ -8,14 +8,15 @@ include $(TOPDIR)/rules.mk PKG_NAME:=yara -PKG_VERSION:=3.8.1 -PKG_RELEASE:=2 +PKG_VERSION:=3.9.0 +PKG_RELEASE:=1 PKG_LICENSE:=BSD-3-Clause PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://codeload.github.com/VirusTotal/yara/tar.gz/v$(PKG_VERSION)? -PKG_HASH:=283527711269354d3c60e2705f7f74b1f769d2d35ddba8f7f9ce97d0fd5cb1ca +PKG_HASH:=ebe7fab0abadb90449a62afbd24e196e18b177efe71ffd8bf22df95c5386f64d +PKG_CPE_ID:=cpe:/a:virustotal:yara PKG_FIXUP:=autoreconf PKG_BUILD_PARALLEL:=1 PKG_INSTALL:=1 diff --git a/utils/yara/patches/010-libyara-Switch-to-OpenSSL-s-THREADID-API.patch b/utils/yara/patches/010-libyara-Switch-to-OpenSSL-s-THREADID-API.patch deleted file mode 100644 index 3db191e6c..000000000 --- a/utils/yara/patches/010-libyara-Switch-to-OpenSSL-s-THREADID-API.patch +++ /dev/null @@ -1,47 +0,0 @@ -From cd73c968e896b8ba364510abdcd3dcc63d017110 Mon Sep 17 00:00:00 2001 -From: Rosen Penev -Date: Thu, 8 Nov 2018 14:57:49 -0800 -Subject: [PATCH] libyara: Switch to OpenSSL's THREADID API - -The non THREADID API was deprecated back in OpenSSL 1.0.0 ---- - libyara/libyara.c | 8 ++++---- - 1 file changed, 4 insertions(+), 4 deletions(-) - -diff --git a/libyara/libyara.c b/libyara/libyara.c -index f05d1f9..6f20488 100644 ---- a/libyara/libyara.c -+++ b/libyara/libyara.c -@@ -87,9 +87,9 @@ char yr_altercase[256]; - static YR_MUTEX *openssl_locks; - - --static unsigned long _thread_id(void) -+static void _thread_id(CRYPTO_THREADID *id) - { -- return (unsigned long) yr_current_thread_id(); -+ CRYPTO_THREADID_set_numeric(id, (unsigned long) yr_current_thread_id()); - } - - -@@ -155,7 +155,7 @@ YR_API int yr_initialize(void) - for (i = 0; i < CRYPTO_num_locks(); i++) - yr_mutex_create(&openssl_locks[i]); - -- CRYPTO_set_id_callback(_thread_id); -+ CRYPTO_THREADID_set_callback(_thread_id); - CRYPTO_set_locking_callback(_locking_function); - - #elif defined(HAVE_WINCRYPT_H) -@@ -226,7 +226,7 @@ YR_API int yr_finalize(void) - yr_mutex_destroy(&openssl_locks[i]); - - OPENSSL_free(openssl_locks); -- CRYPTO_set_id_callback(NULL); -+ CRYPTO_THREADID_set_callback(NULL); - CRYPTO_set_locking_callback(NULL); - - #elif defined(HAVE_WINCRYPT_H) --- -2.19.1 -