public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/x264/
Date: Wed, 22 Mar 2023 05:30:16 +0000 (UTC)	[thread overview]
Message-ID: <1679462979.082a815783a9b08df6ed4273310057df71b7bc52.sam@gentoo> (raw)

commit:     082a815783a9b08df6ed4273310057df71b7bc52
Author:     Matoro Mahri <matoro <AT> users <DOT> noreply <DOT> github <DOT> com>
AuthorDate: Wed Mar  8 17:25:11 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Mar 22 05:29:39 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=082a8157

media-libs/x264: add check for MSA instructions on mips

Implements the configure check from
https://github.com/mirror/x264/commit/ce0757d9d2778e349a7c2f6445b6aa75d8765c30,
which bails out if MSA instructions are not available per CFLAGS.

Bug: https://bugs.gentoo.org/897976
Signed-off-by: Matoro Mahri <matoro <AT> users.noreply.github.com>
Closes: https://github.com/gentoo/gentoo/pull/29996
Signed-off-by: Sam James <sam <AT> gentoo.org>

 media-libs/x264/x264-0.0.20220222.ebuild | 12 +++++++++---
 media-libs/x264/x264-9999.ebuild         | 12 +++++++++---
 2 files changed, 18 insertions(+), 6 deletions(-)

diff --git a/media-libs/x264/x264-0.0.20220222.ebuild b/media-libs/x264/x264-0.0.20220222.ebuild
index c8bcf46dda7b..954a0d3550ea 100644
--- a/media-libs/x264/x264-0.0.20220222.ebuild
+++ b/media-libs/x264/x264-0.0.20220222.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
 
-inherit multilib-minimal toolchain-funcs
+inherit multilib-minimal toolchain-funcs flag-o-matic
 
 DESCRIPTION="A free library for encoding X264/AVC streams"
 HOMEPAGE="https://www.videolan.org/developers/x264.html"
