Subject: pkg/35877: current tightvncviewer fails to build on current NetBSD/amd64
To: None <,,>
From: None <szilagyi@acer.szilagyi>
List: pkgsrc-bugs
Date: 02/28/2007 22:20:01
>Number:         35877
>Category:       pkg
>Synopsis:       current tightvncviewer fails to build on current NetBSD/amd64
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Feb 28 22:20:00 +0000 2007
>Originator:     Peter Szilagyi
>Release:        NetBSD 4.99.9
	pkgsrc HEAD Wed Feb 28 16:55:11 EST 2007
System: NetBSD acer.szilagyi 4.99.9 NetBSD 4.99.9 (GENERIC.MP) #1: Thu Feb 8 12:07:42 EST 2007 szilagyi@acer.szilagyi:/var/tmp/obj/NetBSD-4.99.9/amd64/sys/arch/amd64/compile/GENERIC.MP amd64
Architecture: x86_64
Machine: amd64
	I've never been able to build tightvncviewer on amd64,
gettings errors like this:

    ===> Building for tightvncviewer-1.2.9nb2
    make: don't know how to make <built-in>. Stop
    make: stopped in /usr/pkgsrc/net/tightvncviewer/work/vnc_unixsrc/libvncauth
    make: stopped in /usr/pkgsrc/net/tightvncviewer

	I finally googled a bit and guessed this means TightVNC wants
us to use gmake to build it.
	On my amd64 box:

    cd pkgsrc
    cvs up -Ad
    cd net/tightvncviewer
	The following got me an apparently working package.
(Apologies; I don't know the conventional place to add this, if it's
sufficient, or even if it's a reasonable fix.  I just kind of looked
around at nearby package makefiles and google.)

--- Makefile.~1.22.~	2007-02-06 10:08:40.000000000 -0500
+++ Makefile	2007-02-28 16:57:55.000000000 -0500
@@ -16,6 +16,7 @@
 WRKSRC=			${WRKDIR}/vnc_unixsrc
 CRYPTO=			yes
 USE_IMAKE=		yes
+USE_TOOLS+=		gmake
 CONFIGURE_DIRS=		${WRKSRC}/libvncauth