1 |
commit: 3c7c7194dcd4b12cfeed0aae4222974015a97e6e |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jan 31 03:18:06 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jan 31 03:19:02 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3c7c7194 |
7 |
|
8 |
dev-util/unicorn: fix Python dependencies (BDEPEND) |
9 |
|
10 |
I'm not sure there's anything distutils-r1.eclass can do for us here, so |
11 |
it is what it is, but we need to inline the deps from the eclass as we've |
12 |
set DISTUTILS_OPTIONAL to only do the Python parts w/ USE=python. |
13 |
|
14 |
Closes: https://bugs.gentoo.org/832337 |
15 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
16 |
|
17 |
dev-util/unicorn/unicorn-2.0.0_rc5.ebuild | 9 ++++++++- |
18 |
dev-util/unicorn/unicorn-9999.ebuild | 10 +++++++++- |
19 |
2 files changed, 17 insertions(+), 2 deletions(-) |
20 |
|
21 |
diff --git a/dev-util/unicorn/unicorn-2.0.0_rc5.ebuild b/dev-util/unicorn/unicorn-2.0.0_rc5.ebuild |
22 |
index 1a1090444ff1..8687e522b5a0 100644 |
23 |
--- a/dev-util/unicorn/unicorn-2.0.0_rc5.ebuild |
24 |
+++ b/dev-util/unicorn/unicorn-2.0.0_rc5.ebuild |
25 |
@@ -31,7 +31,14 @@ REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
26 |
DEPEND="${PYTHON_DEPS} |
27 |
dev-libs/glib:2" |
28 |
RDEPEND="python? ( ${PYTHON_DEPS} )" |
29 |
-BDEPEND="virtual/pkgconfig" |
30 |
+# See bug #832337 re Python deps |
31 |
+BDEPEND="virtual/pkgconfig |
32 |
+ python? ( |
33 |
+ >=dev-python/installer-0.4.0_p20220124[${PYTHON_USEDEP}] |
34 |
+ dev-python/tomli[${PYTHON_USEDEP}] |
35 |
+ >=dev-python/setuptools-60.5.0[${PYTHON_USEDEP}] |
36 |
+ dev-python/wheel[${PYTHON_USEDEP}] |
37 |
+ )" |
38 |
|
39 |
UNICORN_TARGETS="x86 arm aarch64 riscv mips sparc m68k ppc" |
40 |
|
41 |
|
42 |
diff --git a/dev-util/unicorn/unicorn-9999.ebuild b/dev-util/unicorn/unicorn-9999.ebuild |
43 |
index 0c2d81bebca9..8687e522b5a0 100644 |
44 |
--- a/dev-util/unicorn/unicorn-9999.ebuild |
45 |
+++ b/dev-util/unicorn/unicorn-9999.ebuild |
46 |
@@ -5,6 +5,7 @@ EAPI=8 |
47 |
|
48 |
MY_PV=${PV/_/-} |
49 |
|
50 |
+DISTUTILS_USE_PEP517=setuptools |
51 |
DISTUTILS_OPTIONAL=1 |
52 |
PYTHON_COMPAT=( python3_{9..10} ) |
53 |
inherit cmake distutils-r1 |
54 |
@@ -30,7 +31,14 @@ REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
55 |
DEPEND="${PYTHON_DEPS} |
56 |
dev-libs/glib:2" |
57 |
RDEPEND="python? ( ${PYTHON_DEPS} )" |
58 |
-BDEPEND="virtual/pkgconfig" |
59 |
+# See bug #832337 re Python deps |
60 |
+BDEPEND="virtual/pkgconfig |
61 |
+ python? ( |
62 |
+ >=dev-python/installer-0.4.0_p20220124[${PYTHON_USEDEP}] |
63 |
+ dev-python/tomli[${PYTHON_USEDEP}] |
64 |
+ >=dev-python/setuptools-60.5.0[${PYTHON_USEDEP}] |
65 |
+ dev-python/wheel[${PYTHON_USEDEP}] |
66 |
+ )" |
67 |
|
68 |
UNICORN_TARGETS="x86 arm aarch64 riscv mips sparc m68k ppc" |