Subject: pkg/34215: games/grhino
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Gilles Dauphin <dauphin@enst.fr>
List: pkgsrc-bugs
Date: 08/16/2006 17:15:01
>Number:         34215
>Category:       pkg
>Synopsis:       games/grhino
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Aug 16 17:15:00 +0000 2006
>Originator:     Gilles Dauphin
>Release:        SunOS 5.10 i86pc
>Organization:
ENST 
>Environment:


System: SunOS bi.enst.fr 5.10 Generic_Patch_118844-30 i86pc


>Description:


bmake install fail because of Solaris /bin/sh does not support test -e

here is the fault fragment of Makefile

if [ ! -e "/usr/pkg/bin" ]; then                \
                mkdir -p "/usr/pkg/bin";                \
                chmod 755 "/usr/pkg/bin";               \
        fi

See the fix


>How-To-Repeat:


bmake install


>Fix:


in games/grhino/Makefile add:
USE_TOOLS+= gmake

and a logical patch:

--- Makefile.in.orig    Sat Aug  5 13:30:22 2006
+++ Makefile.in Wed Aug 16 19:06:01 2006
@@ -24,7 +24,7 @@
 PACKAGE                = @PACKAGE@
 VERSION                = @VERSION@
 
-SHELL          = /bin/sh
+SHELL          = @SHELL@
 @SET_MAKE@
 
 srcdir         = @srcdir@