From 1218428f09a6b660b5c07a21adbf8fe62c7ed611 Mon Sep 17 00:00:00 2001 From: "Andrew J. Hesford" Date: Sat, 23 Sep 2023 21:02:32 -0400 Subject: [PATCH] tlsh: update to 4.8.2. --- srcpkgs/tlsh/patches/musl.patch | 11 +++++++++++ srcpkgs/tlsh/template | 6 +++--- 2 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 srcpkgs/tlsh/patches/musl.patch diff --git a/srcpkgs/tlsh/patches/musl.patch b/srcpkgs/tlsh/patches/musl.patch new file mode 100644 index 00000000000..e9b9a0da908 --- /dev/null +++ b/srcpkgs/tlsh/patches/musl.patch @@ -0,0 +1,11 @@ +--- ./py_ext/tlshmodule.cpp.orig 2023-09-30 08:54:24.204721322 -0400 ++++ ./py_ext/tlshmodule.cpp 2023-09-30 08:54:29.452762079 -0400 +@@ -286,7 +286,7 @@ + }; + + static PyTypeObject tlsh_TlshType = { +- PyObject_HEAD_INIT(NULL) ++ PyObject_HEAD_INIT(0) + #if PY_MAJOR_VERSION < 3 + 0, /* ob_size */ + #endif diff --git a/srcpkgs/tlsh/template b/srcpkgs/tlsh/template index c9c01914133..93aa04df486 100644 --- a/srcpkgs/tlsh/template +++ b/srcpkgs/tlsh/template @@ -1,7 +1,7 @@ # Template file for 'tlsh' pkgname=tlsh -version=3.19.1 -revision=6 +version=4.8.2 +revision=1 build_style=cmake build_helper=python3 hostmakedepends="python3-setuptools" @@ -11,7 +11,7 @@ maintainer="Piotr Wójcik " license="Apache-2.0, BSD-3-Clause" homepage="https://github.com/trendmicro/tlsh" distfiles="https://github.com/trendmicro/tlsh/archive/${version}.tar.gz" -checksum=a8a7972d8bafb5fd66bd597b72037356dd9882e71a7e9b5f37281751a99ce686 +checksum=0528294fbb1fe3659db564dd0b7b1b27fc41280a8408e4f7abf7e8b27f7b1ac6 pre_configure() { vsed -i src/CMakeLists.txt -e 's/set(TLSH_SHARED_LIBRARY 0)/set(TLSH_SHARED_LIBRARY 1)/'