Subject: Re: Wine & NetBSD?
To: Frederick Bruckman <fredb@immanent.net>
From: Bang Jun-Young <junyoung@mogua.com>
List: port-i386
Date: 01/26/2002 08:57:43
[CC'ed to port-i386, the only platform Wine is known to run on so far,
and this thread is not relevant to the kernel any more]

On Fri, Jan 25, 2002 at 10:06:46AM -0600, Frederick Bruckman wrote:
> On 24 Jan 2002, Mario Kemper wrote:
> 
> > Bang Jun-Young <junyoung@mogua.com> writes:
> >
> > > That's not true any more. I have resolved the problem by applying a
> > > workaround for Solaris. Now you can compile and run Wine out of
> > > the box as in Linux.
> > >
> > I tried with the cvs version and had several compilation problems.
> > After i got through, i couldn't run anything. Is there a specific
> > version that really runs out of the box or am i missing something
> > here?

I forgot to note that you need a little config tweak to make Wine
really work. ;-) Here is the one I'm using:

#!/bin/sh
# Script to build Wine on NetBSD
P=`date +%Y%m%H%M`
MAKE=make
LD_RUN_PATH=/usr/X11R6/lib
export LD_RUN_PATH

#X_LIBS="-Wl,-rpath,/usr/X11R6/lib" \
LIBS="-lc" \
CFLAGS="-O2" \
./configure --prefix=/usr/X11R6 --without-curses > configure.log.$P 2>&1
$MAKE depend > $MAKE.depend.log.$P 2>&1
$MAKE > $MAKE.log.$P 2>&1

> Here are the patches I'm using to build wine on 1.5.3_ALPHA, generated
> against the Wine-20020122 tag. You'll need a fairly current 1.5.3_ALPHA
> which has the crt* fixes. Even then, there's no support in wine for any
> portable threading systems, so you can only run command line apps (but
> no dos apps), and simple apps that don't try to spawn a shell. I've
> successfully run "Mirror.exe", "Rar.exe", "SmartPAR.exe", "UnRAR.exe",
> "ydec.exe", as well as wine's own "winemine".

Wine requires clone(2) to run apps, but I haven't submitted it to
the releng since I don't have a machine that is running 1.5.x.
Without someone else's help, this is unlikely to be done before
1.5.3 is tagged off.

> 
> To build and install, under a Bourne-style shell:
> 
> 	autoconf
> 	CPPFLAGS="-I/usr/pkg/include" CFLAGS="-I/usr/pkg/include" \
> 	LIBS="-L/usr/pkg/lib" ./configure  --without-reentrant-x
> 	export LD_RUN_PATH=/usr/X11R6/lib:/usr/pkg/lib:/usr/local/lib
> 	gmake depend && gmake
> 	gmake uninstall && gmake install

I think --without-reentrant-x isn't necessary here. Plus, you can
use our make to build Wine.

> 
> This doesn't install all the programs. To install "winemine", e.g.
> 
> 	cd programs/winemine
> 	gmake uninstall && gmake install
> 
> Frederick

And the below patches are all included in the mainline, so you
don't have to apply them against the source any more.

> Index: configure.in
[snip]
>    fi

Jun-Young

-- 
Bang Jun-Young <junyoung@mogua.com>