From 7ac2440bd5c1b8bddfe389cf46138f277e256698 Mon Sep 17 00:00:00 2001 From: Andrew Benson Date: Fri, 22 Oct 2021 07:48:01 -0500 Subject: [PATCH] peframe: fix for py3.10 --- srcpkgs/peframe/patches/fix-for-py3.10.patch | 11 +++++++++++ srcpkgs/peframe/template | 4 ++-- 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 srcpkgs/peframe/patches/fix-for-py3.10.patch diff --git a/srcpkgs/peframe/patches/fix-for-py3.10.patch b/srcpkgs/peframe/patches/fix-for-py3.10.patch new file mode 100644 index 00000000000..4c74d8ec8ec --- /dev/null +++ b/srcpkgs/peframe/patches/fix-for-py3.10.patch @@ -0,0 +1,11 @@ +--- a/peframe/modules/features.py ++++ b/peframe/modules/features.py +@@ -18,7 +18,7 @@ + delta[x - key_len] ^= delta[x] + + """ return the delta as a string """ +- return delta.tostring()[:-key_len] ++ return delta.tobytes()[:-key_len] + + def get_xor(filename, search_string=False): + xorsearch_custom = False diff --git a/srcpkgs/peframe/template b/srcpkgs/peframe/template index 61123e4a099..8e39757fa5e 100644 --- a/srcpkgs/peframe/template +++ b/srcpkgs/peframe/template @@ -1,9 +1,8 @@ # Template file for 'peframe' pkgname=peframe version=6.0.3 -revision=4 +revision=5 build_style="python3-module" -pycompile_module="peframe" hostmakedepends="python3-setuptools" depends="python3-pefile python3-magic python3-M2Crypto python3-virustotal-api python3-yara python3-oletools" @@ -13,3 +12,4 @@ license="GPL-2.0-only" homepage="https://github.com/guelfoweb/peframe" distfiles="https://github.com/guelfoweb/peframe/archive/${version}.tar.gz" checksum=75a4c75755b02a6500e9dd651ccd3e8737a7f90dffe113879e3fd2fc0582742d +make_check=no # does not include tests