@@ -41,7 +41,13 @@ multilib_src_configure() {
 
 	local asm_conf=""
 
-	if [[ ${ABI} == x86* ]] && { use pic || use !cpu_flags_x86_sse ; } || [[ ${ABI} == "x32" ]] || [[ ${CHOST} == armv5* ]] || [[ ${ABI} == ppc* ]] && { use !cpu_flags_ppc_altivec ; }; then
+	if \
+		[[ ${ABI} == x86* ]] && { use pic || use !cpu_flags_x86_sse ; } \
+		|| [[ ${ABI} == "x32" ]] \
+		|| [[ ${CHOST} == armv5* ]] \
+		|| [[ ${ABI} == ppc* ]] && { use !cpu_flags_ppc_altivec ; } \
+		|| use mips && { ! test-compile 'c' 'int main(void){__asm__("addvi.b $w0, $w1, 1");return 0;}' ; }
+	then
 		asm_conf=" --disable-asm"
 	fi
 

diff --git a/media-libs/x264/x264-9999.ebuild b/media-libs/x264/x264-9999.ebuild
index aac24f183989..cef3a4d4053a 100644
--- a/media-libs/x264/x264-9999.ebuild
+++ b/media-libs/x264/x264-9999.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
 
-inherit multilib-minimal toolchain-funcs
+inherit multilib-minimal toolchain-funcs flag-o-matic
 
 DESCRIPTION="A free library for encoding X264/AVC streams"
 HOMEPAGE="https://www.videolan.org/developers/x264.html"
@@ -41,7 +41,13 @@ multilib_src_configure() {
 
 	local asm_conf=""
 
-	if [[ ${ABI} == x86* ]] && { use pic || use !cpu_flags_x86_sse ; } || [[ ${ABI} == "x32" ]] || [[ ${CHOST} == armv5* ]] || [[ ${ABI} == ppc* ]] && { use !cpu_flags_ppc_altivec ; }; then
+	if \
+		[[ ${ABI} == x86* ]] && { use pic || use !cpu_flags_x86_sse ; } \
+		|| [[ ${ABI} == "x32" ]] \
+		|| [[ ${CHOST} == armv5* ]] \
+		|| [[ ${ABI} == ppc* ]] && { use !cpu_flags_ppc_altivec ; } \
+		|| use mips && { ! test-compile 'c' 'int main(void){__asm__("addvi.b $w0, $w1, 1");return 0;}' ; }
+	then
 		asm_conf=" --disable-asm"
 	fi
 


             reply	other threads:[~2023-03-22  5:30 UTC|newest]

Thread overview: 82+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-22  5:30 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-08-25 18:03 [gentoo-commits] repo/gentoo:master commit in: media-libs/x264/ Sam James
2023-12-26 21:39 Sam James
2023-12-22  7:21 Arthur Zamarin
2023-12-22  7:21 Arthur Zamarin
2023-12-21 16:01 Arthur Zamarin
2023-12-21 12:56 Sam James
2023-12-21 12:56 Sam James
2023-12-21 11:55 Sam James
2023-12-21 11:55 Sam James
2023-12-21  9:57 Sam James
2023-11-25  6:47 Sam James
2022-11-12 17:48 Matt Turner
2022-11-12 16:09 Arthur Zamarin
2022-11-12 16:07 Arthur Zamarin
2022-11-12 16:06 Arthur Zamarin
2022-11-12 16:06 Arthur Zamarin
2022-09-05  3:56 Sam James
2022-09-03  5:27 Sam James
2022-03-10 12:45 Alexis Ballier
2022-03-10 12:45 Alexis Ballier
2021-08-10  0:02 Marek Szuba
2021-01-07 19:04 Sam James
2021-01-07 18:57 Sam James
2021-01-07 10:14 Sam James
2021-01-06 14:27 Fabian Groffen
2021-01-04 19:40 Sergei Trofimovich
2021-01-04  3:31 Sam James
2021-01-04  2:03 Sam James
2021-01-04  1:32 Sam James
2020-09-15  9:02 Alexis Ballier
2020-09-05 18:54 Mike Gilbert
2020-07-21 23:15 Kent Fredric
2020-06-16  6:33 Sergei Trofimovich
2020-06-10  4:52 Georgy Yakovlev
2019-12-29 19:34 Mike Gilbert
2019-09-29  2:56 Mike Gilbert
2019-09-04 14:46 Alexis Ballier
2019-07-28 11:24 Andreas Sturmlechner
2019-07-28 11:04 Mikle Kolyada
2019-07-02 13:12 Agostino Sarubbo
2019-07-02 10:33 Agostino Sarubbo
2019-07-02 10:12 Agostino Sarubbo
2019-07-02  8:28 Sergei Trofimovich
2019-07-02  8:24 Sergei Trofimovich
2019-07-02  8:19 Sergei Trofimovich
2019-07-01 19:23 Thomas Deutschmann
2019-05-05 19:05 Mike Gilbert
2019-02-15 12:36 Alexis Ballier
2019-01-17  2:47 Andreas Sturmlechner
2018-05-20 19:13 Andreas Sturmlechner
2018-04-19 20:31 Mikle Kolyada
2018-04-13 10:44 Alexis Ballier
2018-04-12 14:43 Sergei Trofimovich
2018-04-03  6:26 Sergei Trofimovich
2018-03-05 14:52 Tobias Klausmann
2018-02-26 14:25 Jason Zaman
2018-02-25 21:57 Sergei Trofimovich
2018-02-25 20:16 Thomas Deutschmann
2018-02-25 19:41 Andreas Sturmlechner
2018-02-24  8:55 Sergei Trofimovich
2017-12-27 16:08 Luca Barbato
2017-12-27 16:08 Luca Barbato
2017-12-17 15:16 Andrey Utkin
2017-12-09 18:41 Craig Andrews
2017-12-09 18:41 Craig Andrews
2017-11-26 23:06 David Seifert
2017-08-31 12:37 Tim Harder
2017-07-02 10:04 Alexis Ballier
2017-07-02 10:04 Alexis Ballier
2017-07-02 10:04 Alexis Ballier
2017-04-23 14:23 Alexis Ballier
2017-03-15 15:07 Michael Weber
2017-03-10  5:51 Markus Meier
2017-03-08 21:34 Markus Meier
2017-01-14 12:50 Jeroen Roovers
2016-12-06 12:21 Agostino Sarubbo
2016-12-06 12:21 Agostino Sarubbo
2016-12-06  9:04 Tobias Klausmann
2016-07-13 13:24 Alexis Ballier
2016-05-24 14:12 Alexis Ballier
2015-08-21 13:51 Alexis Ballier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1679462979.082a815783a9b08df6ed4273310057df71b7bc52.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox