Subject: pkg/19486: mk-files' sys.mk for zoularis needs help
To: None <gnats-bugs@gnats.netbsd.org>
From: None <fcusack@fcusack.com>
List: netbsd-bugs
Date: 12/21/2002 01:32:07
>Number:         19486
>Category:       pkg
>Synopsis:       mk-files' sys.mk for zoularis needs help
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Dec 21 01:33:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Frank Cusack
>Release:        NetBSD 1.6
>Organization:
>Environment:
System: NetBSD moltar.savecore.net 1.6 NetBSD 1.6 (moltar) #16: Sun Nov 17 22:42:13 PST 2002 root@moltar.savecore.net:/usr/src/sys/arch/sparc64/compile/moltar sparc64
Architecture: sparc64
Machine: sparc64
>Description:
	The SunOS version of sys.mk can't find gcc or bison.
>How-To-Repeat:
>Fix:
--- SunOS.5.sys.mk.orig	Sat Dec 21 01:28:09 2002
+++ SunOS.5.sys.mk	Sat Dec 21 01:29:09 2002
@@ -27,7 +27,7 @@
 LINK.s=		${CC} ${AFLAGS} ${LDFLAGS}
 COMPILE.S=	${CC} ${AFLAGS} ${CPPFLAGS} -c
 LINK.S=		${CC} ${AFLAGS} ${CPPFLAGS} ${LDFLAGS}
-.if exists(/opt/gnu/bin/gcc) || exists(/usr/local/bin/gcc)
+.if exists(/opt/gnu/bin/gcc) || exists(/usr/local/bin/gcc) || exists(/usr/pkg/bin/gcc)
 CC=		gcc -pipe
 DBG=		-O -g
 STATIC=		-static
@@ -80,7 +80,7 @@
 
 SHELL=		sh
 
-.if exists(/usr/local/bin/bison) || exists(/opt/gnu/bin/bison)
+.if exists(/usr/local/bin/bison) || exists(/opt/gnu/bin/bison) || exists(/usr/pkg/bin/bison)
 YACC=		bison -y
 .else
 YACC=		yacc
>Release-Note:
>Audit-Trail:
>Unformatted: