Subject: Re: CVS commit: pkgsrc/mk/install
To: None <rillig@netbsd.org>
From: Johnny Lam <jlam@NetBSD.org>
List: tech-pkg
Date: 08/04/2005 12:32:14
Roland Illig wrote:
> Modified Files:
> 	pkgsrc/mk/install: bsd.pkginstall.mk
> 
> Log Message:
> Replaced the shell substitution ${egfile#${PREFIX}/} with a shell
> function that does the same. The Solaris /bin/sh does not know this type
> of substitution. Now we could only have problems with /bin/sh which do
> not know functions, but as we are using shell functions in many other
> places, this should be fine.

I think what we should do is stop using /bin/sh on all platforms on 
which we use a bootstrap kit.  That means we should start shipping 
shells/pdksh as part of the bootstrap kit, and we should hard-code the 
bootstrap bmake to exec /usr/pkg/bin/pdksh instead of /bin/sh.  This 
would give us a consistent "pkgsrc platform" upon which we can write 
scripts that will work on more POSIXy shells than Solaris' /bin/sh.

	Cheers,

	-- Johnny Lam <jlam@NetBSD.org>