From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 3725C15802E for ; Mon, 24 Jun 2024 07:14:00 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 626DCE2A43; Mon, 24 Jun 2024 07:13:59 +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 35A52E2A43 for ; Mon, 24 Jun 2024 07:13:59 +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 26B3D335C7E for ; Mon, 24 Jun 2024 07:13:58 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 394BE158E for ; Mon, 24 Jun 2024 07:13:56 +0000 (UTC) From: "Miroslav Šulc" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Miroslav Šulc" Message-ID: <1719213019.30d15ff32cf584538ba455d0492c24657f94bd7a.fordfrog@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/lmms/files/, media-sound/lmms/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-sound/lmms/files/lmms-1.2.2-kwidgetsaddons.patch media-sound/lmms/lmms-1.2.2-r1.ebuild media-sound/lmms/lmms-1.2.2-r2.ebuild X-VCS-Directories: media-sound/lmms/files/ media-sound/lmms/ X-VCS-Committer: fordfrog X-VCS-Committer-Name: Miroslav Šulc X-VCS-Revision: 30d15ff32cf584538ba455d0492c24657f94bd7a X-VCS-Branch: master Date: Mon, 24 Jun 2024 07:13:56 +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: 3f6f275e-a30d-4617-8604-438ed6182666 X-Archives-Hash: eae8dec151e2f6fb43cece16639ed4f9 commit: 30d15ff32cf584538ba455d0492c24657f94bd7a Author: Brandon Little inco cc> AuthorDate: Mon Jun 17 16:28:46 2024 +0000 Commit: Miroslav Šulc gentoo org> CommitDate: Mon Jun 24 07:10:19 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=30d15ff3 media-sound/lmms: Fix segfault related to kwidgetsaddons Closes: https://bugs.gentoo.org/907285 Signed-off-by: Brandon Little inco.cc> Closes: https://github.com/gentoo/gentoo/pull/37197 Signed-off-by: Miroslav Šulc gentoo.org> .../lmms/files/lmms-1.2.2-kwidgetsaddons.patch | 75 ++++++++++++++++++++++ .../{lmms-1.2.2-r1.ebuild => lmms-1.2.2-r2.ebuild} | 1 + 2 files changed, 76 insertions(+) diff --git a/media-sound/lmms/files/lmms-1.2.2-kwidgetsaddons.patch b/media-sound/lmms/files/lmms-1.2.2-kwidgetsaddons.patch new file mode 100644 index 000000000000..723e76adfa73 --- /dev/null +++ b/media-sound/lmms/files/lmms-1.2.2-kwidgetsaddons.patch @@ -0,0 +1,75 @@ +This patch removes an outdated workaround that causes a segfault when a recent +version of kwidgetsaddon is installed. It has been merged upstream, so there is +no need to use this beyond version 1.2.2. + +https://github.com/LMMS/lmms/issues/6587#issuecomment-1399220056 +https://github.com/LMMS/lmms/pull/6612 + +diff --git a/src/gui/MainApplication.cpp b/src/gui/MainApplication.cpp +index 994ae2771..9afa20a71 100644 +--- a/src/gui/MainApplication.cpp ++++ b/src/gui/MainApplication.cpp +@@ -35,6 +35,19 @@ MainApplication::MainApplication(int& argc, char** argv) : + QApplication(argc, argv), + m_queuedFile() + { ++#if !defined(LMMS_BUILD_WIN32) && !defined(LMMS_BUILD_APPLE) && !defined(LMMS_BUILD_HAIKU) && QT_VERSION >= 0x050000 ++ // Work around a bug of KXmlGui < 5.55 ++ // which breaks the recent files menu ++ // https://bugs.kde.org/show_bug.cgi?id=337491 ++ for (auto child : children()) ++ { ++ if (child->inherits("KCheckAcceleratorsInitializer")) ++ { ++ delete child; ++ } ++ } ++#endif ++ + #if defined(LMMS_BUILD_WIN32) && QT_VERSION >= 0x050000 + installNativeEventFilter(this); + #endif +diff --git a/src/gui/MainWindow.cpp b/src/gui/MainWindow.cpp +index e6971f96d..26532eb5b 100644 +--- a/src/gui/MainWindow.cpp ++++ b/src/gui/MainWindow.cpp +@@ -33,7 +33,6 @@ + #include + #include + #include +-#include + #include + #include + #include +@@ -65,21 +64,6 @@ + + #include "lmmsversion.h" + +-#if !defined(LMMS_BUILD_WIN32) && !defined(LMMS_BUILD_APPLE) && !defined(LMMS_BUILD_HAIKU) && QT_VERSION >= 0x050000 +-//Work around an issue on KDE5 as per https://bugs.kde.org/show_bug.cgi?id=337491#c21 +-void disableAutoKeyAccelerators(QWidget* mainWindow) +-{ +- using DisablerFunc = void(*)(QWidget*); +- QLibrary kf5WidgetsAddon("KF5WidgetsAddons", 5); +- DisablerFunc setNoAccelerators = +- reinterpret_cast(kf5WidgetsAddon.resolve("_ZN19KAcceleratorManager10setNoAccelEP7QWidget")); +- if(setNoAccelerators) +- { +- setNoAccelerators(mainWindow); +- } +- kf5WidgetsAddon.unload(); +-} +-#endif + + + MainWindow::MainWindow() : +@@ -92,9 +76,6 @@ MainWindow::MainWindow() : + m_metronomeToggle( 0 ), + m_session( Normal ) + { +-#if !defined(LMMS_BUILD_WIN32) && !defined(LMMS_BUILD_APPLE) && !defined(LMMS_BUILD_HAIKU) && QT_VERSION >= 0x050000 +- disableAutoKeyAccelerators(this); +-#endif + setAttribute( Qt::WA_DeleteOnClose ); + + QWidget * main_widget = new QWidget( this ); diff --git a/media-sound/lmms/lmms-1.2.2-r1.ebuild b/media-sound/lmms/lmms-1.2.2-r2.ebuild similarity index 97% rename from media-sound/lmms/lmms-1.2.2-r1.ebuild rename to media-sound/lmms/lmms-1.2.2-r2.ebuild index 2f8132cd28a8..06b9e57473c3 100644 --- a/media-sound/lmms/lmms-1.2.2-r1.ebuild +++ b/media-sound/lmms/lmms-1.2.2-r2.ebuild @@ -71,6 +71,7 @@ S="${WORKDIR}/${PN}" PATCHES=( "${FILESDIR}/${PN}-1.2.2-no_compress_man.patch" #733284 "${FILESDIR}/${PN}-1.2.2-plugin-path.patch" #907285 + "${FILESDIR}/${PN}-1.2.2-kwidgetsaddons.patch" ) src_configure() {