1 |
commit: 444110f1ded243ffe62e98f2fbc23b2423443708 |
2 |
Author: William Hubbs <williamh <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Mar 2 23:04:02 2019 +0000 |
4 |
Commit: William Hubbs <williamh <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Mar 2 23:06:16 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=444110f1 |
7 |
|
8 |
dev-util/meson: fix qt tests |
9 |
|
10 |
Upstream only supports the qt tests if both qtcore and qtgui are |
11 |
installed, so if only qtcore is installed, skip the tests. |
12 |
|
13 |
Closes: https://bugs.gentoo.org/678664 |
14 |
Package-Manager: Portage-2.3.62, Repoman-2.3.12 |
15 |
Signed-off-by: William Hubbs <williamh <AT> gentoo.org> |
16 |
|
17 |
dev-util/meson/meson-0.49.2.ebuild | 11 +++++------ |
18 |
1 file changed, 5 insertions(+), 6 deletions(-) |
19 |
|
20 |
diff --git a/dev-util/meson/meson-0.49.2.ebuild b/dev-util/meson/meson-0.49.2.ebuild |
21 |
index 6149ebc1ee5..31d9ff7f79e 100644 |
22 |
--- a/dev-util/meson/meson-0.49.2.ebuild |
23 |
+++ b/dev-util/meson/meson-0.49.2.ebuild |
24 |
@@ -42,12 +42,11 @@ python_prepare_all() { |
25 |
} |
26 |
|
27 |
src_test() { |
28 |
- if tc-is-gcc; then |
29 |
- # LTO fails for static libs because the bfd plugin in missing. |
30 |
- # Remove this workaround after sys-devel/gcc-config-2.0 is stable. |
31 |
- # https://bugs.gentoo.org/672706 |
32 |
- tc-getPROG AR gcc-ar >/dev/null |
33 |
- fi |
34 |
+ # This is needed because upstream doesn't support installing qtcore |
35 |
+ # without qtgui in the test suite. |
36 |
+ # https://bugs.gentoo.org/show_bug.cgi?id=678664 |
37 |
+ has_version 'dev-qt/qtcore' && ! has_version 'dev-qt/qtgui' && |
38 |
+ rm -rf "test cases/frameworks/4 qt" |
39 |
distutils-r1_src_test |
40 |
} |