Subject: MAKEDEV still makes tty/pty combos reversed
To: None <port-sparc@sun-lamp.cs.berkeley.edu>
From: - Greg Earle <earle@isolar.Tujunga.CA.US>
List: port-sparc
Date: 03/28/1994 17:39:39
I decided to go ahead and do "ln -s /usr/src/sys /sys" and plunge on ahead;
lo and behold, I got a kernel built :-)

Rebooted from the new kernel and now "ps" works (yay!).  Other things seem to
be fine (so far), but I quickly ran into an Inverted Roach Motel problem -
I could telnet/rlogin/ftp out, but I couldn't get in.

Turned out that (a) /dev/MAKEDEV still was making ttyp* and ptyp* with reversed
major numbers; then (b) it looks to me like "make install" in /usr/src wasn't
doing anything when it goes down into /usr/src/etc - so my /dev/MAKEDEV is
still the same one from Theo's original distribution.

How does one get updated files installed if something under /usr/src/etc
changes?  "make distribution" looks like it does some things that are
desirable, but some other things look like they should only be done, well,
when you're making a distribution (-:

------------------------------------------------------------------------------
netbsd4me:1:69 % make -n distribution
install -d -o root -g wheel -m 755 
mtree -u -d -p / -f /usr/src/etc/mtree/BSD.root.dist
mtree -u -d -p /usr -f /usr/src/etc/mtree/BSD.usr.dist
mtree -u -d -p /var -f /usr/src/etc/mtree/BSD.var.dist
cd ; rm -f sys; ln -s usr/src/sys sys
(cd ..; make install)
install -c -o root -g wheel -m 644 aliases csh.cshrc csh.login csh.logout daily dm.conf  ftpusers gettytab group hosts hosts.equiv hosts.lpd inetd.conf  man.conf monthly motd myname netstart newsyslog.conf phones  printcap protocols rc rc.local remote rpc security services shells  syslog.conf weekly etc.sparc/ttys etc.sparc/disktab /etc
install -c -o root -g wheel -m 666 motd /etc
install -c -o root -g wheel -m 600 crontab /var/cron/tabs/root
install -c -o root -g wheel -m 600 master.passwd /etc
chroot / pwd_mkdb -p /etc/master.passwd
install -c -o root -g wheel -m 555  MAKEDEV.local etc.sparc/MAKEDEV /dev
(cd root;  install -c -o root -g wheel -m 644 dot.cshrc  /root/.cshrc;  install -c -o root -g wheel -m 644 dot.klogin  /root/.klogin;  install -c -o root -g wheel -m 644 dot.login  /root/.login;  install -c -o root -g wheel -m 644 dot.profile  /root/.profile;  rm -f /.cshrc /.profile;  ln /root/.cshrc /.cshrc;  ln /root/.profile /.profile)
cd mtree; install -c -o root -g wheel -m 444 BSD.root.dist BSD.usr.dist BSD.var.dist  /etc/mtree
cd namedb; install -c -o root -g wheel -m 644 localhost.rev named.boot root.cache  /etc/namedb
/bin/rm -f /etc/localtime
ln -s /usr/share/zoneinfo/US/Pacific /etc/localtime
install -c -o root -g operator -m 664 /dev/null  /etc/dumpdates
install -c -o root -g wheel -m 600 /dev/null  /var/cron/log
install -c -o nobody -g wheel -m 664 /dev/null  /var/db/locate.database
install -c -o root -g wheel -m 664 /dev/null  /var/log/lastlog
install -c -o root -g wheel -m 664 /dev/null  /var/log/lpd-errs
install -c -o root -g wheel -m 664 /dev/null  /var/log/maillog
install -c -o root -g wheel -m 664 /dev/null  /var/log/messages
install -c -o root -g wheel -m 664 /dev/null  /var/log/wtmp
install -c -o daemon -g staff -m 664 /dev/null  /var/msgs/bounds
install -c -o root -g wheel -m 664 /dev/null  /var/run/utmp
(cd etc.sparc; install -c -o root -g wheel -m 444  fstab.* /etc)
(cd ../usr.sbin/sendmail/cf/cf; make distribution)
------------------------------------------------------------------------------

I lot of these files I don't have; e.g.:

ls: /etc/aliases: No such file or directory
ls: /var/cron/log: No such file or directory
ls: /var/db/locate.database: No such file or directory
ls: /var/log/lastlog: No such file or directory
ls: /var/msgs/bounds: No such file or directory
ls: /etc/dm.conf: No such file or directory
ls: /etc/newsyslog.conf: No such file or directory
ls: /var/cron/tabs/root: No such file or directory
ls: /.klogin: No such file or directory
ls: /.profile: No such file or directory

Also note that it expects to find "ttys", "disktab", "MAKEDEV" and "fsatb.*" in
/usr/src/etc/etc.sparc; only "ttys" and "MAKEDEV" (presently) exist.

Should I just manually execute the lines out of "make -n distribution" that
would create the missing files?  Or should there really be a "make" target that
checks for newer versions in /usr/src/etc and updates /etc accordingly?

	- Greg


------------------------------------------------------------------------------