commit:     821402ed1a17c6fbf089dab68b2b1565a3b993d9
Author:     Daichi Yamamoto <dev <AT> dyama <DOT> net>
AuthorDate: Tue Oct 28 22:04:36 2025 +0000
Commit:     Yixun Lan <dlan <AT> gentoo <DOT> org>
CommitDate: Wed Oct 29 10:22:42 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=821402ed

app-i18n/fcitx: fix compiling with libc++

std::syncstream used in fcitx/fcitx5#1382 is still marked as experimental in 
libc++.

Closes: https://github.com/gentoo/gentoo/pull/44368
Signed-off-by: Daichi Yamamoto <dev <AT> dyama.net>
Signed-off-by: Yixun Lan <dlan <AT> gentoo.org>

 app-i18n/fcitx/fcitx-5.1.16.ebuild | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/app-i18n/fcitx/fcitx-5.1.16.ebuild 
b/app-i18n/fcitx/fcitx-5.1.16.ebuild
index dafc471a3f81..71cb2a466525 100644
--- a/app-i18n/fcitx/fcitx-5.1.16.ebuild
+++ b/app-i18n/fcitx/fcitx-5.1.16.ebuild
@@ -5,7 +5,7 @@ EAPI=8
 
 MY_PN="fcitx5"
 
-inherit cmake unpacker xdg
+inherit cmake flag-o-matic toolchain-funcs unpacker xdg
 
 DESCRIPTION="Fcitx 5 is a generic input method framework"
 HOMEPAGE="https://fcitx-im.org/ https://github.com/fcitx/fcitx5";
@@ -75,6 +75,11 @@ BDEPEND="
 "
 
 src_configure() {
+       if [[ $(tc-get-cxx-stdlib) == "libc++" ]]; then
+               # std::osyncstream used in fcitx-utils/log.cpp is marked as 
experimental.
+               append-cxxflags $(test-flags-CXX -fexperimental-library)
+       fi
+
        local mycmakeargs=(
                -DENABLE_DBUS=on
                -DENABLE_XDGAUTOSTART=$(usex autostart)

Reply via email to