From: "Haelwenn Monnier" <contact@hacktivis.me>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-python/yara-python/, dev-python/yara-python/files/
Date: Mon, 5 Jul 2021 15:48:10 +0000 (UTC) [thread overview]
Message-ID: <1625445798.4a5259196038d7dd221e7a927d9ebcf9c5310e6a.lanodan@gentoo> (raw)
commit: 4a5259196038d7dd221e7a927d9ebcf9c5310e6a
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Mon Jul 5 00:42:45 2021 +0000
Commit: Haelwenn Monnier <contact <AT> hacktivis <DOT> me>
CommitDate: Mon Jul 5 00:43:18 2021 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=4a525919
dev-python/yara-python: link to libyara.so
Closes: https://bugs.gentoo.org/800260
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
.../yara-python/files/yara-python-4.1.0-system-libyara.patch | 10 ++++++++++
dev-python/yara-python/yara-python-4.1.0.ebuild | 9 ++++++---
2 files changed, 16 insertions(+), 3 deletions(-)
diff --git a/dev-python/yara-python/files/yara-python-4.1.0-system-libyara.patch b/dev-python/yara-python/files/yara-python-4.1.0-system-libyara.patch
new file mode 100644
index 000000000..dd2740073
--- /dev/null
+++ b/dev-python/yara-python/files/yara-python-4.1.0-system-libyara.patch
@@ -0,0 +1,10 @@
+--- a/setup.py
++++ b/setup.py
+@@ -370,5 +370,6 @@
+ 'update': UpdateCommand},
+ ext_modules=[Extension(
+ name='yara',
+- include_dirs=['yara/libyara/include', 'yara/libyara/', '.'],
++ include_dirs=['/usr/include', 'yara/libyara/include', 'yara/libyara/', '.'],
++ libraries=['yara'],
+ sources=['yara-python.c'])])
diff --git a/dev-python/yara-python/yara-python-4.1.0.ebuild b/dev-python/yara-python/yara-python-4.1.0.ebuild
index 0f524d839..32a20b842 100644
--- a/dev-python/yara-python/yara-python-4.1.0.ebuild
+++ b/dev-python/yara-python/yara-python-4.1.0.ebuild
@@ -1,11 +1,12 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=7
+EAPI=8
-PYTHON_COMPAT=( python3_{8..10} pypy3 )
+#with pypy3 undefined symbol: PyDescr_NewGetSet
+PYTHON_COMPAT=( python3_{8..10} )
-inherit distutils-r1 eutils
+inherit distutils-r1
DESCRIPTION="Python interface for a malware identification and classification tool"
HOMEPAGE="https://github.com/VirusTotal/yara-python"
@@ -21,6 +22,8 @@ RDEPEND="
"
DEPEND="${RDEPEND}"
+PATCHES=( "${FILESDIR}/${P}-system-libyara.patch" )
+
distutils_enable_tests setup.py
compile_python() {
reply other threads:[~2021-07-05 15:48 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1625445798.4a5259196038d7dd221e7a927d9ebcf9c5310e6a.lanodan@gentoo \
--to=contact@hacktivis.me \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox