Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/opus/
Date: Fri, 28 May 2021 15:37:36
Message-Id: 1622216224.93253755df3984a0154319e605ef43c938124dfe.soap@gentoo
1 commit: 93253755df3984a0154319e605ef43c938124dfe
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Fri May 28 15:37:04 2021 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Fri May 28 15:37:04 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=93253755
7
8 media-libs/opus: disable intrinsics automagic
9
10 Thanks-to: David Michael <fedora.dm0 <AT> gmail.com>
11 Closes: https://bugs.gentoo.org/752069
12 Signed-off-by: Sam James <sam <AT> gentoo.org>
13 Signed-off-by: David Seifert <soap <AT> gentoo.org>
14
15 media-libs/opus/opus-1.3.1-r1.ebuild | 4 +++-
16 .../opus/{opus-1.3.1-r1.ebuild => opus-1.3.1-r2.ebuild} | 16 +++++++++++-----
17 2 files changed, 14 insertions(+), 6 deletions(-)
18
19 diff --git a/media-libs/opus/opus-1.3.1-r1.ebuild b/media-libs/opus/opus-1.3.1-r1.ebuild
20 index 257b3a7fb6f..4386d0bab3a 100644
21 --- a/media-libs/opus/opus-1.3.1-r1.ebuild
22 +++ b/media-libs/opus/opus-1.3.1-r1.ebuild
23 @@ -1,4 +1,4 @@
24 -# Copyright 1999-2020 Gentoo Authors
25 +# Copyright 1999-2021 Gentoo Authors
26 # Distributed under the terms of the GNU General Public License v2
27
28 EAPI=7
29 @@ -26,9 +26,11 @@ multilib_src_configure() {
30 $(use_enable doc)
31 $(use_enable static-libs static)
32 )
33 +
34 for i in ${INTRINSIC_FLAGS} ; do
35 use ${i} && myeconfargs+=( --enable-intrinsics )
36 done
37 +
38 if is-flagq -ffast-math || is-flagq -Ofast; then
39 myeconfargs+=( "--enable-float-approx" )
40 fi
41
42 diff --git a/media-libs/opus/opus-1.3.1-r1.ebuild b/media-libs/opus/opus-1.3.1-r2.ebuild
43 similarity index 68%
44 copy from media-libs/opus/opus-1.3.1-r1.ebuild
45 copy to media-libs/opus/opus-1.3.1-r2.ebuild
46 index 257b3a7fb6f..08cffd6f0a3 100644
47 --- a/media-libs/opus/opus-1.3.1-r1.ebuild
48 +++ b/media-libs/opus/opus-1.3.1-r2.ebuild
49 @@ -1,4 +1,4 @@
50 -# Copyright 1999-2020 Gentoo Authors
51 +# Copyright 1999-2021 Gentoo Authors
52 # Distributed under the terms of the GNU General Public License v2
53
54 EAPI=7
55 @@ -11,7 +11,7 @@ SRC_URI="https://archive.mozilla.org/pub/opus/${P}.tar.gz"
56
57 LICENSE="BSD"
58 SLOT="0"
59 -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 sparc x86"
60 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
61 INTRINSIC_FLAGS="cpu_flags_x86_sse cpu_flags_arm_neon"
62 IUSE="custom-modes doc static-libs ${INTRINSIC_FLAGS}"
63
64 @@ -26,9 +26,15 @@ multilib_src_configure() {
65 $(use_enable doc)
66 $(use_enable static-libs static)
67 )
68 - for i in ${INTRINSIC_FLAGS} ; do
69 - use ${i} && myeconfargs+=( --enable-intrinsics )
70 - done
71 +
72 + local i
73 + # We want to disable intrinsics if no flags are enabled
74 + # (This is a fun Bash construct to do that!)
75 + # bug #752069
76 + for i in "${INTRINSIC_FLAGS}" ; do
77 + use ${i} && myeconfargs+=( --enable-intrinsics ) && break
78 + done || myeconfargs+=( --disable-intrinsics )
79 +
80 if is-flagq -ffast-math || is-flagq -Ofast; then
81 myeconfargs+=( "--enable-float-approx" )
82 fi