svn commit: r491573 - in head/games/moonlight-embedded: . files
Tobias Kortkamp
tobik at FreeBSD.org
Tue Jan 29 15:53:33 UTC 2019
Author: tobik
Date: Tue Jan 29 15:53:31 2019
New Revision: 491573
URL: https://svnweb.freebsd.org/changeset/ports/491573
Log:
games/moonlight-embedded: Add patch to fix runtime with GFE 3.16
Submitted by: Brian Bostwick
Added:
head/games/moonlight-embedded/files/patch-third__party_moonlight-common-c_src_ControlStream.c (contents, props changed)
Modified:
head/games/moonlight-embedded/Makefile
Modified: head/games/moonlight-embedded/Makefile
==============================================================================
--- head/games/moonlight-embedded/Makefile Tue Jan 29 15:19:46 2019 (r491572)
+++ head/games/moonlight-embedded/Makefile Tue Jan 29 15:53:31 2019 (r491573)
@@ -2,7 +2,7 @@
PORTNAME= moonlight-embedded
DISTVERSION= 2.4.7
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= games
MASTER_SITES= https://github.com/irtimmer/moonlight-embedded/releases/download/v${DISTVERSION}/
Added: head/games/moonlight-embedded/files/patch-third__party_moonlight-common-c_src_ControlStream.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/games/moonlight-embedded/files/patch-third__party_moonlight-common-c_src_ControlStream.c Tue Jan 29 15:53:31 2019 (r491573)
@@ -0,0 +1,46 @@
+From 8665d806978d2cba9c9040183a3686f4d87d402c Mon Sep 17 00:00:00 2001
+From: Cameron Gutman <aicommander at gmail.com>
+Date: Thu, 15 Nov 2018 12:55:22 -0800
+Subject: [PATCH] Don't expect responses for ENet control messages to fix GFE
+ 3.16
+
+---
+ src/ControlStream.c | 12 +-----------
+ 1 file changed, 1 insertion(+), 11 deletions(-)
+
+--- third_party/moonlight-common-c/src/ControlStream.c.orig 2018-08-11 15:28:10 UTC
++++ third_party/moonlight-common-c/src/ControlStream.c
+@@ -378,10 +378,7 @@ static int sendMessageAndForget(short ptype, short pay
+ }
+
+ static int sendMessageAndDiscardReply(short ptype, short paylen, const void* payload) {
+- // Discard the response
+ if (AppVersionQuad[0] >= 5) {
+- ENetEvent event;
+-
+ PltLockMutex(&enetMutex);
+
+ if (!sendMessageEnet(ptype, paylen, payload)) {
+@@ -389,14 +386,6 @@ static int sendMessageAndDiscardReply(short ptype, sho
+ return 0;
+ }
+
+- if (serviceEnetHost(client, &event, CONTROL_STREAM_TIMEOUT_SEC * 1000) <= 0 ||
+- event.type != ENET_EVENT_TYPE_RECEIVE) {
+- PltUnlockMutex(&enetMutex);
+- return 0;
+- }
+-
+- enet_packet_destroy(event.packet);
+-
+ PltUnlockMutex(&enetMutex);
+ }
+ else {
+@@ -406,6 +395,7 @@ static int sendMessageAndDiscardReply(short ptype, sho
+ return 0;
+ }
+
++ // Discard the response
+ reply = readNvctlPacketTcp();
+ if (reply == NULL) {
+ return 0;
More information about the svn-ports-head
mailing list