git: 9dc3d307de26 - main - emulators/wine: Add a note on Poudriere in the WoW case

From: Gerald Pfeifer <gerald_at_FreeBSD.org>
Date: Tue, 01 Feb 2022 07:32:51 UTC
The branch main has been updated by gerald:

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

commit 9dc3d307de26ebb3ee31859fed8cc9dbc779dff5
Author:     Gerald Pfeifer <gerald@FreeBSD.org>
AuthorDate: 2022-02-01 07:18:04 +0000
Commit:     Gerald Pfeifer <gerald@FreeBSD.org>
CommitDate: 2022-02-01 07:32:13 +0000

    emulators/wine: Add a note on Poudriere in the WoW case
    
    PR:             260407
    Reported by:    Zane C. Bowers-Hadley <vvelox@vvelox.net>
---
 emulators/wine/files/wine-wow64.sh | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/emulators/wine/files/wine-wow64.sh b/emulators/wine/files/wine-wow64.sh
index 2ec4cc31703e..796f26787c8c 100644
--- a/emulators/wine/files/wine-wow64.sh
+++ b/emulators/wine/files/wine-wow64.sh
@@ -10,6 +10,16 @@ if [ ! -f "$I386_ROOT/$PREFIX/bin/wine" ]
 then
   printf "%s doesn't exist!\n\n" "$I386_ROOT/$PREFIX/bin/wine"
   printf "Try installing 32-bit Wine with\n\t%s\n" "$PREFIX/share/wine/pkg32.sh install wine mesa-dri"
+  ABI=$(pkg config ABI | sed s/amd64/i386/)
+  FREEBSD_VERSION_MAJOR=`uname -r | sed "s/\..*//"`
+  cat <<- HERE
+
+	If using Poudriere, please make sure your repo is setup to use ${ABI}
+	and create symlinks for
+	  FreeBSD:$FREEBSD_VERSION_MAJOR:amd64 and
+	  FreeBSD:$FREEBSD_VERSION_MAJOR:i386
+	to the relevant output directories. See pkg.conf(5) for more info.
+HERE
   exit 1
 fi