From 821402ed1a17c6fbf089dab68b2b1565a3b993d9 Mon Sep 17 00:00:00 2001 From: Daichi Yamamoto Date: Wed, 29 Oct 2025 07:04:36 +0900 Subject: [PATCH] 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 Signed-off-by: Yixun Lan --- 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 dafc471a3f813..71cb2a466525b 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)