Subject: pkg/21687: Solaris: audio/arts/ problems
To: None <>
From: None <>
List: netbsd-bugs
Date: 05/26/2003 07:42:17
>Number:         21687
>Category:       pkg
>Synopsis:       Solaris: audio/arts/ problems
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon May 26 07:43:00 UTC 2003
>Originator:     Ingolf Steinbach
>Release:        pkgsrc as of 2003-05-22
Jena-Optronik GmbH
SunOS polaris 5.6 Generic_105181-11 sun4u sparc
On Solaris, ${GREP} seems to be set to /usr/xpg4/bin/grep (at least,
this is what is used here, and I do not see that some pkgsrc default
is overridden by me). That version of grep does not support alternatives
in regular expressions: /usr/xpg4/bin/egrep has to be used in these

This causes a failure when audio/arts/ no arts include
and lib files are found when arts' PLIST is searched.

Another problem is that egrep seems to expect (include|lib) rather
than \(include\|lib\) (i.e. without backslashes).

If I replace the BUILDLINK_FILES.arts!= line in revision 1.7 of
audio/arts/ with
BUILDLINK_FILES.arts!=  /usr/xpg4/bin/egrep "^(include|lib)" ${.CURDIR}/../../audio/arts/PLIST
everything seems to work as expected.
On Solaris, try to compile a package which includes
audio/arts/ and watch grep fail.
See above. However I am sure that a correct fix
 - should not use /usr/xpg4/bin/egrep explicitly (maybe the default
   settings for GREP would have to be changed?)
 - should use a pattern which works on all pkgsrc platforms.