From nobody Wed Jul 24 16:27:04 2024
X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1])
	by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WTfYN46tfz5SCs4;
	Wed, 24 Jul 2024 16:27:04 +0000 (UTC)
	(envelope-from git@FreeBSD.org)
Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3])
	(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
	 client-signature RSA-PSS (4096 bits) client-digest SHA256)
	(Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK))
	by mx1.freebsd.org (Postfix) with ESMTPS id 4WTfYN3T85z47MC;
	Wed, 24 Jul 2024 16:27:04 +0000 (UTC)
	(envelope-from git@FreeBSD.org)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim;
	t=1721838424;
	h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
	 to:to:cc:mime-version:mime-version:content-type:content-type:
	 content-transfer-encoding:content-transfer-encoding;
	bh=QcypwHST2G/0yLJvhPH2WsHfMFu8sKRqVXkxuDTQksw=;
	b=kn6KgoFvS/A/03MkY40oownOMRq2YbW8W0XDXNKsConYvFZT2r+vHI+bbLBAXlt+D8w/xW
	ml1hFWpFwNRpi1hu8zTdHV6Gm67FWAQ8lSbOJNOys/ilwD6Dp5hJOx7WenuH9etOHkZ2y9
	39vuxjTzg0KVRiBjZPjcumGab6d1NErrD01HBl0A9vwOkQYJIp1p8AYY7Px6SzSx69X0TQ
	lGWaBpxBj+E54q5w6qXte4rxvl7gO8qqwzUTcOekXKITLXVTrWSFsgeq1CvZ5NjXgcZwCQ
	zcLrNRkMX2axFAAurjKTH9H+XBfVOk03yjyvmhubF7uXyfwUnr0kzBU7w3FDtQ==
ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1721838424; a=rsa-sha256; cv=none;
	b=vgCZPZ99mEMNQ7hC91hdpXbqL13H+YC0wrMY5zlEFsLnFGclDToGQ4sZa3YxOX/L77qAgg
	REFdSgKJExm6KRDIWYRr+SDTavAEtSOhuLjALwan6s8SCe7ZWTskgabwR/aQ/Wf3P+eoo3
	ZbJpPlo1rYfhp/IPQYqsmpTOl+ZMf/jNYPjSCAjJvkfh6cbdY7e0mfYIWsrLb1eQUro3HD
	0rq5TMj9nxp7jwcxfpUeEWijmiij7zm5jvuCCZctTUJnfiUkz937JZ+hkiYKlWRO4KRqWZ
	WFKywjGay1EI9dyVdcvPtJDc37PfazHdHFPNu9iJ/NNEUU1BIhb1dS8DIbECsA==
ARC-Authentication-Results: i=1;
	mx1.freebsd.org;
	none
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org;
	s=dkim; t=1721838424;
	h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
	 to:to:cc:mime-version:mime-version:content-type:content-type:
	 content-transfer-encoding:content-transfer-encoding;
	bh=QcypwHST2G/0yLJvhPH2WsHfMFu8sKRqVXkxuDTQksw=;
	b=qmPQwNOL1mVToSI9xHm5yhwfX030sQzv6qVbXCRkC1Z4WrQVrgnJawYAG/Is3jtG+S0DMT
	/Lo0wX+snd43GFfKbFqlDsfjmrYKq7yG4wurbViPFvZ/5x3RCVPXD2omaZh1pjIQK7z5ui
	V4Rzl1UR0tqW8Fh2FAzcDTYQ3gmyDyOIEis/r4Worx9QepENoVVhn6ZwPfTdCXNlvjHiCY
	Bwtq/3vMTavtSnK+SuV3vmEyR8p11k/w6H5w5nhmqZUERyPO97o8xd0bYGfMfDGj4B46Ck
	cj3NpBKHMeRdZAvefGddr+DkH7lVD2snteVyMZy+NliF8PE+Q3CcCXGzZjNS5Q==
Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5])
	(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)
	(Client did not present a certificate)
	by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4WTfYN2yVNzJdF;
	Wed, 24 Jul 2024 16:27:04 +0000 (UTC)
	(envelope-from git@FreeBSD.org)
Received: from gitrepo.freebsd.org ([127.0.1.44])
	by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 46OGR4f3071586;
	Wed, 24 Jul 2024 16:27:04 GMT
	(envelope-from git@gitrepo.freebsd.org)
