From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D49FC1582EF for ; Fri, 14 Feb 2025 10:40:30 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id C4FE53430DA for ; Fri, 14 Feb 2025 10:40:21 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id C8F3811042D; Fri, 14 Feb 2025 10:40:20 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id BF2F611042D for ; Fri, 14 Feb 2025 10:40:20 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 732203430D7 for ; Fri, 14 Feb 2025 10:40:20 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A7D1619DE for ; Fri, 14 Feb 2025 10:40:18 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1739529611.792be1a00ab69ae88089144481b8bdd0fefbf6a1.sam@gentoo> Subject: [gentoo-commits] proj/kde:master commit in: kde-plasma/libksysguard/ X-VCS-Repository: proj/kde X-VCS-Files: kde-plasma/libksysguard/libksysguard-6.3.49.9999.ebuild kde-plasma/libksysguard/libksysguard-9999.ebuild X-VCS-Directories: kde-plasma/libksysguard/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 792be1a00ab69ae88089144481b8bdd0fefbf6a1 X-VCS-Branch: master Date: Fri, 14 Feb 2025 10:40:18 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 6fd6cf28-54a0-46b0-8d7c-f5bce33c98af X-Archives-Hash: bed1e42446cddbf03504734ed0d1dcf3 commit: 792be1a00ab69ae88089144481b8bdd0fefbf6a1 Author: Sam James gentoo org> AuthorDate: Fri Feb 14 10:36:30 2025 +0000 Commit: Sam James gentoo org> CommitDate: Fri Feb 14 10:40:11 2025 +0000 URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=792be1a0 kde-plasma/libksysguard: fix build w/ libksysguard 9999 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 hauihau.de> Thanks-to: Robert Holt gmail.com> Signed-off-by: Sam James gentoo.org> kde-plasma/libksysguard/libksysguard-6.3.49.9999.ebuild | 8 +++++++- kde-plasma/libksysguard/libksysguard-9999.ebuild | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/kde-plasma/libksysguard/libksysguard-6.3.49.9999.ebuild b/kde-plasma/libksysguard/libksysguard-6.3.49.9999.ebuild index 69b562dcae..458c7986f8 100644 --- a/kde-plasma/libksysguard/libksysguard-6.3.49.9999.ebuild +++ b/kde-plasma/libksysguard/libksysguard-6.3.49.9999.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 ) diff --git a/kde-plasma/libksysguard/libksysguard-9999.ebuild b/kde-plasma/libksysguard/libksysguard-9999.ebuild index 4a1abeb8b8..12597285a1 100644 --- a/kde-plasma/libksysguard/libksysguard-9999.ebuild +++ b/kde-plasma/libksysguard/libksysguard-9999.ebuild @@ -6,7 +6,7 @@ EAPI=8 ECM_TEST="true" KFMIN=9999 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 )