Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/codec2/
Date: Mon, 31 Jan 2022 02:56:15
Message-Id: 1643597734.d8c782eac7b40793a8629c911345b54bfe1a7784.sam@gentoo
1 commit: d8c782eac7b40793a8629c911345b54bfe1a7784
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jan 31 02:55:34 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 31 02:55:34 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d8c782ea
7
8 media-libs/codec2: replace -Os with -O2
9
10 Fails to build with -Os and given previous issues we've had,
11 seems like this is the better option as a workaround for now.
12
13 Closes: https://bugs.gentoo.org/817437
14 Signed-off-by: Sam James <sam <AT> gentoo.org>
15
16 media-libs/codec2/codec2-1.0.3.ebuild | 5 ++++-
17 1 file changed, 4 insertions(+), 1 deletion(-)
18
19 diff --git a/media-libs/codec2/codec2-1.0.3.ebuild b/media-libs/codec2/codec2-1.0.3.ebuild
20 index 81ec485ac36b..3f50389d58e9 100644
21 --- a/media-libs/codec2/codec2-1.0.3.ebuild
22 +++ b/media-libs/codec2/codec2-1.0.3.ebuild
23 @@ -4,7 +4,7 @@
24 EAPI=8
25
26 CMAKE_ECLASS=cmake
27 -inherit cmake-multilib
28 +inherit cmake-multilib flag-o-matic
29
30 MY_PV="${PV%.*}${PV##*.}"
31 DESCRIPTION="Low bit rate speech codec"
32 @@ -25,6 +25,9 @@ RESTRICT="test"
33 #BDEPEND="test? ( sci-mathematics/octave )"
34
35 multilib_src_configure() {
36 + # bug #817437
37 + replace-flags -Os -O2
38 +
39 local mycmakeargs=(
40 -DUNITTEST=$(usex test)
41 -DINSTALL_EXAMPLES=$(usex examples)