diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-04 05:48:38 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-04 05:48:38 -0500 |
| commit | bfd9c39e4712ebdb442d4ca0673061faed1e70e1 (patch) | |
| tree | 0d7a74b4463ee387f9cf9368ceb1b757f694f72a /dev-python/python-tlsh/files | |
| parent | f716a9fe6455d39eef01e718aae68dae61c19704 (diff) | |
| download | baldeagleos-repo-bfd9c39e4712ebdb442d4ca0673061faed1e70e1.tar.gz baldeagleos-repo-bfd9c39e4712ebdb442d4ca0673061faed1e70e1.tar.xz baldeagleos-repo-bfd9c39e4712ebdb442d4ca0673061faed1e70e1.zip | |
Revert "Adding metadata"
This reverts commit f716a9fe6455d39eef01e718aae68dae61c19704.
Diffstat (limited to 'dev-python/python-tlsh/files')
| -rw-r--r-- | dev-python/python-tlsh/files/python-tlsh-4.12.1-tlshmodule.patch | 11 | ||||
| -rw-r--r-- | dev-python/python-tlsh/files/python-tlsh-4.8.2-setup-sources.patch | 30 |
2 files changed, 41 insertions, 0 deletions
diff --git a/dev-python/python-tlsh/files/python-tlsh-4.12.1-tlshmodule.patch b/dev-python/python-tlsh/files/python-tlsh-4.12.1-tlshmodule.patch new file mode 100644 index 000000000000..3c134e0b5b7c --- /dev/null +++ b/dev-python/python-tlsh/files/python-tlsh-4.12.1-tlshmodule.patch @@ -0,0 +1,11 @@ +--- a/tlshmodule.cpp ++++ b/tlshmodule.cpp +@@ -59,7 +59,7 @@ + #include <Python.h> + #include <new> + #include <bytesobject.h> +-#include "tlsh.h" ++#include <tlsh/tlsh.h> + + // to generate the "T1" hashes introduced in TLSH 4.0.0 + // see 4.0.0 from 26/Mar/2020 at https://github.com/trendmicro/tlsh/blob/master/Change_History.md diff --git a/dev-python/python-tlsh/files/python-tlsh-4.8.2-setup-sources.patch b/dev-python/python-tlsh/files/python-tlsh-4.8.2-setup-sources.patch new file mode 100644 index 000000000000..4cdb0f864b5b --- /dev/null +++ b/dev-python/python-tlsh/files/python-tlsh-4.8.2-setup-sources.patch @@ -0,0 +1,30 @@ +--- a/setup.py ++++ b/setup.py +@@ -21,26 +21,7 @@ with open(join(realpath('..'), 'CMakeLists.txt'), 'r') as f: + if m: + tlsh_3b = '' + +-if os.name == 'nt': +- tlsh_module = Extension('tlsh', \ +- sources = ['tlshmodule.cpp', \ +- join(realpath('..'), 'src', 'tlsh.cpp'), \ +- join(realpath('..'), 'src', 'tlsh_impl.cpp'), \ +- join(realpath('..'), 'src', 'tlsh_util.cpp') \ +- ], \ +- include_dirs = [join(realpath('..'), 'include'), +- join(realpath('..'), 'Windows')],\ +- define_macros = [('WINDOWS', None),], \ +- ) +-else: +- tlsh_module = Extension('tlsh', \ +- sources = ['tlshmodule.cpp', \ +- join(realpath('..'), 'src', 'tlsh.cpp'), \ +- join(realpath('..'), 'src', 'tlsh_impl.cpp'), \ +- join(realpath('..'), 'src', 'tlsh_util.cpp') \ +- ], \ +- include_dirs = [join(realpath('..'), 'include')], +- ) ++tlsh_module = Extension('tlsh', sources=['tlshmodule.cpp'], libraries=['tlsh']) + + if tlsh_256 != '': + tlsh_module.extra_compile_args.append(tlsh_256) |
