Subject: Re: Solaris 10 problems
To: None <>
From: Sergey Matveychuk <>
List: pkgsrc-bugs
Date: 06/23/2006 18:29:50 wrote:
> First of all, this list is for reports using GNATS (e.g. send-pr from
> NetBSD base or the web frontend), not for direct bug reports.

Sorry, I've missed that.

> On Fri, Jun 23, 2006 at 11:48:44AM +0400, Sergey Matveychuk wrote:
>> I've found a few problems with current pkgsrc on Solaris 10:
>> 1) A problem in pkgsrc/Makefile with 'echo -n'. Only /usr/ucd/echo
>> respect -n flag on Solaris. As I can see the problem is absent in mk/*.
> echo is explicitly expected to be a shell internal. Use a different
> shell.

I use bash, but it does not help. Looks like bmake runs sh that is ksh.
I wonder mk/* scripts are aware of /usr/ucd/echo, but pkgsrc/Makefile do

>> 2) cd x11/dtx11session; bmake describe
>> /usr/bin/env: No such file or directory
>> dtxsession-1.0|/usr/pkgsrc/x11/dtx11session|/usr/dt|Launch a X11 session
>> from CDE login
>> service|/usr/pkgsrc/x11/dtx11session/DESCR||x11|/usr/bin/env:
>> No such file or directory
>> /usr/bin/env: No such file or directory
>> /usr/bin/env: No such file or directory
>> gcc3-c-3.3.5nb1 gettext-lib-0.14.5 gmake-3.81 libiconv-1.10nb3
>> libtool-base-1.5.22nb3 pkg_install-info-4.5nb3|/usr/bin/env: No such
>> file or directory
>> |SunOS-*-*|any
> No /usr/bin/env?! Is it somewhere else?

It's there. The problem is there is no executable it tried to run:
-bash-3.00$ ls -la /usr/bin/env
-r-xr-xr-x   1 root     bin        10024 Jan 23  2005 /usr/bin/env
-bash-3.00$ /usr/bin/env non-existen
/usr/bin/env: No such file or directory

>> The problem is only with the port.
>> 3) At the end of building of PKGDB I got:
>> Reading database file
>> /usr/bin/nawk: input record `depends meta-pkgs/xf...' too long
>>  input record number 49320, file /usr/pkgsrc/PKGDB
>>  source line number 195
>> *** Error code 2
> Yeah, the limits of certain commands on Solaris are infamous.

I've installed gawk and run a command as 'make AWK=gwk' and it fixed the