Subject: pkg/21687: Solaris: audio/arts/buildlink2.mk problems
To: None <gnats-bugs@gnats.netbsd.org>
From: None <ingolf.steinbach@jena-optronik.de>
List: netbsd-bugs
Date: 05/26/2003 07:42:17
>Number:         21687
>Category:       pkg
>Synopsis:       Solaris: audio/arts/buildlink2.mk 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
>Closed-Date:
>Last-Modified:
>Originator:     Ingolf Steinbach
>Release:        pkgsrc as of 2003-05-22
>Organization:
Jena-Optronik GmbH
>Environment:
SunOS polaris 5.6 Generic_105181-11 sun4u sparc
>Description:
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
cases.

This causes a failure when audio/arts/buildlink2.mk: 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/buildlink2.mk with
BUILDLINK_FILES.arts!=  /usr/xpg4/bin/egrep "^(include|lib)" ${.CURDIR}/../../audio/arts/PLIST
everything seems to work as expected.
>How-To-Repeat:
On Solaris, try to compile a package which includes
audio/arts/buildlink2.mk and watch grep fail.
>Fix:
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.
>Release-Note:
>Audit-Trail:
>Unformatted: