1 |
commit: 234f7d10f49f8f60a400d808cdbf1f28ebb3b7d7 |
2 |
Author: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Oct 1 18:59:21 2021 +0000 |
4 |
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Oct 1 19:41:12 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=234f7d10 |
7 |
|
8 |
dev-util/meson: fix testing with rust 1.55 |
9 |
|
10 |
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org> |
11 |
|
12 |
.../meson/files/meson-tests-rust-add-libm.patch | 22 ++++++++++++++++++++++ |
13 |
dev-util/meson/meson-0.59.1-r1.ebuild | 1 + |
14 |
2 files changed, 23 insertions(+) |
15 |
|
16 |
diff --git a/dev-util/meson/files/meson-tests-rust-add-libm.patch b/dev-util/meson/files/meson-tests-rust-add-libm.patch |
17 |
new file mode 100644 |
18 |
index 00000000000..45803976bb9 |
19 |
--- /dev/null |
20 |
+++ b/dev-util/meson/files/meson-tests-rust-add-libm.patch |
21 |
@@ -0,0 +1,22 @@ |
22 |
+From 7ad54cce49ce22b063e0cd56edb4b7f722dc5e8e Mon Sep 17 00:00:00 2001 |
23 |
+From: Dominique Leuenberger <dimstar@××××××××.org> |
24 |
+Date: Wed, 29 Sep 2021 14:20:53 +0200 |
25 |
+Subject: [PATCH] tests/rust: add libm to fix build with rust 1.55 |
26 |
+ |
27 |
+Fixes #9309 |
28 |
+--- |
29 |
+ test cases/rust/5 polyglot static/meson.build | 1 + |
30 |
+ 1 file changed, 1 insertion(+) |
31 |
+ |
32 |
+diff --git a/test cases/rust/5 polyglot static/meson.build b/test cases/rust/5 polyglot static/meson.build |
33 |
+index de2e61bcbc3..a6e9550b6e2 100644 |
34 |
+--- a/test cases/rust/5 polyglot static/meson.build |
35 |
++++ b/test cases/rust/5 polyglot static/meson.build |
36 |
+@@ -2,6 +2,7 @@ project('static rust and c polyglot executable', 'c', 'rust') |
37 |
+ |
38 |
+ deps = [ |
39 |
+ meson.get_compiler('c').find_library('dl', required: false), |
40 |
++ meson.get_compiler('c').find_library('m', required: false), |
41 |
+ dependency('threads'), |
42 |
+ ] |
43 |
+ |
44 |
|
45 |
diff --git a/dev-util/meson/meson-0.59.1-r1.ebuild b/dev-util/meson/meson-0.59.1-r1.ebuild |
46 |
index a7a64972a73..b11b19c5d08 100644 |
47 |
--- a/dev-util/meson/meson-0.59.1-r1.ebuild |
48 |
+++ b/dev-util/meson/meson-0.59.1-r1.ebuild |
49 |
@@ -35,6 +35,7 @@ DEPEND=" |
50 |
|
51 |
PATCHES=( |
52 |
"${FILESDIR}/meson-mcompile-treat-load-average-as-a-float.patch" |
53 |
+ "${FILESDIR}/meson-tests-rust-add-libm.patch" |
54 |
) |
55 |
|
56 |
python_prepare_all() { |