Gentoo Archives: gentoo-commits

From: Georgy Yakovlev <gyakovlev@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/libvpx/
Date: Thu, 30 Dec 2021 14:44:14
Message-Id: 1640875401.8b4c946f772a68959ba2294607f0e8280ab7f18a.gyakovlev@gentoo
1 commit: 8b4c946f772a68959ba2294607f0e8280ab7f18a
2 Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
3 AuthorDate: Thu Dec 30 14:21:06 2021 +0000
4 Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
5 CommitDate: Thu Dec 30 14:43:21 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8b4c946f
7
8 media-libs/libvpx: build ppc64le-linux-gcc target on power9 cpu
9
10 it may build on power7 and power8 with vsx codepaths, but will
11 fail testsuite and at runtime.
12
13 So only enable vsx codepaths on power9 CPUs, it's the only one that
14 makes sense anyway.
15
16 testsuite passes with flying colors, same as generic-gnu target.
17 [==========] 952 tests from 48 test suites ran.
18
19 NOTE: previous versions also built ppc64le-linux-gcc target via
20 auto-detection. so not much changes, we just make it explicit.
21
22 Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>
23
24 media-libs/libvpx/libvpx-1.11.0.ebuild | 5 ++++-
25 1 file changed, 4 insertions(+), 1 deletion(-)
26
27 diff --git a/media-libs/libvpx/libvpx-1.11.0.ebuild b/media-libs/libvpx/libvpx-1.11.0.ebuild
28 index 7d495a5048b8..186980591136 100644
29 --- a/media-libs/libvpx/libvpx-1.11.0.ebuild
30 +++ b/media-libs/libvpx/libvpx-1.11.0.ebuild
31 @@ -22,7 +22,7 @@ SRC_URI="https://github.com/webmproject/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.
32 LICENSE="BSD"
33 SLOT="0/7"
34 KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
35 -IUSE="doc +highbitdepth postproc static-libs test +threads"
36 +IUSE="cpu_flags_ppc_vsx3 doc +highbitdepth postproc static-libs test +threads"
37
38 REQUIRED_USE="test? ( threads )"
39
40 @@ -94,6 +94,9 @@ multilib_src_configure() {
41 myconfargs+=( --force-target=arm64-linux-gcc )
42 elif [[ ${ABI} == arm ]] && [[ ${CHOST} == *armv7* ]] ; then
43 myconfargs+=( --force-target=armv7-linux-gcc )
44 + elif [[ ${ABI} == ppc64 ]] && [[ $(tc-endian) != big ]] && use cpu_flags_ppc_vsx3; then
45 + # only enable this target for at least power9 CPU running little-endian
46 + myconfargs+=( --force-target=ppc64le-linux-gcc )
47 else
48 myconfargs+=( --force-target=generic-gnu )
49 fi