Received: (from git@localhost)
	by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 46OGR4KD071583;
	Wed, 24 Jul 2024 16:27:04 GMT
	(envelope-from git)
Date: Wed, 24 Jul 2024 16:27:04 GMT
Message-Id: <202407241627.46OGR4KD071583@gitrepo.freebsd.org>
To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org,
        dev-commits-ports-main@FreeBSD.org
From: Vladimir Druzenko <vvd@FreeBSD.org>
Subject: git: 54b259414cb8 - main - games/moonlight-qt: Build fails
  on i386: cannot initialize a member subobject of type 'VkSurfaceKHR'
  (aka 'unsigned long long') with an rvalue of type 'std::nullptr_t'
List-Id: Commit messages for all branches of the ports repository <dev-commits-ports-all.freebsd.org>
List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all
List-Help: <mailto:dev-commits-ports-all+help@freebsd.org>
List-Post: <mailto:dev-commits-ports-all@freebsd.org>
List-Subscribe: <mailto:dev-commits-ports-all+subscribe@freebsd.org>
List-Unsubscribe: <mailto:dev-commits-ports-all+unsubscribe@freebsd.org>
X-BeenThere: dev-commits-ports-all@freebsd.org
Sender: owner-dev-commits-ports-all@FreeBSD.org
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Git-Committer: vvd
X-Git-Repository: ports
X-Git-Refname: refs/heads/main
X-Git-Reftype: branch
X-Git-Commit: 54b259414cb8dc56bacff02399b3668bf1d03f9b
Auto-Submitted: auto-generated

The branch main has been updated by vvd:

URL: https://cgit.FreeBSD.org/ports/commit/?id=54b259414cb8dc56bacff02399b3668bf1d03f9b

commit 54b259414cb8dc56bacff02399b3668bf1d03f9b
Author:     Armin Zhu <lisp_25689@163.com>
AuthorDate: 2024-07-24 16:24:24 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2024-07-24 16:24:24 +0000

    games/moonlight-qt: Build fails on i386: cannot initialize a member subobject of type 'VkSurfaceKHR' (aka 'unsigned long long') with an rvalue of type 'std::nullptr_t'
    
    In file included from /wrkdirs/usr/ports/games/moonlight-qt/work/moonlight-qt-6.0.1/app/streaming/video/ffmpeg.cpp:48:
    /wrkdirs/usr/ports/games/moonlight-qt/work/moonlight-qt-6.0.1/app/streaming/video/ffmpeg-renderers/plvk.h:57:32: error: cannot initialize a member subobject of type 'VkSurfaceKHR' (aka 'unsigned long long') with an rvalue of type 'std::nullptr_t'
       57 |     VkSurfaceKHR m_VkSurface = nullptr;
          |                                ^~~~~~~
    
    Upstream bug-report:
    https://github.com/moonlight-stream/moonlight-qt/issues/1367
    
    PR:     280425
    MFH:    2024Q3
---
 .../patch-app_streaming_video_ffmpeg-renderers_plvk.h      | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/games/moonlight-qt/files/patch-app_streaming_video_ffmpeg-renderers_plvk.h b/games/moonlight-qt/files/patch-app_streaming_video_ffmpeg-renderers_plvk.h
new file mode 100644
index 000000000000..60440d150c4a
--- /dev/null
+++ b/games/moonlight-qt/files/patch-app_streaming_video_ffmpeg-renderers_plvk.h
@@ -0,0 +1,14 @@
+--- app/streaming/video/ffmpeg-renderers/plvk.h.orig	2024-07-23 05:26:28 UTC
++++ app/streaming/video/ffmpeg-renderers/plvk.h
+@@ -54,7 +54,11 @@ class PlVkRenderer : public IFFmpegRenderer { (private
+     // The libplacebo rendering state
+     pl_log m_Log = nullptr;
+     pl_vk_inst m_PlVkInstance = nullptr;
++#if VK_USE_64_BIT_PTR_DEFINES == 1
+     VkSurfaceKHR m_VkSurface = nullptr;
++#else
++    VkSurfaceKHR m_VkSurface = 0;
++#endif
+     pl_vulkan m_Vulkan = nullptr;
+     pl_swapchain m_Swapchain = nullptr;
+     pl_renderer m_Renderer = nullptr;