Subject: Re: debugging pkgsrc on Solaris
To: David Laight <firstname.lastname@example.org>
From: Raymond Meyer <email@example.com>
Date: 07/05/2006 23:05:07
On Wed, 5 Jul 2006 22:14:07 +0100
David Laight <firstname.lastname@example.org> wrote:
> On Wed, Jul 05, 2006 at 11:36:55AM +0100, Raymond Meyer wrote:
> > I'm trying to build lang/gcc34-ada on Sparc Solaris, I posted about this
> > problem some time ago, but nobody replied to me
> > # bmake extract
> > /bin/sh: syntax error at line 1: `;' unexpected
> > *** Error code 2
> Put /usr/xpg4/bin into $PATH before /usr/bin and/or set SHELL=/usr/xpg4/bin/sh
> (or something else that is ksh-like).
> I suspect you are falling foul of solaris's proper bourne shell!
> David Laight: email@example.com
I suspect there is a bug in pkgsrc Makefiles or scripts
# /bin is a symlink to /usr/bin
mv sh sh.orig
ln -s /usr/bin/ksh sh
ln -s /usr/xpg4/bin/sh sh
both /usr/bin/ksh and /usr/xpg4/bin/sh result in the same error described above
ln -s /usr/bin/bash sh
the error goes away
I know Solaris Bourne shell is crap, but when pkgsrc fails with ksh and
xpg4/sh, it makes me think there is something not right with pkgsrc.
So, how could I debug this problem and see which Makefile or script is
generating the error?