Subject: pkg/33531: /usr/pkgsrc/mk/bsd.pkg.check.mk (use of gnu find)
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Gilles Dauphin <dauphin@enst.fr>
List: pkgsrc-bugs
Date: 05/22/2006 16:50:00
>Number:         33531
>Category:       pkg
>Synopsis:       /usr/pkgsrc/mk/bsd.pkg.check.mk (use of gnu find)
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon May 22 16:50: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 is broken




>How-To-Repeat:


bmake install in all package!!!


>Fix:


the wrong line is 
${FIND} ${PREFIX}/. \( -type f -or -type l \) -print 2>/dev/null

the '-or' option is not valid for solaris's find and many system.

use '-o' option that works with gnu find too 

here is the error message with solaris:
[root@u2 110] /usr/bin/find /usr/pkg/. \( -type f -or -type l \) -print 
/usr/bin/find: bad option -or
/usr/bin/find: [-H | -L] path-list predicate-list
[root@u2 111]