commit:     6e7b4263ae96eb79862bbd9e9ad7820e0dce827c
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Tue Jun  1 12:01:46 2021 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Tue Jun  1 23:37:55 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6e7b4263

dev-libs/trio: fix build with -Os

Closes: https://bugs.gentoo.org/792075
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 dev-libs/trio/files/trio-1.16-no-inline.patch | 8 ++++++++
 dev-libs/trio/trio-1.16.ebuild                | 3 +++
 2 files changed, 11 insertions(+)

diff --git a/dev-libs/trio/files/trio-1.16-no-inline.patch 
b/dev-libs/trio/files/trio-1.16-no-inline.patch
new file mode 100644
index 00000000000..b1584344a11
--- /dev/null
+++ b/dev-libs/trio/files/trio-1.16-no-inline.patch
@@ -0,0 +1,8 @@
+Let compiler decide what to inline (fixes build with -Os).
+https://bugs.gentoo.org/792075
+--- a/triodef.h
++++ b/triodef.h
+@@ -315,2 +315,3 @@
+ #endif
++#undef TRIO_INLINE
+ #if !defined(TRIO_INLINE)

diff --git a/dev-libs/trio/trio-1.16.ebuild b/dev-libs/trio/trio-1.16.ebuild
index 1980624be41..bf7d164f5ba 100644
--- a/dev-libs/trio/trio-1.16.ebuild
+++ b/dev-libs/trio/trio-1.16.ebuild
@@ -13,6 +13,9 @@ LICENSE="trio"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
 
+PATCHES=(
+       "${FILESDIR}"/${P}-no-inline.patch
+)
 HTML_DOCS=( html/. )
 
 src_prepare() {

Reply via email to