public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Mart Raudsepp" <leio@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/gst-plugins-base/
Date: Sat, 27 Jan 2018 03:30:31 +0000 (UTC)	[thread overview]
Message-ID: <1517023760.ba018ae41ad2ef5b0bc78ad9a93d1dc982522be0.leio@gentoo> (raw)

commit:     ba018ae41ad2ef5b0bc78ad9a93d1dc982522be0
Author:     Mart Raudsepp <leio <AT> gentoo <DOT> org>
AuthorDate: Fri Jan 26 23:33:35 2018 +0000
Commit:     Mart Raudsepp <leio <AT> gentoo <DOT> org>
CommitDate: Sat Jan 27 03:29:20 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ba018ae4

media-libs/gst-plugins-base: filter out -mno-sse* flags that break introspection build

People who copy-paste the whole -march=native meaning out in full detail from the
various commands that give the equivalent face issues with the build here, because
the build system adds -msse4.1 and other flags explicitly itself to build runtime
tested SSE accelerated code, which doesn't get used if the runtime CPU doesn't
support them. Because of CFLAGS ordering of -mno-sse4.1 from make.conf and -msse4.1
from gst-plugins-base configure, and apparently slightly different flags used for
introspection generation, this ends up with introspection build thinking the SSE
specific symbols are there, while they actually aren't.

People who do this copy-pasting, really shouldn't be copying it all over verbatim,
especially the -mno-* flags, which are redundant in the usual situation (the
specific -march= probably doesn't enable them, so no need to -mno them), but causes
issues for such specific runtime checked optimizations.
Because we have a concrete list of instruction set flags in configure.ac that we'd
hit the issue with when the opposite -mno is present in CFLAGS, be nice to these
users by explicitly filtering out these redundant flags.
I think there's still something to fix in an upstream patch instead (the different
flags between library and introspection build?) , hence leaving the bug open for
the time being still.

Bug: https://bugs.gentoo.org/610340
Package-Manager: Portage-2.3.19, Repoman-2.3.6

 media-libs/gst-plugins-base/gst-plugins-base-1.12.4.ebuild | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/media-libs/gst-plugins-base/gst-plugins-base-1.12.4.ebuild b/media-libs/gst-plugins-base/gst-plugins-base-1.12.4.ebuild
index 56e9e237fd9..15e6288957d 100644
--- a/media-libs/gst-plugins-base/gst-plugins-base-1.12.4.ebuild
+++ b/media-libs/gst-plugins-base/gst-plugins-base-1.12.4.ebuild
@@ -4,7 +4,7 @@
 EAPI=6
 GST_ORG_MODULE="gst-plugins-base"
 
-inherit ltprune gstreamer
+inherit flag-o-matic ltprune gstreamer
 
 DESCRIPTION="Basepack of plugins for gstreamer"
 HOMEPAGE="https://gstreamer.freedesktop.org/"
@@ -47,6 +47,8 @@ DEPEND="${RDEPEND}
 RDEPEND+="!<media-libs/gst-plugins-bad-1.11.90:1.0" # rawparse move
 
 multilib_src_configure() {
+	filter-flags -mno-sse -mno-sse2 -mno-sse4.1 #610340
+
 	gstreamer_multilib_src_configure \
 		$(use_enable alsa) \
 		$(multilib_native_use_enable introspection) \


             reply	other threads:[~2018-01-27  3:30 UTC|newest]

Thread overview: 68+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-27  3:30 Mart Raudsepp [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-05-23 17:27 [gentoo-commits] repo/gentoo:master commit in: media-libs/gst-plugins-base/ Matt Turner
2024-04-30  8:28 Mart Raudsepp
2024-04-03 20:04 Mart Raudsepp
2023-10-13  7:33 Mart Raudsepp
2022-12-11 17:36 Mart Raudsepp
2022-11-20 18:34 Mart Raudsepp
2022-06-07 21:39 Sam James
2022-05-12 22:42 Sam James
2021-10-31  0:19 Sam James
2021-08-12 22:53 Robin H. Johnson
2021-05-25 14:21 Yixun Lan
2021-02-17 13:53 Sam James
2021-01-10 20:22 Fabian Groffen
2020-11-15 19:30 Rémi Cardona
2020-04-28 20:15 Matt Turner
2020-01-01 15:08 Mart Raudsepp
2020-01-01 14:03 Agostino Sarubbo
2019-12-10 18:10 Aaron Bauman
2019-12-08 23:37 Sergei Trofimovich
2019-08-25 19:55 Mart Raudsepp
2019-08-10  9:08 Sergei Trofimovich
2019-05-21  3:17 Aaron Bauman
2019-04-29  8:17 Sergei Trofimovich
2019-04-14 21:14 Aaron Bauman
2019-02-05 23:58 Mart Raudsepp
2019-01-15 23:38 Mart Raudsepp
2018-10-06 18:42 Sergei Trofimovich
2018-10-06 18:42 Sergei Trofimovich
2018-10-03 16:24 Mart Raudsepp
2018-09-30 22:21 Mart Raudsepp
2018-09-19  8:42 Sergei Trofimovich
2018-08-28 18:41 Sergei Trofimovich
2018-08-08 21:06 Mikle Kolyada
2018-08-07  8:26 Sergei Trofimovich
2018-07-31  0:43 Thomas Deutschmann
2018-07-30 10:30 Mart Raudsepp
2018-07-30 10:30 Mart Raudsepp
2018-07-15 23:13 Mart Raudsepp
2018-06-16 18:27 Mart Raudsepp
2018-03-18 19:36 Sergei Trofimovich
2018-03-17 17:19 Mikle Kolyada
2018-01-27  3:30 Mart Raudsepp
2018-01-27  3:30 Mart Raudsepp
2018-01-05 15:30 Mart Raudsepp
2017-12-25 11:51 Markus Meier
2017-12-16 17:58 Mart Raudsepp
2017-11-21 11:16 Marek Szuba
2017-11-20 19:59 Manuel Rüger
2017-11-07  8:06 Sergei Trofimovich
2017-11-01 19:56 Sergei Trofimovich
2017-11-01  9:35 Sergei Trofimovich
2017-11-01  9:19 Sergei Trofimovich
2017-10-26  7:30 Sergei Trofimovich
2017-09-18 19:51 Mart Raudsepp
2017-09-18 19:51 Mart Raudsepp
2017-09-17  5:25 Mart Raudsepp
2017-07-08 16:08 Sergei Trofimovich
2017-02-25  1:28 Mart Raudsepp
2017-02-15 17:33 Markus Meier
2017-01-22 18:03 Agostino Sarubbo
2017-01-15  6:03 Mart Raudsepp
2016-12-06 21:07 Markus Meier
2016-07-31  8:54 Pacho Ramos
2016-07-09 20:24 Andreas Hüttel
2016-05-03 20:37 Markus Meier
2016-03-06 18:03 Mikle Kolyada
2016-01-31 12:46 Gilles Dartiguelongue

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=1517023760.ba018ae41ad2ef5b0bc78ad9a93d1dc982522be0.leio@gentoo \
    --to=leio@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