Subject: Re: pkgsrc on Solaris
To: None <tech-pkg@netbsd.org>
From: None <sigsegv@rambler.ru>
List: tech-pkg
Date: 10/08/2004 11:42:17
Gavan Fantom wrote:
> On Thu, 7 Oct 2004, Chris Jepeway wrote:
> 
>> On Oct 7, 2004, at 11:14 AM, Robert Lillack wrote:
>>
>>> One thing that could be useful to achive this goal (half of the
>>> packages work) is manually setting
>>>
>>> AWK=/opt/local/pkg/bin/gawk
>>>
>>> in /etc/mk.conf *after* installing gawk from pkgsrc. Also, many
>>> packages seem to have trouble with Solaris' sed and need
>>> USE_GNU_TOOLS+=sed in their Makefile. I'm going to report these,
>>> if I find the time.
>>
>> Would
>>
>>         AWK=/usr/xpg4/bin/awk        ( aka nawk )
>>
>> work instead?  As for sed, would
> 
> 
> AWK defaults to /usr/bin/nawk on Solaris.
> 
>>         SED=/usr/xpg4/bin/sed
> 
> 
> SED defaults to ${LOCALBASE}/bin/nbsed on Solaris. That should be good 
> enough, and anything that needs a better sed here will need a better sed 
> on NetBSD too.
> 
>> handle it?  I realize the Solaris pkgsrc
>> bootstrapping  might obviate all of this, but
>> seems like using the native stuff is...more friendly.
> 
> 
> There is no native sed on Solaris that's good enough for the heavy use 
> that buildlink3 makes of sed.
> 

Well if the required utilities are installed in /usr/pkg/bin (e.g. gcc, 
sed, awk, bmake etc) how come so many packages fail on Solaris, I mean 
the tools to build the packages are the same. Anyone tried building 
gcc3-c++? When it comes to building libstdc++-v3 the configure scripts 
spins in infinite loop, the only way I managed to build a working c++ 
compiler was to kill the runaway script, change to libstdc++-v3 
directory, type "bmake" and then go up to /usr/pkgsrc/lang/gcc3-c++ and 
restart the process by typing "bmake build"