public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Joonas Niilola" <juippis@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/zita-resampler/
Date: Wed, 31 Jan 2024 13:10:37 +0000 (UTC)	[thread overview]
Message-ID: <1706706634.7e7deaf82dd94cbce99e1afd93cda54013b5393b.juippis@gentoo> (raw)

commit:     7e7deaf82dd94cbce99e1afd93cda54013b5393b
Author:     Alexander Tsoy <alexander <AT> tsoy <DOT> me>
AuthorDate: Tue Dec 19 15:00:57 2023 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Wed Jan 31 13:10:34 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7e7deaf8

media-libs/zita-resampler: backport SSE2 checks to 1.10.1

Closes: https://bugs.gentoo.org/920262
Signed-off-by: Alexander Tsoy <alexander <AT> tsoy.me>
Closes: https://github.com/gentoo/gentoo/pull/34341
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 media-libs/zita-resampler/zita-resampler-1.10.1.ebuild | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/media-libs/zita-resampler/zita-resampler-1.10.1.ebuild b/media-libs/zita-resampler/zita-resampler-1.10.1.ebuild
index 2e8977814e6c..7e35d5a6f7bb 100644
--- a/media-libs/zita-resampler/zita-resampler-1.10.1.ebuild
+++ b/media-libs/zita-resampler/zita-resampler-1.10.1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -16,7 +16,6 @@ IUSE="cpu_flags_x86_sse2 tools"
 
 RDEPEND="tools? ( media-libs/libsndfile )"
 DEPEND="${RDEPEND}"
-BDEPEND=""
 
 HTML_DOCS="docs/."
 
@@ -24,8 +23,14 @@ PATCHES=( "${FILESDIR}"/${PN}-1.10.1-makefile.patch )
 
 src_compile() {
 	tc-export CXX
+	# Code paths that uses intrinsics are not properly guarded by symbol checks
 	if use cpu_flags_x86_sse2 ; then
-		append-cppflags "-DENABLE_SSE2"
+		if tc-cpp-is-true "defined(__SSE2__)" ${CFLAGS} ${CXXFLAGS} ; then
+			append-cppflags "-DENABLE_SSE2"
+		else
+			ewarn "SSE2 support has been disabled automatically because the"
+			ewarn "compiler does not support corresponding intrinsics"
+		fi
 	fi
 
 	emake -C source


             reply	other threads:[~2024-01-31 13:10 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-31 13:10 Joonas Niilola [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-02-01 22:36 [gentoo-commits] repo/gentoo:master commit in: media-libs/zita-resampler/ Sam James
2023-12-19 17:01 Arthur Zamarin
2023-12-18  6:14 Sam James
2023-12-18  5:58 Sam James
2023-12-18  5:58 Sam James
2023-12-18  5:58 Sam James
2023-12-18  5:58 Sam James
2023-03-10  6:05 Viorel Munteanu
2021-08-18  9:09 Marek Szuba
2021-02-19 20:12 Thomas Deutschmann
2021-02-15  1:49 Sam James
2021-02-14  2:10 Sam James
2021-02-06 15:39 Sam James
2021-02-06 13:33 Sam James
2021-02-06 13:33 Sam James
2020-10-07  6:54 Agostino Sarubbo
2020-10-07  6:53 Agostino Sarubbo
2020-10-07  6:50 Agostino Sarubbo
2020-10-06  4:54 Sam James
2020-10-06  4:42 Sam James
2020-09-07  7:31 Sergei Trofimovich
2020-08-31 21:14 Thomas Deutschmann
2020-08-31  2:52 Sam James
2020-08-30 18:30 Sam James
2020-08-25 12:46 Sam James
2020-08-14  8:19 Sergei Trofimovich
2020-08-14  8:16 Sergei Trofimovich
2019-12-30 15:28 Agostino Sarubbo

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=1706706634.7e7deaf82dd94cbce99e1afd93cda54013b5393b.juippis@gentoo \
    --to=juippis@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