git: 3f914243d817 - main - emulators/wine-devel: Add a note on Poudriere in the WoW case

From: Gerald Pfeifer <gerald_at_FreeBSD.org>
Date: Sat, 12 Mar 2022 09:12:39 UTC
The branch main has been updated by gerald:

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

commit 3f914243d8179e0d1606c7d00ee2eb3498d0bb62
Author:     Gerald Pfeifer <gerald@FreeBSD.org>
AuthorDate: 2022-03-12 09:10:49 +0000
Commit:     Gerald Pfeifer <gerald@FreeBSD.org>
CommitDate: 2022-03-12 09:10:49 +0000

    emulators/wine-devel: Add a note on Poudriere in the WoW case
    
    This forward ports commit 9dc3d307de26ebb3ee31859fed8cc9dbc779dff5
    from emulators/wine.
    
    PR:             260407
    Reported by:    Zane C. Bowers-Hadley <vvelox@vvelox.net>
    Approved by:    maintainer
---
 emulators/wine-devel/files/wine-wow64.sh | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/emulators/wine-devel/files/wine-wow64.sh b/emulators/wine-devel/files/wine-wow64.sh
index d83d10db698e..796f26787c8c 100644
--- a/emulators/wine-devel/files/wine-wow64.sh
+++ b/emulators/wine-devel/files/wine-wow64.sh
@@ -9,7 +9,17 @@ I386_ROOT="${WINE_i386_ROOT:-$HOME/.i386-wine-pkg}"
 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-devel mesa-dri"
+  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