Github messages for voidlinux
 help / color / mirror / Atom feed
From: Johnnynator <Johnnynator@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] [wip] wine: enable build for x86_64-musl
Date: Thu, 14 May 2020 00:51:41 +0200	[thread overview]
Message-ID: <20200513225141.7ne26RNrqqbgCjTYdj5z_7jKTgIbxkGAtleSjBdksrw@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-21701@inbox.vuxu.org>

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

There is an updated pull request by Johnnynator against master on the void-packages repository

https://github.com/Johnnynator/void-packages wine-musl
https://github.com/void-linux/void-packages/pull/21701

[wip] wine: enable build for x86_64-musl
mpv.exe runs fine

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

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

From f7879720ac2584a2de03eca13b9b8a8422d3f2e0 Mon Sep 17 00:00:00 2001
From: John <me@johnnynator.dev>
Date: Wed, 6 May 2020 20:06:03 +0200
Subject: [PATCH] wine: enable build for x86_64-musl

---
 srcpkgs/wine/files/wine | 14 +++++++++-----
 srcpkgs/wine/template   |  8 ++++++--
 2 files changed, 15 insertions(+), 7 deletions(-)

diff --git a/srcpkgs/wine/files/wine b/srcpkgs/wine/files/wine
index bdcbbc00e98..0002320ccf8 100644
--- a/srcpkgs/wine/files/wine
+++ b/srcpkgs/wine/files/wine
@@ -6,12 +6,16 @@ wine32=/usr/libexec/wine/wine
 wine64=/usr/libexec/wine/wine64
 
 wine32_hint () {
-    echo "it looks like wine-32bit is missing, you should install it."
-    if uname -a | grep "x86_64" > /dev/null && xbps-query -l | grep void-repo-multilib > /dev/null; then
-        echo "the multilib repository needs to be enabled first.  as root, please"
-        echo "execute \"xbps-install -S void-repo-multilib && xbps-install -S wine-32bit\""
+    if [ "$(xbps-uhelper arch)" = "x86_64-musl" ]; then
+        echo "wine support under musl is limited to 64bit"
     else
-        echo "as root, please execute \"xbps-install -S wine-32bit\""
+        echo "it looks like wine-32bit is missing, you should install it."
+        if uname -a | grep "x86_64" > /dev/null && xbps-query -l | grep void-repo-multilib > /dev/null; then
+            echo "the multilib repository needs to be enabled first.  as root, please"
+            echo "execute \"xbps-install -S void-repo-multilib && xbps-install -S wine-32bit\""
+        else
+            echo "as root, please execute \"xbps-install -S wine-32bit\""
+        fi
     fi
 }
 
diff --git a/srcpkgs/wine/template b/srcpkgs/wine/template
index 7da0941a90c..ef8f3aaf14b 100644
--- a/srcpkgs/wine/template
+++ b/srcpkgs/wine/template
@@ -12,9 +12,9 @@ distfiles="https://dl.winehq.org/wine/source/${version%%.*}.x/wine-${version}.ta
 checksum=cbad04c261437abec16945cd7ca83c77950f3e03099d7e3f883a6ea7293233cf
 
 lib32mode=full
-archs="i686 x86_64"
+archs="i686 x86_64*"
 
-hostmakedepends="pkg-config flex prelink gettext"
+hostmakedepends="pkg-config flex gettext"
 makedepends="gettext-devel lcms2-devel zlib-devel ncurses-devel
  glu-devel libSM-devel libXext-devel libX11-devel libXpm-devel
  libXinerama-devel libXcomposite-devel libXmu-devel libXxf86vm-devel
@@ -40,6 +40,10 @@ case $XBPS_TARGET_MACHINE in
 		;;
 esac
 
+if [ "$XBPS_LIBC" = "glibc" ]; then
+	hostmakedepends+=" prelink"
+fi
+
 _wine_libexec="/usr/libexec/wine"
 nopie_files="${_wine_libexec}/wine${_wine_suffix}"
 

  parent reply	other threads:[~2020-05-13 22:51 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-06 18:06 [PR PATCH] " Johnnynator
2020-05-06 21:51 ` [wip] " Johnnynator
2020-05-13 22:51 ` Johnnynator [this message]
2020-05-13 22:53 ` Johnnynator
2020-05-13 22:54 ` Johnnynator
2020-05-14  8:43 ` Hoshpak
2020-05-14 12:55 ` [PR PATCH] [Merged]: " Johnnynator

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200513225141.7ne26RNrqqbgCjTYdj5z_7jKTgIbxkGAtleSjBdksrw@z \
    --to=johnnynator@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).