From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1641999-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id D08D415817D
	for <garchives@archives.gentoo.org>; Thu, 13 Jun 2024 00:58:46 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 18E60E2A5A;
	Thu, 13 Jun 2024 00:58:46 +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 pigeon.gentoo.org (Postfix) with ESMTPS id F019FE2A5A
	for <gentoo-commits@lists.gentoo.org>; Thu, 13 Jun 2024 00:58:45 +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 ED4A233BDC5
	for <gentoo-commits@lists.gentoo.org>; Thu, 13 Jun 2024 00:58:44 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 48E751C7B
	for <gentoo-commits@lists.gentoo.org>; Thu, 13 Jun 2024 00:58:43 +0000 (UTC)
From: "Sam James" <sam@gentoo.org>
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" <sam@gentoo.org>
Message-ID: <1718240312.3c18c4e47fdf33fc3ade6415e554a5e7bb4b2776.sam@gentoo>
Subject: [gentoo-commits] proj/kde:master commit in: kde-plasma/plasma-meta/
X-VCS-Repository: proj/kde
X-VCS-Files: kde-plasma/plasma-meta/plasma-meta-6.1.49.9999.ebuild kde-plasma/plasma-meta/plasma-meta-9999.ebuild
X-VCS-Directories: kde-plasma/plasma-meta/
X-VCS-Committer: sam
X-VCS-Committer-Name: Sam James
X-VCS-Revision: 3c18c4e47fdf33fc3ade6415e554a5e7bb4b2776
X-VCS-Branch: master
Date: Thu, 13 Jun 2024 00:58:43 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: 0a3efe7d-fe81-4b8b-850e-8736b34d2857
X-Archives-Hash: 09cb8dd1ebc8e472222281e76d317e93

commit:     3c18c4e47fdf33fc3ade6415e554a5e7bb4b2776
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Jun 13 00:57:35 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Jun 13 00:58:32 2024 +0000
URL:        https://gitweb.gentoo.org/proj/kde.git/commit/?id=3c18c4e4

kde-plasma/plasma-meta: add ewarn for libc++

I still need to find someone to speak to about if we should implement the
libc++ setting distro-wide (or someone else is free to do that).

Bug: https://bugs.kde.org/479679
Bug: https://bugs.gentoo.org/923292
Signed-off-by: Sam James <sam <AT> gentoo.org>

 kde-plasma/plasma-meta/plasma-meta-6.1.49.9999.ebuild | 13 +++++++++++++
 kde-plasma/plasma-meta/plasma-meta-9999.ebuild        | 13 +++++++++++++
 2 files changed, 26 insertions(+)

diff --git a/kde-plasma/plasma-meta/plasma-meta-6.1.49.9999.ebuild b/kde-plasma/plasma-meta/plasma-meta-6.1.49.9999.ebuild
index 45bd81968e..d145130205 100644
--- a/kde-plasma/plasma-meta/plasma-meta-6.1.49.9999.ebuild
+++ b/kde-plasma/plasma-meta/plasma-meta-6.1.49.9999.ebuild
@@ -3,6 +3,8 @@
 
 EAPI=8
 
+inherit toolchain-funcs
+
 DESCRIPTION="Merge this to pull in all Plasma 6 packages"
 HOMEPAGE="https://kde.org/plasma-desktop/"
 
@@ -118,6 +120,17 @@ RDEPEND="${RDEPEND}
 "
 
 pkg_postinst() {
+	if [[ $(tc-get-cxx-stdlib) == "libc++" ]] ; then
+		# Workaround for bug #923292 (KDE-bug 479679)
+		ewarn "plasmashell and other KDE Plasma components are known to misbehave"
+		ewarn "when built with sys-libs/libcxx, e.g. crashing when right-clicking"
+		ewarn "on a panel. See bug #923292."
+		ewarn ""
+		ewarn "A possible (no warranty!) workaround is building sys-libs/libcxx and"
+		ewarn "sys-libs/libcxxabi with the following in package.env:"
+		ewarn " MYCMAKEARGS=\"-DLIBCXX_TYPEINFO_COMPARISON_IMPLEMENTATION=1\""
+	fi
+
 	if ! use qt5 && has_version dev-qt/qtgui; then
 		ewarn "KF5- and Qt5-based applications will exhibit various integration bugs"
 		ewarn "and generally look out of place in Plasma 6 without the dependencies"

diff --git a/kde-plasma/plasma-meta/plasma-meta-9999.ebuild b/kde-plasma/plasma-meta/plasma-meta-9999.ebuild
index 45bd81968e..d145130205 100644
--- a/kde-plasma/plasma-meta/plasma-meta-9999.ebuild
+++ b/kde-plasma/plasma-meta/plasma-meta-9999.ebuild
@@ -3,6 +3,8 @@
 
 EAPI=8
 
+inherit toolchain-funcs
+
 DESCRIPTION="Merge this to pull in all Plasma 6 packages"
 HOMEPAGE="https://kde.org/plasma-desktop/"
 
@@ -118,6 +120,17 @@ RDEPEND="${RDEPEND}
 "
 
 pkg_postinst() {
+	if [[ $(tc-get-cxx-stdlib) == "libc++" ]] ; then
+		# Workaround for bug #923292 (KDE-bug 479679)
+		ewarn "plasmashell and other KDE Plasma components are known to misbehave"
+		ewarn "when built with sys-libs/libcxx, e.g. crashing when right-clicking"
+		ewarn "on a panel. See bug #923292."
+		ewarn ""
+		ewarn "A possible (no warranty!) workaround is building sys-libs/libcxx and"
+		ewarn "sys-libs/libcxxabi with the following in package.env:"
+		ewarn " MYCMAKEARGS=\"-DLIBCXX_TYPEINFO_COMPARISON_IMPLEMENTATION=1\""
+	fi
+
 	if ! use qt5 && has_version dev-qt/qtgui; then
 		ewarn "KF5- and Qt5-based applications will exhibit various integration bugs"
 		ewarn "and generally look out of place in Plasma 6 without the dependencies"