diff options
| author | bivsk <bivsk@tutanota.com> | 2024-08-18 22:31:51 -0400 |
|---|---|---|
| committer | Andreas Sturmlechner <asturm@gentoo.org> | 2024-09-07 19:13:01 +0200 |
| commit | ded4642751aa855d3f0bfc2efae11bbfdc3b0be5 (patch) | |
| tree | 74b5474292d001aecb0c3a5ce9a71df303d6a0b3 | |
| parent | 814fbbb57f67a214c75000b1d349795f539f2e0d (diff) | |
| download | kde-ded4642751aa855d3f0bfc2efae11bbfdc3b0be5.tar.gz kde-ded4642751aa855d3f0bfc2efae11bbfdc3b0be5.tar.bz2 kde-ded4642751aa855d3f0bfc2efae11bbfdc3b0be5.zip | |
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@tutanota.com>
Closes: https://github.com/gentoo/gentoo/pull/38197
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
| -rw-r--r-- | kde-plasma/krdp/krdp-6.1.49.9999.ebuild | 10 | ||||
| -rw-r--r-- | 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 136a3b0ac71..d637f56bf41 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 3e9028a0bed..42362aa691c 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 +} |
