From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 5C791158086 for ; Thu, 30 Dec 2021 14:44:14 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8F36A2BC014; Thu, 30 Dec 2021 14:44:13 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 208C62BC014 for ; Thu, 30 Dec 2021 14:44:13 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 967213430EF for ; Thu, 30 Dec 2021 14:44:11 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1BEEA1C6 for ; Thu, 30 Dec 2021 14:44:10 +0000 (UTC) From: "Georgy Yakovlev" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Georgy Yakovlev" Message-ID: <1640875401.8b4c946f772a68959ba2294607f0e8280ab7f18a.gyakovlev@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/libvpx/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-libs/libvpx/libvpx-1.11.0.ebuild X-VCS-Directories: media-libs/libvpx/ X-VCS-Committer: gyakovlev X-VCS-Committer-Name: Georgy Yakovlev X-VCS-Revision: 8b4c946f772a68959ba2294607f0e8280ab7f18a X-VCS-Branch: master Date: Thu, 30 Dec 2021 14:44:10 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 5b1f02a0-9361-4cb1-adf5-f3e61d2b0063 X-Archives-Hash: 69b4daea16126febee5c34deb2e7cf30 commit: 8b4c946f772a68959ba2294607f0e8280ab7f18a Author: Georgy Yakovlev gentoo org> AuthorDate: Thu Dec 30 14:21:06 2021 +0000 Commit: Georgy Yakovlev gentoo org> CommitDate: Thu Dec 30 14:43:21 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8b4c946f media-libs/libvpx: build ppc64le-linux-gcc target on power9 cpu it may build on power7 and power8 with vsx codepaths, but will fail testsuite and at runtime. So only enable vsx codepaths on power9 CPUs, it's the only one that makes sense anyway. testsuite passes with flying colors, same as generic-gnu target. [==========] 952 tests from 48 test suites ran. NOTE: previous versions also built ppc64le-linux-gcc target via auto-detection. so not much changes, we just make it explicit. Signed-off-by: Georgy Yakovlev gentoo.org> media-libs/libvpx/libvpx-1.11.0.ebuild | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/media-libs/libvpx/libvpx-1.11.0.ebuild b/media-libs/libvpx/libvpx-1.11.0.ebuild index 7d495a5048b8..186980591136 100644 --- a/media-libs/libvpx/libvpx-1.11.0.ebuild +++ b/media-libs/libvpx/libvpx-1.11.0.ebuild @@ -22,7 +22,7 @@ SRC_URI="https://github.com/webmproject/${PN}/archive/v${PV}.tar.gz -> ${P}.tar. LICENSE="BSD" SLOT="0/7" KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" -IUSE="doc +highbitdepth postproc static-libs test +threads" +IUSE="cpu_flags_ppc_vsx3 doc +highbitdepth postproc static-libs test +threads" REQUIRED_USE="test? ( threads )" @@ -94,6 +94,9 @@ multilib_src_configure() { myconfargs+=( --force-target=arm64-linux-gcc ) elif [[ ${ABI} == arm ]] && [[ ${CHOST} == *armv7* ]] ; then myconfargs+=( --force-target=armv7-linux-gcc ) + elif [[ ${ABI} == ppc64 ]] && [[ $(tc-endian) != big ]] && use cpu_flags_ppc_vsx3; then + # only enable this target for at least power9 CPU running little-endian + myconfargs+=( --force-target=ppc64le-linux-gcc ) else myconfargs+=( --force-target=generic-gnu ) fi