commit: ded4642751aa855d3f0bfc2efae11bbfdc3b0be5 Author: bivsk <bivsk <AT> tutanota <DOT> com> AuthorDate: Mon Aug 19 02:31:51 2024 +0000 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> CommitDate: Sat Sep 7 17:13:01 2024 +0000 URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=ded46427
kde-plasma/krdp: fix libc++ builds libc++ marks the implementations of jthread and stop_token as experimental. Explicitly enable these libraries on libc++ systems See: https://libcxx.llvm.org/Status/Cxx20.html#note-p0660 Signed-off-by: bivsk <bivsk <AT> tutanota.com> Closes: https://github.com/gentoo/gentoo/pull/38197 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> kde-plasma/krdp/krdp-6.1.49.9999.ebuild | 10 +++++++++- kde-plasma/krdp/krdp-9999.ebuild | 10 +++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/kde-plasma/krdp/krdp-6.1.49.9999.ebuild b/kde-plasma/krdp/krdp-6.1.49.9999.ebuild index 136a3b0ac7..d637f56bf4 100644 --- a/kde-plasma/krdp/krdp-6.1.49.9999.ebuild +++ b/kde-plasma/krdp/krdp-6.1.49.9999.ebuild @@ -8,7 +8,7 @@ ECM_TEST="true" KFMIN=6.5.0 PVCUT=$(ver_cut 1-3) QTMIN=6.7.2 -inherit ecm plasma.kde.org +inherit ecm flag-o-matic plasma.kde.org toolchain-funcs DESCRIPTION="Library and examples for creating an RDP server" HOMEPAGE+=" https://quantumproductions.info/articles/2023-08/remote-desktop-using-rdp-protocol-plasma-wayland" @@ -40,3 +40,11 @@ RDEPEND="${COMMON_DEPEND} >=kde-frameworks/kirigami-${KFMIN}:6 " BDEPEND=">=kde-frameworks/kcmutils-${KFMIN}:6" + +src_configure() { + # std::jthread and std::stop_token are implemented as experimental in libcxx + # enable these experimental libraries on clang systems + # https://libcxx.llvm.org/Status/Cxx20.html#note-p0660 + [[ $(tc-get-cxx-stdlib) == 'libc++' ]] && append-cxxflags -fexperimental-library + ecm_src_configure +} diff --git a/kde-plasma/krdp/krdp-9999.ebuild b/kde-plasma/krdp/krdp-9999.ebuild index 3e9028a0be..42362aa691 100644 --- a/kde-plasma/krdp/krdp-9999.ebuild +++ b/kde-plasma/krdp/krdp-9999.ebuild @@ -8,7 +8,7 @@ ECM_TEST="true" KFMIN=9999 PVCUT=$(ver_cut 1-3) QTMIN=6.7.2 -inherit ecm plasma.kde.org +inherit ecm flag-o-matic plasma.kde.org toolchain-funcs DESCRIPTION="Library and examples for creating an RDP server" HOMEPAGE+=" https://quantumproductions.info/articles/2023-08/remote-desktop-using-rdp-protocol-plasma-wayland" @@ -40,3 +40,11 @@ RDEPEND="${COMMON_DEPEND} >=kde-frameworks/kirigami-${KFMIN}:6 " BDEPEND=">=kde-frameworks/kcmutils-${KFMIN}:6" + +src_configure() { + # std::jthread and std::stop_token are implemented as experimental in libcxx + # enable these experimental libraries on clang systems + # https://libcxx.llvm.org/Status/Cxx20.html#note-p0660 + [[ $(tc-get-cxx-stdlib) == 'libc++' ]] && append-cxxflags -fexperimental-library + ecm_src_configure +}