public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: kde-plasma/libksysguard/
Date: Fri, 14 Feb 2025 10:38:45 +0000 (UTC)	[thread overview]
Message-ID: <1739529390.323cafda278f34bd4957affc1580c150e5a28a5a.sam@gentoo> (raw)

commit:     323cafda278f34bd4957affc1580c150e5a28a5a
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 14 10:36:30 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Feb 14 10:36:30 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=323cafda

kde-plasma/libksysguard: fix build w/ <libcxx-20

Per Robert on the bug:
> libksysguard 6.3.0 fails to build when using the LLVM profile because it now uses
> std::jthread and std::stop_token that llvm's libc++ considers experimental
> and does not build by default.

They're unleashed in libcxx 20 which should be released shortly. In the meantime,
pass -fexperimental-library.

Closes: https://bugs.gentoo.org/949636
Thanks-to: Steffen Hau <steffen <AT> hauihau.de>
Thanks-to: Robert Holt <holt.r94 <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 kde-plasma/libksysguard/libksysguard-6.3.0.ebuild | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/kde-plasma/libksysguard/libksysguard-6.3.0.ebuild b/kde-plasma/libksysguard/libksysguard-6.3.0.ebuild
index d1f103a096e1..f3c4f5c10f74 100644
--- a/kde-plasma/libksysguard/libksysguard-6.3.0.ebuild
+++ b/kde-plasma/libksysguard/libksysguard-6.3.0.ebuild
@@ -6,7 +6,7 @@ EAPI=8
 ECM_TEST="true"
 KFMIN=6.10.0
 QTMIN=6.8.1
-inherit ecm fcaps plasma.kde.org
+inherit ecm fcaps flag-o-matic plasma.kde.org toolchain-funcs
 
 DESCRIPTION="Task management and system monitoring library"
 
@@ -39,6 +39,12 @@ RDEPEND="${DEPEND}
 FILECAPS=( -m 0755 cap_sys_nice=ep usr/libexec/ksysguard/ksgrd_network_helper )
 
 src_configure() {
+	# support std::jthread and std::stop_token is not enabled per default
+	# in libc++ prior to version 20, need to add "-fexperimental-library"
+	if tc-is-clang && [[ $(tc-get-cxx-stdlib) == libc++ ]] && [[ "$(clang-major-version)" -lt 20 ]]; then
+		append-cxxflags "-fexperimental-library"
+	fi
+
 	local mycmakeargs=(
 		-DCMAKE_DISABLE_FIND_PACKAGE_Libcap=ON
 	)


             reply	other threads:[~2025-02-14 10:38 UTC|newest]

Thread overview: 81+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-14 10:38 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-02-23 21:43 [gentoo-commits] repo/gentoo:master commit in: kde-plasma/libksysguard/ Andreas Sturmlechner
2025-01-10  9:54 WANG Xuerui
2024-11-26 19:25 Andreas Sturmlechner
2024-11-18 20:09 Andreas Sturmlechner
2024-06-17 17:13 Andreas Sturmlechner
2024-06-12 15:29 Andreas Sturmlechner
2023-09-19 15:27 Andreas Sturmlechner
2023-08-14 15:07 Andreas Sturmlechner
2023-01-09 20:48 Andreas Sturmlechner
2022-10-10  9:54 Andreas Sturmlechner
2022-07-30  8:51 Agostino Sarubbo
2022-07-28 11:03 Agostino Sarubbo
2022-05-29 20:44 Andreas Sturmlechner
2022-05-25 21:13 Andreas Sturmlechner
2022-05-03 22:41 Sam James
2022-04-29 13:33 Agostino Sarubbo
2022-04-29 13:29 Agostino Sarubbo
2022-03-29 15:57 Andreas Sturmlechner
2022-02-22 16:55 Andreas Sturmlechner
2022-02-15 17:51 Andreas Sturmlechner
2022-02-08 13:10 Andreas Sturmlechner
2022-01-18 17:40 Andreas Sturmlechner
2021-12-19 22:09 Agostino Sarubbo
2021-12-19 22:06 Agostino Sarubbo
2021-10-31  3:17 Sam James
2021-10-20  6:51 Andreas Sturmlechner
2021-07-06 17:20 Andreas Sturmlechner
2021-06-23  6:27 Andreas Sturmlechner
2021-06-16 12:32 Sam James
2021-05-09 12:11 Andreas Sturmlechner
2021-04-06 14:12 Andreas Sturmlechner
2021-03-16 14:43 Andreas Sturmlechner
2021-03-02 20:24 Andreas Sturmlechner
2021-02-17 22:13 Andreas Sturmlechner
2021-01-24 19:34 Sam James
2021-01-21 13:37 Agostino Sarubbo
2021-01-05 17:36 Andreas Sturmlechner
2020-12-01 16:08 Andreas Sturmlechner
2020-11-11 14:21 Andreas Sturmlechner
2020-10-27 21:26 Andreas Sturmlechner
2020-10-20 19:56 Andreas Sturmlechner
2020-10-13 11:51 Andreas Sturmlechner
2020-10-08  2:22 Sam James
2020-09-01 16:33 Andreas Sturmlechner
2020-08-13 15:47 Andreas Sturmlechner
2020-07-28 15:37 Andreas Sturmlechner
2020-07-07 21:30 Andreas Sturmlechner
2020-06-28 17:56 Andreas Sturmlechner
2020-06-28 17:56 Andreas Sturmlechner
2020-06-25  7:21 Andreas Sturmlechner
2020-06-20 21:03 Thomas Deutschmann
2020-06-10 22:44 Andreas Sturmlechner
2020-06-10 22:44 Andreas Sturmlechner
2020-05-21 13:41 Mikle Kolyada
2020-05-20 16:15 Mikle Kolyada
2020-05-20 16:11 Mikle Kolyada
2020-02-29 12:34 Mikle Kolyada
2020-02-16 13:51 Andreas Sturmlechner
2020-02-15 11:31 Mikle Kolyada
2020-02-11 13:54 Mikle Kolyada
2020-02-11 13:50 Mikle Kolyada
2019-12-22 21:54 Aaron Bauman
2019-12-22 20:42 Mikle Kolyada
2019-12-22 20:39 Mikle Kolyada
2019-12-22 12:52 Andreas Sturmlechner
2019-09-21  0:08 Mikle Kolyada
2019-09-21  0:04 Mikle Kolyada
2019-09-20  3:24 Aaron Bauman
2019-05-28  4:01 Aaron Bauman
2019-05-18 18:15 Mikle Kolyada
2019-05-18 18:11 Mikle Kolyada
2019-01-25  7:28 Mikle Kolyada
2019-01-25  7:20 Mikle Kolyada
2018-10-18 12:31 Thomas Deutschmann
2018-05-26  0:52 Thomas Deutschmann
2017-07-25 19:19 Alexis Ballier
2017-07-07  8:12 Agostino Sarubbo
2017-07-05 20:31 Agostino Sarubbo
2017-05-07 15:41 Andreas Sturmlechner
2017-03-20 16:45 Agostino Sarubbo

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=1739529390.323cafda278f34bd4957affc1580c150e5a28a5a.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