1 |
commit: 7b62cbd27a588cff0eb0b200718f3f83d2679a3e |
2 |
Author: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon May 30 17:39:52 2022 +0000 |
4 |
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 30 17:40:18 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7b62cbd2 |
7 |
|
8 |
sys-power/upower: Add patch to build without dev-python/python-dbusmock |
9 |
|
10 |
Closes: https://bugs.gentoo.org/848525 |
11 |
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org> |
12 |
|
13 |
...18-meson-Allow-unittest-inspector-to-fail.patch | 31 ++++++++++++++++++++++ |
14 |
sys-power/upower/upower-0.99.18.ebuild | 4 +++ |
15 |
2 files changed, 35 insertions(+) |
16 |
|
17 |
diff --git a/sys-power/upower/files/0.99.18-meson-Allow-unittest-inspector-to-fail.patch b/sys-power/upower/files/0.99.18-meson-Allow-unittest-inspector-to-fail.patch |
18 |
new file mode 100644 |
19 |
index 000000000000..feafa87e9705 |
20 |
--- /dev/null |
21 |
+++ b/sys-power/upower/files/0.99.18-meson-Allow-unittest-inspector-to-fail.patch |
22 |
@@ -0,0 +1,31 @@ |
23 |
+Bug: https://bugs.gentoo.org/848525 |
24 |
+ |
25 |
+From aa646fa0ca3e164b09949c546796ec50433b748d Mon Sep 17 00:00:00 2001 |
26 |
+From: Benjamin Berg <bberg@××××××.com> |
27 |
+Date: Tue, 17 May 2022 16:02:49 +0200 |
28 |
+Subject: [PATCH] meson: Allow unittest inspector to fail |
29 |
+ |
30 |
+It is only used to make the test output nicer, and it is completely fine |
31 |
+to fail. |
32 |
+ |
33 |
+Closes: #187 |
34 |
+--- |
35 |
+ src/meson.build | 2 +- |
36 |
+ 1 file changed, 1 insertion(+), 1 deletion(-) |
37 |
+ |
38 |
+diff --git a/src/meson.build b/src/meson.build |
39 |
+index b49d5f0..2e1edd1 100644 |
40 |
+--- a/src/meson.build |
41 |
++++ b/src/meson.build |
42 |
+@@ -124,7 +124,7 @@ if os_backend == 'linux' and gobject_introspection.found() |
43 |
+ |
44 |
+ python3 = find_program('python3') |
45 |
+ unittest_inspector = find_program('linux/unittest_inspector.py') |
46 |
+- r = run_command(unittest_inspector, files('linux/integration-test.py'), check: true) |
47 |
++ r = run_command(unittest_inspector, files('linux/integration-test.py'), check: false) |
48 |
+ unit_tests = r.stdout().strip().split('\n') |
49 |
+ |
50 |
+ foreach ut: unit_tests |
51 |
+-- |
52 |
+2.35.1 |
53 |
+ |
54 |
|
55 |
diff --git a/sys-power/upower/upower-0.99.18.ebuild b/sys-power/upower/upower-0.99.18.ebuild |
56 |
index 8f405f8489e8..760dcd025ded 100644 |
57 |
--- a/sys-power/upower/upower-0.99.18.ebuild |
58 |
+++ b/sys-power/upower/upower-0.99.18.ebuild |
59 |
@@ -54,6 +54,10 @@ S="${WORKDIR}/${PN}-v${PV}" |
60 |
|
61 |
QA_MULTILIB_PATHS="usr/lib/${PN}/.*" |
62 |
|
63 |
+PATCHES=( |
64 |
+ "${FILESDIR}"/${PV}-meson-Allow-unittest-inspector-to-fail.patch |
65 |
+) |
66 |
+ |
67 |
python_check_deps() { |
68 |
python_has_version -b "dev-python/dbus-python[${PYTHON_USEDEP}]" && |
69 |
python_has_version -b "dev-python/python-dbusmock[${PYTHON_USEDEP}]" |