1 |
commit: 6e7b4263ae96eb79862bbd9e9ad7820e0dce827c |
2 |
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jun 1 12:01:46 2021 +0000 |
4 |
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jun 1 23:37:55 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6e7b4263 |
7 |
|
8 |
dev-libs/trio: fix build with -Os |
9 |
|
10 |
Closes: https://bugs.gentoo.org/792075 |
11 |
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> |
12 |
|
13 |
dev-libs/trio/files/trio-1.16-no-inline.patch | 8 ++++++++ |
14 |
dev-libs/trio/trio-1.16.ebuild | 3 +++ |
15 |
2 files changed, 11 insertions(+) |
16 |
|
17 |
diff --git a/dev-libs/trio/files/trio-1.16-no-inline.patch b/dev-libs/trio/files/trio-1.16-no-inline.patch |
18 |
new file mode 100644 |
19 |
index 00000000000..b1584344a11 |
20 |
--- /dev/null |
21 |
+++ b/dev-libs/trio/files/trio-1.16-no-inline.patch |
22 |
@@ -0,0 +1,8 @@ |
23 |
+Let compiler decide what to inline (fixes build with -Os). |
24 |
+https://bugs.gentoo.org/792075 |
25 |
+--- a/triodef.h |
26 |
++++ b/triodef.h |
27 |
+@@ -315,2 +315,3 @@ |
28 |
+ #endif |
29 |
++#undef TRIO_INLINE |
30 |
+ #if !defined(TRIO_INLINE) |
31 |
|
32 |
diff --git a/dev-libs/trio/trio-1.16.ebuild b/dev-libs/trio/trio-1.16.ebuild |
33 |
index 1980624be41..bf7d164f5ba 100644 |
34 |
--- a/dev-libs/trio/trio-1.16.ebuild |
35 |
+++ b/dev-libs/trio/trio-1.16.ebuild |
36 |
@@ -13,6 +13,9 @@ LICENSE="trio" |
37 |
SLOT="0" |
38 |
KEYWORDS="~amd64 ~x86" |
39 |
|
40 |
+PATCHES=( |
41 |
+ "${FILESDIR}"/${P}-no-inline.patch |
42 |
+) |
43 |
HTML_DOCS=( html/. ) |
44 |
|
45 |
src_prepare() { |