pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: debugging pkgsrc on Solaris



On Wed, 5 Jul 2006 22:14:07 +0100
David Laight <david%l8s.co.uk@localhost> 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
> 
> -- 
> David Laight: david%l8s.co.uk@localhost

I suspect there is a bug in pkgsrc Makefiles or scripts

# /bin is a symlink to /usr/bin
cd /usr/bin
mv sh sh.orig

ln -s /usr/bin/ksh sh
or
ln -s /usr/xpg4/bin/sh sh

both /usr/bin/ksh and /usr/xpg4/bin/sh result in the same error described above

only when

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?



Home | Main Index | Thread Index | Old Index