Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] wine: Use MinGW to build WinPE DLLs
@ 2021-01-05  4:38 aeadio
  2021-01-05  4:44 ` [PR REVIEW] " ericonr
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: aeadio @ 2021-01-05  4:38 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 901 bytes --]

There is a new pull request by aeadio against master on the void-packages repository

https://github.com/aeadio/void-packages wine-mingw
https://github.com/void-linux/void-packages/pull/27678

wine: Use MinGW to build WinPE DLLs
As of 5.x, Wine can now build DLLs in native WinPE format if the MinGW cross compiler is present. This is needed for some newer games to pass DRM/anti-cheat checks that validate the integrity of loaded system libraries.

See:

https://www.winehq.org/announce/5.0
https://bugs.winehq.org/show_bug.cgi?id=45349

I've split this out into a build option that's enabled by default.

This was built and tested on an x86_64 host, with 32-bit Wine tested as well. Games which would not launch on Void's Wine build are now functioning with this change (namely, World of Warcraft).

A patch file from https://github.com/void-linux/void-packages/pull/27678.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-wine-mingw-27678.patch --]
[-- Type: text/x-diff, Size: 1315 bytes --]

From 984065a35893749fbeff41cf0b61961153f9829f Mon Sep 17 00:00:00 2001
From: Anthony Eadicicco <a@aead.io>
Date: Mon, 4 Jan 2021 23:28:45 -0500
Subject: [PATCH] wine: Use MinGW to build WinPE DLLs

---
 srcpkgs/wine/template | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/srcpkgs/wine/template b/srcpkgs/wine/template
index 0e6629f4c3e..83b1be78b55 100644
--- a/srcpkgs/wine/template
+++ b/srcpkgs/wine/template
@@ -1,7 +1,7 @@
 # Template file for 'wine'
 pkgname=wine
 version=6.0rc5
-revision=1
+revision=2
 wrksrc=wine-${version/r/-r}
 build_style=gnu-configure
 configure_args="--bindir=/usr/libexec/wine"
@@ -12,6 +12,10 @@ homepage="http://www.winehq.org/"
 distfiles="https://dl.winehq.org/wine/source/${version%r*}/wine-${version/r/-r}.tar.xz"
 checksum=f1f10a0aef4dcc9cf4ec67f0828fc1f7f364e2e8e7c2f027c253c8e2004bf451
 
+build_options="mingw"
+build_options_default="mingw"
+desc_option_mingw="Use the MinGW cross compiler to build WinPE DLLs"
+
 lib32mode=full
 archs="i686* x86_64*"
 
@@ -52,6 +56,10 @@ if [ "$XBPS_LIBC" = "glibc" ]; then
 	hostmakedepends+=" prelink"
 fi
 
+if [ "${build_option_mingw}" ]; then
+	hostmakedepends+=" cross-${XBPS_TARGET_MACHINE}-w64-mingw32"
+fi
+
 _wine_libexec="/usr/libexec/wine"
 nopie_files="${_wine_libexec}/wine${_wine_suffix}"
 

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2021-01-09 19:31 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-05  4:38 [PR PATCH] wine: Use MinGW to build WinPE DLLs aeadio
2021-01-05  4:44 ` [PR REVIEW] " ericonr
2021-01-05  4:50 ` ericonr
2021-01-05  4:54 ` [PR PATCH] [Updated] " aeadio
2021-01-06  3:42 ` ericonr
2021-01-09  8:06 ` [PR PATCH] [Closed]: " Hoshpak
2021-01-09 18:55 ` aeadio
2021-01-09 19:24 ` Hoshpak
2021-01-09 19:31 ` aeadio

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).