[packages/yara] - rel 6; fix openssl 1.1.1 build

arekm arekm at pld-linux.org
Sat Sep 22 16:53:30 CEST 2018


commit 001f6b023321b771a9d3fbb15a22acfedb3b1ca9
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sat Sep 22 16:53:23 2018 +0200

    - rel 6; fix openssl 1.1.1 build

 openssl.patch | 11 +++++++++++
 yara.spec     |  4 +++-
 2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/yara.spec b/yara.spec
index b5df1d8..b70402d 100644
--- a/yara.spec
+++ b/yara.spec
@@ -10,12 +10,13 @@
 Summary:	The pattern matching swiss knife for malware researchers (and everyone else)
 Name:		yara
 Version:	3.4.0
-Release:	5
+Release:	6
 License:	Apache v2.0
 Group:		Libraries
 Source0:	https://github.com/plusvic/yara/archive/v%{version}/%{name}-%{version}.tar.gz
 # Source0-md5:	b3f9d4e00c1da4d37af05b1f4488255f
 Patch0:		cflags.patch
+Patch1:		openssl.patch
 URL:		http://plusvic.github.io/yara/
 BuildRequires:	autoconf
 BuildRequires:	automake
@@ -75,6 +76,7 @@ features from your own Python scripts.
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 %build
 %{__aclocal} -I m4
diff --git a/openssl.patch b/openssl.patch
new file mode 100644
index 0000000..2e7176d
--- /dev/null
+++ b/openssl.patch
@@ -0,0 +1,11 @@
+--- yara-3.4.0/libyara/modules/pe.c.org	2018-09-22 16:41:31.655766625 +0200
++++ yara-3.4.0/libyara/modules/pe.c	2018-09-22 16:50:38.629314185 +0200
+@@ -1155,7 +1155,7 @@ void pe_parse_certificates(
+           pe->object,
+           "signatures[%i].version", counter);
+ 
+-      const char* sig_alg = OBJ_nid2ln(OBJ_obj2nid(cert->sig_alg->algorithm));
++      const char* sig_alg = OBJ_nid2ln(X509_get_signature_nid(cert));
+ 
+       set_string(sig_alg, pe->object, "signatures[%i].algorithm", counter);
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/yara.git/commitdiff/001f6b023321b771a9d3fbb15a22acfedb3b1ca9



More information about the pld-cvs-commit mailing list