commit: a589e2ced7b861590c24f89cee0ad2d8b32e0c7a Author: Maciej Barć <xgqt <AT> gentoo <DOT> org> AuthorDate: Thu Jan 1 16:18:54 2026 +0000 Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org> CommitDate: Thu Jan 1 17:23:05 2026 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a589e2ce
games-emulation/melonds: patch no-wayland build Closes: https://bugs.gentoo.org/968234 Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org> .../files/melonds-1.1-no-wayland-build.patch | 31 ++++++++++++++++++++++ .../{melonds-1.1.ebuild => melonds-1.1-r1.ebuild} | 4 ++- 2 files changed, 34 insertions(+), 1 deletion(-) diff --git a/games-emulation/melonds/files/melonds-1.1-no-wayland-build.patch b/games-emulation/melonds/files/melonds-1.1-no-wayland-build.patch new file mode 100644 index 000000000000..6d20c99f92bc --- /dev/null +++ b/games-emulation/melonds/files/melonds-1.1-no-wayland-build.patch @@ -0,0 +1,31 @@ +From 3a3388c4c50e8735af125c1af4d89e457f5e9035 Mon Sep 17 00:00:00 2001 +From: plenfulcleadent <[email protected]> +Date: Sun, 21 Dec 2025 23:33:02 +0100 +Subject: [PATCH] fix building with disable wayland (#2513) + +QWaylandApplication definition doesn't exist on wayland disabled qt +binaries +--- + src/frontend/qt_sdl/Screen.cpp | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/src/frontend/qt_sdl/Screen.cpp b/src/frontend/qt_sdl/Screen.cpp +index 6d58fff981..3126ea8fde 100755 +--- a/src/frontend/qt_sdl/Screen.cpp ++++ b/src/frontend/qt_sdl/Screen.cpp +@@ -1299,6 +1299,7 @@ std::optional<WindowInfo> ScreenPanelGL::getWindowInfo() + wi.display_connection = x11->display(); + wi.window_handle = reinterpret_cast<void*>(winId()); + } ++ #if defined(WAYLAND_ENABLED) + else if (platform_name == QStringLiteral("wayland")) + { + wi.type = WindowInfo::Type::Wayland; +@@ -1306,6 +1307,7 @@ std::optional<WindowInfo> ScreenPanelGL::getWindowInfo() + wi.display_connection = wl->display(); + wi.window_handle = reinterpret_cast<void*>(winId()); + } ++ #endif + #else + QPlatformNativeInterface* pni = QGuiApplication::platformNativeInterface(); + if (platform_name == QStringLiteral("xcb")) diff --git a/games-emulation/melonds/melonds-1.1.ebuild b/games-emulation/melonds/melonds-1.1-r1.ebuild similarity index 95% rename from games-emulation/melonds/melonds-1.1.ebuild rename to games-emulation/melonds/melonds-1.1-r1.ebuild index 9d7f554dd86c..ad4d275eb6ba 100644 --- a/games-emulation/melonds/melonds-1.1.ebuild +++ b/games-emulation/melonds/melonds-1.1-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 2019-2025 Gentoo Authors +# Copyright 2019-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -53,6 +53,8 @@ BDEPEND=" ) " +PATCHES=( "${FILESDIR}/${PN}-1.1-no-wayland-build.patch" ) + # Used for JIT recompiler. QA_EXECSTACK="usr/bin/melonDS"
