diff --git a/eclass/mount-boot-utils.eclass b/eclass/mount-boot-utils.eclass index 39f8e94b84ec7..e24b4e0c08261 100644 --- a/eclass/mount-boot-utils.eclass +++ b/eclass/mount-boot-utils.eclass @@ -4,7 +4,7 @@ # @ECLASS: mount-boot-utils.eclass # @MAINTAINER: # base-system@gentoo.org -# @SUPPORTED_EAPIS: 6 7 8 +# @SUPPORTED_EAPIS: 7 8 # @BLURB: functions for packages that install files into /boot or the ESP # @DESCRIPTION: # This eclass is really only useful for bootloaders and kernel installation. diff --git a/eclass/mount-boot.eclass b/eclass/mount-boot.eclass index ab02b39d6141e..ce17026ffd2b9 100644 --- a/eclass/mount-boot.eclass +++ b/eclass/mount-boot.eclass @@ -4,7 +4,7 @@ # @ECLASS: mount-boot.eclass # @MAINTAINER: # base-system@gentoo.org -# @SUPPORTED_EAPIS: 6 7 8 +# @SUPPORTED_EAPIS: 7 8 # @BLURB: eclass for packages that install files into /boot or the ESP # @DESCRIPTION: # This eclass is really only useful for bootloaders and kernel installation. diff --git a/kde-apps/konsole/files/konsole-24.05.2-cmake.patch b/kde-apps/konsole/files/konsole-24.05.2-cmake.patch new file mode 100644 index 0000000000000..19064a3fde4c5 --- /dev/null +++ b/kde-apps/konsole/files/konsole-24.05.2-cmake.patch @@ -0,0 +1,136 @@ +From 3800a40653355dd165fe68f80611228fa94656ee Mon Sep 17 00:00:00 2001 +From: Andreas Sturmlechner +Date: Sun, 7 Jul 2024 23:27:32 +0200 +Subject: [PATCH] Drop faux X11 dependency and switch WITHOUT_X11 option to + WITH_X11 + +X11 is nowhere needed in the codebase. Follow-up to 2f116f9fb2438a6e66b6702b3cc2ace9d0205f96 + +Signed-off-by: Andreas Sturmlechner +(cherry picked from commit c5f2315c9df05ca069de25ab741d9fc38a6de21a) +--- + CMakeLists.txt | 7 +------ + src/MainWindow.cpp | 8 ++++---- + src/WindowSystemInfo.cpp | 4 ++-- + src/config-konsole.h.cmake | 2 +- + src/main.cpp | 4 ++-- + 5 files changed, 10 insertions(+), 15 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index bd30a9888..0f00be8f3 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -95,12 +95,7 @@ set_package_properties(KF6DocTools PROPERTIES DESCRIPTION + find_package(ICU 61.0 COMPONENTS uc i18n REQUIRED) + + if(NOT APPLE) +- option(WITHOUT_X11 "Build without X11 integration (skips finding X11)" OFF) +- if (NOT WITHOUT_X11) +- find_package(X11) +- set_package_properties(X11 PROPERTIES TYPE OPTIONAL) +- set(HAVE_X11 ${X11_FOUND}) +- endif() ++ option(WITH_X11 "Build with X11 integration" ON) + endif() + + # Check for function GETPWUID +diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp +index c034288df..163105357 100644 +--- a/src/MainWindow.cpp ++++ b/src/MainWindow.cpp +@@ -35,7 +35,7 @@ + #include + #include + +-#if HAVE_X11 ++#if WITH_X11 + #include + #endif + +@@ -156,7 +156,7 @@ void MainWindow::activationRequest(const QString &xdgActivationToken) + KWindowSystem::setCurrentXdgActivationToken(xdgActivationToken); + + if (KWindowSystem::isPlatformX11()) { +-#if HAVE_X11 ++#if WITH_X11 + KX11Extras::forceActiveWindow(winId()); + #endif + } else { +@@ -713,7 +713,7 @@ bool MainWindow::queryClose() + // NOTE: Some, if not all, of the below KWindowSystem calls are only + // implemented under x11 (KDE4.8 kdelibs/kdeui/windowmanagement). + +-#if HAVE_X11 ++#if WITH_X11 + // make sure the window is shown on current desktop and is not minimized + KX11Extras::setOnDesktop(winId(), KX11Extras::currentDesktop()); + #endif +@@ -1022,7 +1022,7 @@ void MainWindow::setRemoveWindowTitleBarAndFrame(bool frameless) + } + + if (KWindowSystem::isPlatformX11()) { +-#if HAVE_X11 ++#if WITH_X11 + const auto oldGeometry = saveGeometry(); + // This happens for every Konsole window. It depends on + // the fact that every window is processed in single thread +diff --git a/src/WindowSystemInfo.cpp b/src/WindowSystemInfo.cpp +index d6cad5f68..28cc3bd6c 100644 +--- a/src/WindowSystemInfo.cpp ++++ b/src/WindowSystemInfo.cpp +@@ -11,7 +11,7 @@ + + #include + +-#if HAVE_X11 ++#if WITH_X11 + #include + #include + #endif +@@ -22,7 +22,7 @@ bool WindowSystemInfo::HAVE_TRANSPARENCY = false; + + bool WindowSystemInfo::compositingActive() + { +-#if HAVE_X11 ++#if WITH_X11 + return !KWindowSystem::isPlatformX11() || KX11Extras::compositingActive(); + #else + return true; +diff --git a/src/config-konsole.h.cmake b/src/config-konsole.h.cmake +index b860764d3..b9fac1e56 100644 +--- a/src/config-konsole.h.cmake ++++ b/src/config-konsole.h.cmake +@@ -3,7 +3,7 @@ + /* Defined if on DragonFly BSD */ + #cmakedefine01 HAVE_OS_DRAGONFLYBSD + +-#cmakedefine01 HAVE_X11 ++#cmakedefine01 WITH_X11 + + /* If defined, remove public access to dbus sendInput/runCommand */ + #cmakedefine01 REMOVE_SENDTEXT_RUNCOMMAND_DBUS_METHODS +diff --git a/src/main.cpp b/src/main.cpp +index 9f3b88286..b05877f3d 100644 +--- a/src/main.cpp ++++ b/src/main.cpp +@@ -284,7 +284,7 @@ bool shouldUseNewProcess(int argc, char *argv[]) + QStringList qtProblematicOptions; + qtProblematicOptions << QStringLiteral("--session") << QStringLiteral("--name") << QStringLiteral("--reverse") << QStringLiteral("--stylesheet") + << QStringLiteral("--graphicssystem"); +-#if HAVE_X11 ++#if WITH_X11 + qtProblematicOptions << QStringLiteral("--display") << QStringLiteral("--visual"); + #endif + for (const QString &option : std::as_const(qtProblematicOptions)) { +@@ -296,7 +296,7 @@ bool shouldUseNewProcess(int argc, char *argv[]) + // take KDE options into consideration + QStringList kdeProblematicOptions; + kdeProblematicOptions << QStringLiteral("--config") << QStringLiteral("--style"); +-#if HAVE_X11 ++#if WITH_X11 + kdeProblematicOptions << QStringLiteral("--waitforwm"); + #endif + +-- +2.45.2 + diff --git a/kde-apps/konsole/konsole-24.05.2.ebuild b/kde-apps/konsole/konsole-24.05.2-r1.ebuild similarity index 88% rename from kde-apps/konsole/konsole-24.05.2.ebuild rename to kde-apps/konsole/konsole-24.05.2-r1.ebuild index ebe2729c67c46..f9039c6429647 100644 --- a/kde-apps/konsole/konsole-24.05.2.ebuild +++ b/kde-apps/konsole/konsole-24.05.2-r1.ebuild @@ -15,7 +15,7 @@ HOMEPAGE="https://apps.kde.org/konsole/ https://konsole.kde.org" LICENSE="GPL-2" # TODO: CHECK SLOT="6" KEYWORDS="~amd64 ~arm64 ~riscv" -IUSE="" +IUSE="X" DEPEND=" dev-libs/icu:= @@ -42,12 +42,19 @@ DEPEND=" >=kde-frameworks/kservice-${KFMIN}:6 >=kde-frameworks/ktextwidgets-${KFMIN}:6 >=kde-frameworks/kwidgetsaddons-${KFMIN}:6 - >=kde-frameworks/kwindowsystem-${KFMIN}:6 + >=kde-frameworks/kwindowsystem-${KFMIN}:6[X?] >=kde-frameworks/kxmlgui-${KFMIN}:6 " RDEPEND="${DEPEND}" -PATCHES=( "${FILESDIR}/${PN}-23.08.1-drop-unused-X11-dep.patch" ) # FIXME properly upstream +PATCHES=( "${FILESDIR}/${P}-cmake.patch" ) # fixed in 24.08 + +src_configure() { + local mycmakeargs=( + -DWITH_X11=$(usex X) + ) + ecm_src_configure +} src_test() { # DBusTest: drkonqi process interferes. bug 702690 diff --git a/net-im/tokodon/files/tokodon-24.05.2-enable-exceptions.patch b/net-im/tokodon/files/tokodon-24.05.2-enable-exceptions.patch new file mode 100644 index 0000000000000..bc48595b2838c --- /dev/null +++ b/net-im/tokodon/files/tokodon-24.05.2-enable-exceptions.patch @@ -0,0 +1,34 @@ +From e55359ddc139c2a6296b67990dee47478a4fadc8 Mon Sep 17 00:00:00 2001 +From: Joshua Goins +Date: Fri, 12 Jul 2024 12:00:43 -0400 +Subject: [PATCH] Enable C++ exceptions even when building with QtMultimedia + +This is also needed in blurhash.cpp, which breaks in certain system +configurations that don't enable exceptions by default. Now it's turned +on regardless of the USE_QTMULTIMEDIA CMake option. + +I also added a note for future people to discover why this is turned on. +--- + src/CMakeLists.txt | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt +index bca2cc094..73a8345ed 100644 +--- a/src/CMakeLists.txt ++++ b/src/CMakeLists.txt +@@ -361,9 +361,11 @@ else() + utils/mpvplayer.h + ) + target_link_libraries(tokodon_static PUBLIC MpvQt::MpvQt) +- target_compile_options(tokodon_static PRIVATE -fexceptions) + endif() + ++# NOTE: Needed for MPV, but also for blurhash.cpp. We can look into making this more selective lter. ++target_compile_options(tokodon_static PRIVATE -fexceptions) ++ + if (USE_QTWEBVIEW) + qt_target_qml_sources(tokodon_static + QML_FILES +-- +GitLab + diff --git a/net-im/tokodon/metadata.xml b/net-im/tokodon/metadata.xml index 3eddf8899b4bf..0f8aab73a8f4c 100644 --- a/net-im/tokodon/metadata.xml +++ b/net-im/tokodon/metadata.xml @@ -10,6 +10,7 @@ network/tokodon + Use media-libs/mpvqt instead of dev-qt/qtmultimedia for video playback (default) Use dev-qt/qtwebengine for built-in authentication page (default is external browser) diff --git a/net-im/tokodon/tokodon-24.05.2-r1.ebuild b/net-im/tokodon/tokodon-24.05.2-r2.ebuild similarity index 88% rename from net-im/tokodon/tokodon-24.05.2-r1.ebuild rename to net-im/tokodon/tokodon-24.05.2-r2.ebuild index b4c6bd8d52d9e..2bb862164ec8d 100644 --- a/net-im/tokodon/tokodon-24.05.2-r1.ebuild +++ b/net-im/tokodon/tokodon-24.05.2-r2.ebuild @@ -14,7 +14,7 @@ HOMEPAGE="https://apps.kde.org/tokodon/" LICENSE="CC-BY-SA-4.0 GPL-2+ GPL-3+ || ( LGPL-2.1+ LGPL-3+ ) MIT" SLOT="0" KEYWORDS="~amd64 ~arm64" -IUSE="webengine" +IUSE="+mpv webengine" # TODO: Add kunifiedpush support once packaged (cd01eb31d1ec298d4c1e10d25a0781d799161bfc) DEPEND=" @@ -37,7 +37,8 @@ DEPEND=" >=kde-frameworks/kwindowsystem-${KFMIN}:6 >=kde-frameworks/purpose-${KFMIN}:6 >=kde-frameworks/qqc2-desktop-style-${KFMIN}:6 - media-libs/mpvqt + mpv? ( media-libs/mpvqt ) + !mpv? ( >=dev-qt/qtmultimedia-${QTMIN}:6[qml] ) webengine? ( >=dev-qt/qtwebview-${QTMIN}:6 ) " RDEPEND="${DEPEND} @@ -46,9 +47,11 @@ RDEPEND="${DEPEND} " BDEPEND="virtual/pkgconfig" +PATCHES=( "${FILESDIR}/${P}-enable-exceptions.patch" ) # bug 935363 + src_configure() { local mycmakeargs=( - -DUSE_QTMULTIMEDIA=OFF # bug 935363 + -DUSE_QTMULTIMEDIA=$(usex !mpv) $(cmake_use_find_package webengine Qt6WebView) # "only makes sense on mobile" )