From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/noise-suppression-for-voice/
Date: Thu, 28 Mar 2024 04:01:29 +0000 (UTC) [thread overview]
Message-ID: <1711598434.5bdff1dfb5cdf6d3c34be3108c514cbdd00eb2e1.sam@gentoo> (raw)
commit: 5bdff1dfb5cdf6d3c34be3108c514cbdd00eb2e1
Author: Kacper Słomiński <kacper.slominski72 <AT> gmail <DOT> com>
AuthorDate: Thu Mar 28 03:50:11 2024 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Mar 28 04:00:34 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5bdff1df
media-libs/noise-suppression-for-voice: Fix build with Clang
Closes: https://bugs.gentoo.org/925672
Signed-off-by: Kacper Słomiński <kacper.slominski72 <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/35957
Signed-off-by: Sam James <sam <AT> gentoo.org>
.../noise-suppression-for-voice-1.03.ebuild | 11 ++++++++++-
.../noise-suppression-for-voice-9999.ebuild | 11 ++++++++++-
2 files changed, 20 insertions(+), 2 deletions(-)
diff --git a/media-libs/noise-suppression-for-voice/noise-suppression-for-voice-1.03.ebuild b/media-libs/noise-suppression-for-voice/noise-suppression-for-voice-1.03.ebuild
index 78ff0308a9d3..0fd3b8452a21 100644
--- a/media-libs/noise-suppression-for-voice/noise-suppression-for-voice-1.03.ebuild
+++ b/media-libs/noise-suppression-for-voice/noise-suppression-for-voice-1.03.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-inherit cmake
+inherit cmake flag-o-matic
DESCRIPTION="A real-time noise suppression plugin for voice"
HOMEPAGE="https://github.com/werman/noise-suppression-for-voice"
@@ -44,6 +44,15 @@ DEPEND="
RDEPEND="${DEPEND}"
src_configure() {
+ # Bug #925672
+ # append-atomic-flags does not work for us in this case, as it can
+ # only test for single integers of given sizes, meanwhile
+ # noise-suppression-for-voice does std::atomic<RnNoiseStats>, where
+ # RnNoiseStats is a struct with 4 uint32_t members.
+ if test-flags-CCLD "-latomic" &>/dev/null; then
+ append-flags -Wl,--push-state,--as-needed,-latomic,--pop-state
+ fi
+
local mycmakeargs=(
-DBUILD_LADSPA_PLUGIN=$(usex ladspa ON OFF)
-DBUILD_LV2_PLUGIN=$(usex lv2 ON OFF)
diff --git a/media-libs/noise-suppression-for-voice/noise-suppression-for-voice-9999.ebuild b/media-libs/noise-suppression-for-voice/noise-suppression-for-voice-9999.ebuild
index 78ff0308a9d3..0fd3b8452a21 100644
--- a/media-libs/noise-suppression-for-voice/noise-suppression-for-voice-9999.ebuild
+++ b/media-libs/noise-suppression-for-voice/noise-suppression-for-voice-9999.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-inherit cmake
+inherit cmake flag-o-matic
DESCRIPTION="A real-time noise suppression plugin for voice"
HOMEPAGE="https://github.com/werman/noise-suppression-for-voice"
@@ -44,6 +44,15 @@ DEPEND="
RDEPEND="${DEPEND}"
src_configure() {
+ # Bug #925672
+ # append-atomic-flags does not work for us in this case, as it can
+ # only test for single integers of given sizes, meanwhile
+ # noise-suppression-for-voice does std::atomic<RnNoiseStats>, where
+ # RnNoiseStats is a struct with 4 uint32_t members.
+ if test-flags-CCLD "-latomic" &>/dev/null; then
+ append-flags -Wl,--push-state,--as-needed,-latomic,--pop-state
+ fi
+
local mycmakeargs=(
-DBUILD_LADSPA_PLUGIN=$(usex ladspa ON OFF)
-DBUILD_LV2_PLUGIN=$(usex lv2 ON OFF)
next reply other threads:[~2024-03-28 4:01 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-28 4:01 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-10-05 23:26 [gentoo-commits] repo/gentoo:master commit in: media-libs/noise-suppression-for-voice/ Sam James
2024-08-20 0:48 Eli Schwartz
2024-07-28 2:39 Sam James
2024-07-22 20:35 Sam James
2024-07-22 20:35 Sam James
2023-11-22 17:44 Sam James
2023-11-14 17:30 Andreas Sturmlechner
2023-10-16 5:37 Sam James
2023-10-16 5:37 Sam James
2023-02-01 19:27 Andreas Sturmlechner
2022-08-19 4:04 Sam James
2021-02-25 16:50 Rick Farina
2020-07-24 0:51 Rick Farina
2020-07-24 0:51 Rick Farina
2020-07-06 17:23 Rick Farina
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=1711598434.5bdff1dfb5cdf6d3c34be3108c514cbdd00eb2e1.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