mirror of
https://github.com/pentoo/pentoo-overlay
synced 2025-12-29 19:56:45 +01:00
yara-python: Fix undefined symbol: yr_finalize issue
Signed-off-by: Mike Auty <ikelos@gentoo.org>
This commit is contained in:
parent
8e9ac27ce2
commit
ae206b1f3d
2 changed files with 40 additions and 1 deletions
|
|
@ -1,3 +1,3 @@
|
|||
DIST yara-python-3.11.0.tar.gz 31830 BLAKE2B f00cbeabf9adf174e1b4fd95b665cc3cdf64e76b64dde64925fb4222a1eceaf36389162cf4fbbabbedfa852f06e220de99032210ae6d7e3dcb2a1c9220c81841 SHA512 0c8e6cbe51aa858c6d56b95c88bd450016924008b57b4910ed8edfb7bba4d7bfc18736844817978f74e72bed6765c484f275de4e7a53ec85048fb01713b6e959
|
||||
DIST yara-4.0.1.tar.gz 889069 BLAKE2B d56ba0c989f28c802b4474832f595360a246740a67aff8106a7ded8ce0c4636afac487d17b1e2470ee21741d95b71b78dbd7679e71bc1f84dbfc9d2f2c0d48ed SHA512 5d91b8df242299084916d9634e950359e7a9df26a7964ca2ca52cecf79a969d5aefd1c2dd89f5e762cf3a3c907cd616bd738b540f8600ad94522cbc3f1b031d3
|
||||
DIST yara-python-4.0.0.tar.gz 32201 BLAKE2B 31641d50285eba140fae372f411a9531374702c6a0f48986caff56b04d085bcd6d84a6cadd91f3a585c546132f2b538a656ef5c08ec0159ce4fb1b900cd5454a SHA512 9210793d305e34313494e3d867fc3a729814401208206a0f6f7fd2bfdcb6482a8e19e64788c35c149cd5a65cdc5357d8fa1e020fae6ac8c2704fa55e6c2cb989
|
||||
DIST yara-python-4.0.1.tar.gz 32251 BLAKE2B 465abf3fdb995c4366ffc1fbfbaec6122f1d916c8ac3c9e5381f31e7784d22b50c1afde6862ecc544799e082c8230e46038a5c58d0f7796d25c71d8d78db247c SHA512 8bd4ba51dbec38cb6b9c18b4d8b9325d5bfc413af1462682497398ab86ab67e4cd19355bdaacf1d075098e281ad0d5e9bf748eb5b7fbe404dcf0955cb688e2aa
|
||||
|
|
|
|||
39
dev-python/yara-python/yara-python-4.0.1-r1.ebuild
Normal file
39
dev-python/yara-python/yara-python-4.0.1-r1.ebuild
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{6,7,8} )
|
||||
|
||||
inherit distutils-r1 eutils
|
||||
|
||||
DESCRIPTION="Python interface for a malware identification and classification tool"
|
||||
HOMEPAGE="https://github.com/VirusTotal/yara-python"
|
||||
SRC_URI="https://github.com/virustotal/yara-python/archive/v${PV}.tar.gz -> ${P}.tar.gz
|
||||
https://github.com/virustotal/yara/archive/v${PV}.tar.gz -> yara-${PV}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
IUSE="test +dex"
|
||||
|
||||
RDEPEND="${PYTHON_DEPS}
|
||||
~app-forensics/yara-${PV}[dex?]"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
# Yara-python requires an unpacked copy of the yara source present in the yara subdirectory
|
||||
# otherwise it builds fine, but fails on import with "undefined symbol: yr_finalize"
|
||||
# See: https://github.com/VirusTotal/yara-python/issues/7
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
mv "${WORKDIR}/yara-${PV}/"* "${S}/yara/"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
compile_python() {
|
||||
${EPYTHON} setup.py build --dynamic-linking
|
||||
distutils-r1_python_compile
|
||||
}
|
||||
python_foreach_impl compile_python
|
||||
}
|
||||
Loading…
Reference in a new issue