git: b063b15d08bf - main - emulators/wine-devel: Update to Wine 10.5

From: Gerald Pfeifer <gerald_at_FreeBSD.org>
Date: Sun, 27 Apr 2025 08:57:22 UTC
The branch main has been updated by gerald:

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

commit b063b15d08bf4bc4d6150bb63220164fa32b4fc4
Author:     Gerald Pfeifer <gerald@FreeBSD.org>
AuthorDate: 2025-04-27 08:56:31 +0000
Commit:     Gerald Pfeifer <gerald@FreeBSD.org>
CommitDate: 2025-04-27 08:56:31 +0000

    emulators/wine-devel: Update to Wine 10.5
    
    This includes the following changes:
     - Support for larger page sizes on ARM64 (which we don't enable yet).
     - Pairing support in the Bluetooth driver.
     - Vulkan H.264 decoding.
     - Various bug fixes.
    
    Include files/patch-dlls_ntdll_signal_x86_64.c, a patch of mine to fix
    a build issue, that went upstream after this snapshot.
---
 emulators/wine-devel/Makefile                      |  2 +-
 emulators/wine-devel/distinfo                      |  6 ++--
 .../files/patch-dlls_ntdll_signal_x86_64.c         | 32 ++++++++++++++++++++++
 emulators/wine-devel/pkg-plist                     |  1 +
 4 files changed, 37 insertions(+), 4 deletions(-)

diff --git a/emulators/wine-devel/Makefile b/emulators/wine-devel/Makefile
index 418350d6fb97..a3c0df7c1b40 100644
--- a/emulators/wine-devel/Makefile
+++ b/emulators/wine-devel/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	wine
-DISTVERSION=	10.4
+DISTVERSION=	10.5
 PORTEPOCH=	1
 CATEGORIES=	emulators
 MASTER_SITES=	https://dl.winehq.org/wine/source/10.x/
diff --git a/emulators/wine-devel/distinfo b/emulators/wine-devel/distinfo
index 39471cd7590b..c4e407761e2a 100644
--- a/emulators/wine-devel/distinfo
+++ b/emulators/wine-devel/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1745621306
-SHA256 (wine-10.4.tar.xz) = a09019ce5c42ba06ba91ec423d49d8f2a9a8eac4c1a9230c73e1d119639d5e92
-SIZE (wine-10.4.tar.xz) = 32326532
+TIMESTAMP = 1745652916
+SHA256 (wine-10.5.tar.xz) = c036ec1ef47674774a5f994583022e9e2eb68fe8fc18b3a8c79e685b3bec89bc
+SIZE (wine-10.5.tar.xz) = 32353760
diff --git a/emulators/wine-devel/files/patch-dlls_ntdll_signal_x86_64.c b/emulators/wine-devel/files/patch-dlls_ntdll_signal_x86_64.c
new file mode 100644
index 000000000000..662ffc968b55
--- /dev/null
+++ b/emulators/wine-devel/files/patch-dlls_ntdll_signal_x86_64.c
@@ -0,0 +1,32 @@
+--- UTC
+commit 52cb060f41e96dfd2140a32b4ef70b1098f4b449
+Author: Gerald Pfeifer <gerald@pfeifer.com>
+Date:   Sun Apr 6 23:19:45 2025 +0200
+
+    ntdll: Fix build on platforms without getauxval.
+    
+    Commit b1b5105ceb moved the following block
+    
+        #ifdef AT_HWCAP2
+                 if (getauxval( AT_HWCAP2 ) & 2) syscall_flags |= SYSCALL_HAVE_WRFSGSBASE;
+        #endif
+    
+    out of an #ifdef __linux__ block and it now causes failures on FreeBSD
+    and others which do not have getauxval.
+
+--- dlls/ntdll/unix/signal_x86_64.c
++++ dlls/ntdll/unix/signal_x86_64.c
+@@ -2504,11 +2504,11 @@ void signal_init_process(void)
+ 
+     if (cpu_info.ProcessorFeatureBits & CPU_FEATURE_XSAVE) syscall_flags |= SYSCALL_HAVE_XSAVE;
+     if (xstate_compaction_enabled) syscall_flags |= SYSCALL_HAVE_XSAVEC;
++
++#ifdef __linux__
+ #ifdef AT_HWCAP2
+     if (getauxval( AT_HWCAP2 ) & 2) syscall_flags |= SYSCALL_HAVE_WRFSGSBASE;
+ #endif
+-
+-#ifdef __linux__
+     if (wow_teb)
+     {
+         int sel;
diff --git a/emulators/wine-devel/pkg-plist b/emulators/wine-devel/pkg-plist
index 150fe2f0a3c5..90ac42601e40 100644
--- a/emulators/wine-devel/pkg-plist
+++ b/emulators/wine-devel/pkg-plist
@@ -848,6 +848,7 @@ include/wine/windows/perhist.idl
 include/wine/windows/physicalmonitorenumerationapi.h
 include/wine/windows/pktdef.h
 include/wine/windows/poppack.h
+include/wine/windows/powersetting.h
 include/wine/windows/powrprof.h
 include/wine/windows/prntvpt.h
 include/wine/windows/processthreadsapi.h