From: yaydn@protonmail.com Subject: Re: UPDATE: moonlight-qt-6.1.0 To: Rafael Sadowski Cc: "ports@openbsd.org" Date: Sun, 20 Jul 2025 14:14:37 +0000 På fredag 18. juli 2025 kl. 10:49, Rafael Sadowski skrev: > Simple update moonlight-qt-6.1.0. Tested on amd64. OK? > > Cheers Rafael > Also tested on current/amd64. cd /usr/ports/ ; patch -l -p1 -E < /tmp/moonlight-qt-6.1.0.patch cd /usr/ports/games/moonlight-qt/ ; make update clean && make distclean Compiled and fails natively in sway, but runs fine in Xwayland: moonlight --platform xcb Thanks. Otherwise, ok. Happy porting and well wishes. > diff --git a/games/moonlight-qt/Makefile b/games/moonlight-qt/Makefile > index 8e76a2d3740..81ff31cef21 100644 > --- a/games/moonlight-qt/Makefile > +++ b/games/moonlight-qt/Makefile > @@ -1,6 +1,6 @@ > COMMENT = open-source nvidia gamestream client > > -V = 5.0.1 > +V = 6.1.0 > PKGNAME = moonlight-qt-${V} > > DISTNAME = MoonlightSrc-${V} > @@ -13,13 +13,14 @@ HOMEPAGE = https://moonlight-stream.org > # GPLv3 > PERMIT_PACKAGE = Yes > > -WANTLIB += ${COMPILER_LIBCXX} EGL GL Qt5Core Qt5Gui Qt5Network > -WANTLIB += Qt5Qml Qt5QmlModels Qt5Quick Qt5QuickControls2 Qt5Svg > -WANTLIB += Qt5Widgets SDL2 SDL2_ttf X11 avcodec avutil c crypto > -WANTLIB += m opus ssl wayland-client > +WANTLIB += ${COMPILER_LIBCXX} EGL GL Qt6Core Qt6Gui Qt6Network > +WANTLIB += Qt6OpenGL Qt6Qml Qt6QmlMeta Qt6QmlModels Qt6QmlWorkerScript > +WANTLIB += Qt6Quick Qt6QuickControls2 Qt6Svg SDL2 SDL2_ttf X11 > +WANTLIB += avcodec avutil c crypto m opus placebo ssl swscale > +WANTLIB += va va-x11 wayland-client > > MODULES = devel/qmake \ > - x11/qt5 > + x11/qt6 > > MODQMAKE_ARGS += CONFIG+='disable-libvdpau disable-libdrm' > > @@ -30,14 +31,14 @@ RUN_DEPENDS = x11/gtk+4,-guic \ > # headers but does not actually use them because USE_MBEDTLS isn't defined. > BUILD_DEPENDS = security/polarssl > > -LIB_DEPENDS = graphics/ffmpeg \ > +LIB_DEPENDS = audio/opus \ > devel/sdl2 \ > devel/sdl2-ttf \ > - audio/opus \ > + graphics/ffmpeg \ > + graphics/libplacebo \ > wayland/wayland \ > - x11/qt5/qtsvg \ > - x11/qt5/qtquickcontrols2 \ > - x11/qt5/qtdeclarative > + x11/qt6/qtdeclarative \ > + x11/qt6/qtsvg > > WRKDIST = ${WRKDIR} > > diff --git a/games/moonlight-qt/distinfo b/games/moonlight-qt/distinfo > index 7f082b0fe3a..0680a35e37c 100644 > --- a/games/moonlight-qt/distinfo > +++ b/games/moonlight-qt/distinfo > @@ -1,2 +1,2 @@ > -SHA256 (MoonlightSrc-5.0.1.tar.gz) = kB+HUIn8WySJy0W1oz8AZJ92hVXnYL3V37qooFyuvJg= > -SIZE (MoonlightSrc-5.0.1.tar.gz) = 79820559 > +SHA256 (MoonlightSrc-6.1.0.tar.gz) = aWzEcKYuLy6bd3OdQAs4nnV4yVEDg8CGFAB8kr5J1bA= > +SIZE (MoonlightSrc-6.1.0.tar.gz) = 85936443 > diff --git a/games/moonlight-qt/patches/patch-app_backend_nvcomputer_cpp b/games/moonlight-qt/patches/patch-app_backend_nvcomputer_cpp > deleted file mode 100644 > index b07a7ff5ee5..00000000000 > --- a/games/moonlight-qt/patches/patch-app_backend_nvcomputer_cpp > +++ /dev/null > @@ -1,14 +0,0 @@ > -on my computer, addr.prefixLength() returns -1 although > -my network interface is correctly configured > - > -Index: app/backend/nvcomputer.cpp > ---- app/backend/nvcomputer.cpp.orig > -+++ app/backend/nvcomputer.cpp > -@@ -422,7 +422,6 @@ NvComputer::ReachabilityType NvComputer::getActiveAddr > - } > - > - // Didn't meet any of our VPN heuristics. Let's see if it's on-link. > -- Q_ASSERT(addr.prefixLength() >= 0); > > - if (addr.prefixLength() >= 0 && s.localAddress().isInSubnet(addr.ip(), addr.prefixLength())) { > > - return ReachabilityType::RI_LAN; > - } Postscript: Looks like kf5 might get sent to the attic soon. Non-kde qt5 is still somewhat supported upstream. https://mail.kde.org/pipermail/kde-devel/2025-June/003742.html Post-Postscript: Error in native sway if any use: $ moonlight 00:00:00 - SDL Info (0): Compiled with SDL 2.32.6 00:00:00 - SDL Info (0): Running with SDL 2.32.6 00:00:00 - Qt Info: Successfully loaded translation for "nb_NO" 00:00:00 - SDL Info (0): Detected Wayland 00:00:00 - Qt Warning: QGuiApplication::setDesktopFileName: the specified desktop file name ends with .desktop. For compatibility reasons, the .desktop suffix will be removed. Please specify a desktop file name without .desktop suffix 00:00:00 - Qt Warning: EGL not available 00:00:00 - Qt Warning: qrc:/gui/main.qml:13:1: QML ApplicationWindow: ToolTip must be attached to an Item 00:00:00 - Qt Info: Found "gamecontrollerdb.txt" at ":/data/gamecontrollerdb.txt" 00:00:00 - SDL Warn (0): 0 new mappings found in gamecontrollerdb.txt. Is it corrupt? 00:00:00 - SDL Error (0): SDL_InitSubSystem(SDL_INIT_VIDEO) failed: wayland not available (process:2496): GLib-CRITICAL **: 16:01:37.005: g_main_context_pop_thread_default: assertion 'stack != NULL' failed 00:00:00 - Qt Fatal: ASSERT: "!monitorRefreshRates.isEmpty()" in file /usr/ports/pobj/moonlight-qt-6.1.0/app/backend/systemproperties.cpp, line 75 Abort trap (core dumped) -- Hope this is useful. Have a good day!