Subject: kern/29673: Separate joy and tun in MAKEDEV.tmpl
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <fun@naobsd.org>
List: netbsd-bugs
Date: 03/12/2005 10:09:00
>Number: 29673
>Category: kern
>Synopsis: Separate joy and tun in MAKEDEV.tmpl
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Mar 12 10:09:00 +0000 2005
>Originator: FUKAUMI Naoki
>Release: NetBSD 2.99.16
>Organization:
FUKAUMI Naoki
>Environment:
System: NetBSD tr1.naobsd.org 2.99.16 NetBSD 2.99.16 (TR1) #1: Sun Feb 27 23:58:30 JST 2005 fun@tr1.naobsd.org:/home/fun/src/sys/arch/i386/compile/TR1 i386
Architecture: i386
Machine: i386
>Description:
evbppc port has tun(4) but doesn't have joy(4).
"tun*|joy*)" part in MAKEDEV.tmpl must be separated.
>How-To-Repeat:
cd (DESTDIR for evbppc)/dev && ./MAKEDEV all
>Fix:
I've confirmed build.sh -m evbppc release and ./MAKEDEV all
works well with this patch.
Index: etc/MAKEDEV.tmpl
===================================================================
RCS file: /home/fun/cvsroot/NetBSD/src/etc/MAKEDEV.tmpl,v
retrieving revision 1.39
diff -u -r1.39 MAKEDEV.tmpl
--- etc/MAKEDEV.tmpl 11 Mar 2005 20:55:10 -0000 1.39
+++ etc/MAKEDEV.tmpl 12 Mar 2005 09:59:12 -0000
@@ -882,12 +882,14 @@
lndev bpf bpf0
;;
-tun*|joy*)
- case $i in
- joy*) name=joy; unit=${i#joy}; chr=%joy_chr%;;
- tun*) name=tun; unit=${i#tun}; chr=%tun_chr%;;
- esac
- mkdev $name$unit c $chr $unit
+tun*)
+ unit=${i#tun}
+ mkdev tun$unit c %tun_chr% $unit
+ ;;
+
+joy*)
+ unit=${i#joy}
+ mkdev joy$unit c %joy_chr% $unit
;;
ipl)