Subject: pkg/23078: net/tightvnc using wrong make under Linux
To: None <>
From: None <>
List: netbsd-bugs
Date: 10/06/2003 21:53:04
>Number:         23078
>Category:       pkg
>Synopsis:       net/tightvnc using wrong make under Linux
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Oct 07 04:54:00 UTC 2003
>Release:        Linux
Building pkgsrc/net/tightvnc under Linux fails:

make includes
including in ./include...
make: invalid option -- C
Usage: make [-Beiknqrst] [-D variable] [-d flags] [-f makefile]
            [-I directory] [-j max_jobs] [-m directory] [-V variable]
            [variable=value] [target ...]
*** Error code 2

This is the error from bmake. 

The work/vnc_unixsrc/Xvnc/include/Makefile made from the Imake has:
    MAKE = make

And a few places with:

I don't know why it is using bmake here. My "make" is gmake.
net/tightvnc/Makefiles doesn't say to use GMAKE.

I guess one fix would be to use USE_GMAKE for Linux OPSYS. It works for me.
(tightvnc's vncserver works under Linux.)

But under NetBSD, it uses bmake style (even if USE_GMAKE), like:
(cd $$i && $(MAKE) $(MFLAGS) $(PARALLELMFLAGS) ... 

Maybe it would be better to make it use correct syntax for bmake?

Then again, patch-aa uses "make" instead of ${MAKE} a few times.