Subject: Re: pkgsrc question
To: None <netbsd-users@netbsd.org>
From: Mike Parson <mparson@bl.org>
List: netbsd-users
Date: 10/22/2001 13:52:33
On Mon, Oct 22, 2001 at 07:57:55PM +0200, Alistair Crooks wrote:
> Mike,
> 
> Offhand, a guess would be that your awk output looks unusual to
> me, or maybe perhaps it's something that the shell has passed down.
> 
> To help us narrow it down a bit, try doing exactly the same as
> before, only this time add a PKG_DEBUG_LEVEL=2 to the invocation
> of "make update", and see what the output gives. However, be aware
> that there'll be a lot of output.
> 
> You should also check for any definitions of AWK or SH in /etc/mk.conf
> or your environment.

<homer>
Doh.
</homer>

I'd mved sh out of the way and linked ksh to sh to solve another problem,
some time ago.  This only recently impacted pkgsrc though.   Putting 'real'
sh back as /bin/sh seems to have solved the pkgsrc problem.

The problem I 'fixed' was that some programs that called /bin/sh were
calling 'env' just after executing.  This would happen with man, perldoc, and
a few others:

-- start --
[~] $ man bash
man: Formatting manual page...
_=/usr/bin/env
PAGER=less
PS1=\[\033[1m\][\t]\[\033[m\] [\w] \h \n\$
PATH=/home/mparson/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/games:/usr/X11R6/bin:/usr/local/java/bin:/usr/local/bin:/usr/local/sbin
EDITOR=nvi
SHELL=/usr/local/bin/bash
OSTYPE=netbsd
HOSTNAME=ultra
USER=mparson
MAIL=/var/mail/mparson
VISUAL=nvi
TMPDIR=/home/mparson/tmp
PWD=/usr/local/man
HOME=/home/mparson
DISPLAY=ultra:10.0
HISTSIZE=1000
IRCNICK=Mike
OLDPWD=/bin
HOSTTYPE=i386
MACHTYPE=i386--netbsd
COLUMNS=172
WINDOW=4
TERM=vt100-w
STY=27469.ttyp0.ultra
CRYPTCMD=
SHLVL=2
TERMCAP=SC|vt100-w|VT 100/ANSI X3.64 virtual terminal:DO=\E[%dB:LE=\E[%dD:RI=\E[%dC:UP=\E[%dA:bs:bt=\E[Z:cd=\E[J:ce=\E[K:cl=\E[H\E[J:cm=\E[%i%d;%dH:ct=\E[3g:do=^J:nd=\E[C:p
t:rc=\E8:rs=\Ec:sc=\E7:st=\EH:up=\EM:le=^H:bl=^G:cr=^M:it#8:ho=\E[H:nw=\EE:ta=^I:is=\E(B:li#72:co#172:am:xn:xv:LP:sr=\EM:al=\E[L:AL=\E[%dL:cs=\E[%i%d;%dr:dl=\E[M:DL=\E[%dM:
dc=\E[P:DC=\E[%dP:im=\E[4h:ei=\E[4l:mi:IC=\E[%d@:ks=\E[?1h\E=:ke=\E[?1l\E>:vi=\E[?25l:ve=\E[34h\E[?25h:vs=\E[34l:us=\E[4m:ue=\E[24m:so=\E[3m:se=\E[23m:md=\E[1m:mr=\E[7m:me=
\E[m:ms:Co#8:pa#64:AF=\E[3%dm:AB=\E[4%dm:op=\E[39;49m:AX:G0:as=\E(0:ae=\E(B:ac=\140\140aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~..--++,,hhII00:k0=\E[10~:k1=\EOP:k2=\
EOQ:k3=\EOR:k4=\EOS:k5=\E[15~:k6=\E[17~:k7=\E[18~:k8=\E[19~:k9=\E[20~:k;=\E[21~:F1=\E[23~:F2=\E[24~:F3=\E[25~:F4=\E[26~:F5=\E[28~:F6=\E[29~:F7=\E[31~:F8=\E[32~:F9=\E[33~:FA
=\E[34~:kb=^H:kh=\E[1~:kH=\E[4~:kN=\E[6~:kP=\E[5~:kI=\E[2~:kD=\E[3~:ku=\EOA:kd=\EOB:kr=\EOC:kl=\EOD:km:
SSH_TTY=/dev/ttyp0
LINES=72
LOGNAME=mparson



BASH(1)                                                   BASH(1)

<rest of manpage begins here>

-- end -- 

Any ideas on this one? :-)

-- 
Michael Parson
mparson@bl.org