Subject: Re: Updated Wine pkgsrc entry (finally) available
To: Bang Jun-Young <junyoung@mogua.com>
From: Johnny Lam <jlam@jgrind.org>
List: tech-pkg
Date: 01/31/2002 07:42:18
On Fri, Feb 01, 2002 at 12:34:21AM +0900, Bang Jun-Young wrote:
> On Thu, Jan 31, 2002 at 06:23:36AM -0800, Johnny Lam wrote:
> > I've fixed this package to install properly in ${LOCALBASE} (/usr/pkg)
> > instead.
> 
> Installation was successful on my machine. Thanks for your work.

That sounds good.  Were you able to test whether the changes to remove
LD_RUN_PATH were correct or not, i.e. can you run Windows executables?

> > I've fixed the build and install problems with the wine-new-20020131
> > package.  My diffs are attached below.  I'm also in the process of writing
> > a wine.inst script, to be installed in ${PREFIX}/bin, that does the
> > per-user post-install setup in ${WRKSRC}/tools/wineinstall.  I'm trying to
> > figure out how to properly set up wine so I can test the package and see if
> > my changes are correct.
> 
> Sounds cool. ;-)
> 
> > +USE_GMAKE=		YES
> 
> BTW, is there any compelling reason to use gmake instead of
> ours?

I saw a bunch of build rules related to the documentation that required
gmake.  I reasoned that since they used GNU make-isms in one place, they'll
probably used them elsewhere, if not now, then in the future.

I'm having a new problem.  I can't build "regapi", the registry-editting
program for Wine that is executed by the wineinstall script.  Running
"gmake" in ${WRKSRC}/programs/regapi yields (lines wrapped for clarity):

cc -c -I. -I. -I../../include -I../../include
	-I/usr/pkgsrc/scratch/wine/work/.buildlink/include -O2
	-mcpu=pentiumpro -I/usr/pkg/share/x11-links/include -Wall
	-mpreferred-stack-boundary=2 -fPIC -DSTRICT -DNONAMELESSUNION
	-DNONAMELESSSTRUCT  -D_REENTRANT -I/usr/pkg/share/x11-links/include
	-o regapi.o regapi.c
In file included from ../../include/winsock2.h:30,
                 from ../../include/windows.h:39,
                 from regapi.c:12:
../../include/winsock.h:905: parse error before `('
../../include/winsock.h:905: parse error before `)'
../../include/winsock.h:906: parse error before `('
../../include/winsock.h:906: parse error before `)'
../../include/winsock.h:911: parse error before `('
../../include/winsock.h:911: parse error before `)'
../../include/winsock.h:912: parse error before `('
../../include/winsock.h:912: parse error before `)'
gmake: *** [regapi.o] Error 1

Do you know what might be going wrong here?

	Thanks,

	-- Johnny Lam <jlam@jgrind.org>