Subject: Re: printf in /dev/MAKEDEV
To: David Laight <david@l8s.co.uk>
From: Kirk Russell <kirk@ba23.org>
List: current-users
Date: 05/01/2005 18:18:40
On Sun, 1 May 2005, David Laight wrote:

> On Sun, May 01, 2005 at 05:07:31PM -0400, Kirk Russell wrote:
> > Hello,
> >
> > Last night, I did a checkout of the netbsd-3 tree and built a vax.iso to
> > install on simh/VAX.
> >
> > During the install, I got a "printf: not found" error during the MAKEDEV
> > step.  If /dev/MAKEDEV now requires printf, should printf be in the
> > install boot image?  Or am I missing something?  Thanks.
>
> MAKEDEV should have been changed to avoid using printf, maybe something
> in the vax part got missed....

Looks like src/etc/etc.vax/MAKEDEV.conf could be the missed file.

$ grep printf src/etc/etc.*/MAKEDEV*
src/etc/etc.vax/MAKEDEV.conf:                   mkdev tty$(printf %02d $no) c 1 $no
src/etc/etc.vax/MAKEDEV.conf:           mkdev tty$ch$(printf "%x" $i) c $major $(($unit * $count + $i))
src/etc/etc.vax/MAKEDEV.conf:   mkdev ttyJ$(printf "%x" $unit) c 66 $unit
src/etc/etc.vax/MAKEDEV.conf:           mkdev np$(printf "%02d" $oi) c 39 $oi

-- 
Kirk Russell            <kirk@ba23.org>            http://www.ba23.org/
Bridlewood Software Testers Guild                  Ottawa Ontario Canada