Subject: pkg/29576: pkgtools/rc.subr breaks on Solaris 9
To: None <,,>
From: Hauke Fath <>
List: pkgsrc-bugs
Date: 03/02/2005 14:54:00
>Number:         29576
>Category:       pkg
>Synopsis:       pkgtools/rc.subr breaks on Solaris 9
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Mar 02 14:54:00 +0000 2005
>Originator:     Hauke Fath <>
>Release:        Solaris 9 (SPARC), current pkgsrc
/~\  The ASCII Ribbon Campaign                    Hauke Fath
\ /    No HTML/RTF in email	        Institut für Nachrichtentechnik
 X     No Word docs in email	                  TU Darmstadt
/ \  Respect for open standards              Ruf +49-6151-16-3281

SunOS sunchen 5.9 Generic_112233-12 sun4u sparc SUNW,Ultra-1


	It appears to be a general trend in pkgsrc to replace a
	back-tick evaluation of commands `echo foo` with $(echo
	foo). Unfortunately, the SunOS /usr/bin/sh doesn't know the
	latter expression. And since rc.subr is only sourced by the
	rc.d scripts, there is nothing the script itself can do about
	the issue - other than change the $(...)s back to `...`s.


	Build wip/isc_dhcpd on Solaris 9. Find that its rc.d script
	wants rc.subr, install the package, see a

[hf@sunchen] /etc # rc.d/isc_dhcpd start
rc.d/isc_dhcpd: syntax error at line 66: `_osname=$' unexpected

	(1) Change the $(...)s back to `...`s.
	(2) Make sure that _all_ rc.d scripts installed use
	    /usr/xpg4/bin/sh on Solaris.