



Code: Select all
#!/bin/sh
die()
{ echo "ERROR: $*" 1>&2
exit 1
}
condPause()
{
echo "$1"
# read wait
}
#################
skipCfg=
suffix=
while [ x"$1" != x"" ] ; do
case "$1" in
--skipCfg )
skipCfg=1
;;
-* | "" )
die "Usage: $0 SUFFIX"
;;
* )
suffix="$1"
;;
esac
shift
done
if [ x"$suffix" = x"" ] ; then
die "Missing suffix argument"
fi
#################
PATH="/usr/lib/mingw64-toolchain/bin:$PATH"
base="$(dirname "$0")"
( b="b64-$suffix"
d="$base/$b"
CROSSCC="x86_64-w64-mingw32-gcc"
export CROSSCC
if [ ! -d "$d" ] ; then
mkdir "$d" || die "mkdir $d"
fi
cd "$d" || die "cd $$d"
statFile=errorCode.$$
if [ x"$skipCfg" = x"1" ] ; then
if [ ! -r "config.status" ] ; then
die "$d has not been created/configured"
fi
else
#condPause "Press enter to configure $d"
( ../wine-src/configure --enable-win64 2>&1
echo "$?" > "$statFile" ) | tee "../${b}.cfgOut"
if [ x"$(cat "$statFile")" != x"0" ] ; then
die "configure in $d"
fi
fi
condPause "Press enter to build $d"
( make -j6 2>&1 ; echo "$?" > "$statFile" ) | tee "../${b}.bldOut"
if [ x"$(cat "$statFile")" != x"0" ] ; then
die "make in $d"
fi
) || die "build 64"
( b="b32-$suffix"
d="$base/$b"
CROSSCC="i686-w64-mingw32-gcc"
export CROSSCC
if [ ! -d "$d" ] ; then
mkdir "$d" || die "mkdir $d"
fi
cd "$d" || die "cd $d"
statFile=errorCode.$$
if [ x"$skipCfg" = x"1" ] ; then
if [ ! -r "config.status" ] ; then
die "$d has not been created/configured"
fi
else
condPause "Press enter to configure $d"
( ../wine-src/configure --with-wine64=../b64-$suffix 2>&1
echo "$?" > "$statFile" ) | tee "../${b}.cfgOut"
if [ x"$(cat "$statFile")" != x"0" ] ; then
die "configure in $d"
fi
fi
condPause "Press enter to build $d"
make -j6 2>&1 | tee "../${b}.bldOut"
( make -j6 2>&1
echo "$?" > "$statFile" ) | tee "../${b}.bldOut"
if [ x"$(cat "$statFile")" != x"0" ] ; then
die "make in $d"
fi
) || die "build 32"

I would consider contacting them regarding the wine version in question and the outdated ebuild that is depreciated. The contact details are available here:To reduce the burden on main Gentoo repository, older versions of Wine
will be available only in the wine overlay. These ebuilds will still be
fully supported by the Gentoo Wine Project.
It's not, that news item was removed, I removed the overlay from repositories.xml listing, and the overlay's last commit marked it deprecated and also notes it's no longer being updated.rab0171610 wrote:In the case of the wine overlay, my understanding is that version of wine in question, while older, is still supported by the Gentoo Wine project.
The ebuilds in the wine overlay were initially said to still be supported by the project in the original notice sent out on 11-21-2017

Well done. With regard to the content of the bug report, I believe that other Blizzard games (Diablo, Starcraft) have as part of their CD check that the free space on the "CD" drive must be exactly 0, or it will not be considered a valid CD. I expect Warcraft 2 has the same requirement, so your step 6 / step 7 in the bug report seem correct to me. If Wine returns filesystem information for the filesystem containing the ISO, rather than the filesystem from inside the ISO, then it will almost certainly report free space greater than 0, causing the game to fail the test.mmogilvi wrote:For the wine/game problem I went ahead and bisected and further analyzed the underlying problem and some possible solutions, which I've written up in an upstream bug report: https://bugs.winehq.org/show_bug.cgi?id=54243.