From owner-freebsd-small Thu Apr 29 20: 6:43 1999 Delivered-To: freebsd-small@freebsd.org Received: from astart4.astart.com (astart4.astart.com [206.71.174.196]) by hub.freebsd.org (Postfix) with ESMTP id 7FBA114D66 for ; Thu, 29 Apr 1999 20:06:41 -0700 (PDT) (envelope-from papowell@astart4.astart.com) Received: (from papowell@localhost) by astart4.astart.com (8.8.8/8.8.8) id UAA11181; Thu, 29 Apr 1999 20:05:32 -0700 (PDT) Date: Thu, 29 Apr 1999 20:05:32 -0700 (PDT) From: papowell@astart4.astart.com Message-Id: <199904300305.UAA11181@astart4.astart.com> To: jkh@zippy.cdrom.com Subject: picobsd and /dev/MAKEDEV problems Cc: freebsd-small@freebsd.org Sender: owner-freebsd-small@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I have been adding some functionality to the various build scripts, when I discovered that the /dev/MAKEDEV script was not generating devices, but picobsd/build was not reporting an error. I discovered the following code (single example here) in /dev/MAKEDEV case $unit in [0-9]|[0-9][0-9]|[0-4][0-9][0-9]|50[0-9]|51[0-1]) for slicepartname in s0h s1 s2 s3 s4 do **************>>>>>>> sh MAKEDEV $name$unit$slicepartname **************>>>>>>> done ;; *) echo bad unit for disk in: $i ;; esac Clearly /dev/MAKEDEV wants to be run in the /dev directory. However, the build scripts assume that they can do: sh /dev/MAKEDEV The sh MAKEDEV failes as it does not find a MAKEDEV file in the current directory. Here are patches to the picobsd configuration files that fix this problem. *** picobsd/dial/mfs.tree/Makefile Thu Apr 29 19:56:47 1999 --- picobsd/dial/mfs.tree/Makefile.orig Thu Apr 29 19:55:18 1999 *************** *** 62,71 **** # We don't do it under 'all' because it's needed only on non-DEVFS systems devnodes: tree (cd ${DESTDIR}/dev; \ ! ln -s /dev/MAKEDEV MAKEDEV; \ ! ./MAKEDEV std sysmouse tun2 cuaa0 cuaa1 cuaa2 vty10 fd0 pty0; \ ! ./MAKEDEV psm0; \ ! ./MAKEDEV wd0 wd1 acd0; \ ! rm MAKEDEV; ) clean: --- 62,69 ---- # We don't do it under 'all' because it's needed only on non-DEVFS systems devnodes: tree (cd ${DESTDIR}/dev; \ ! /dev/MAKEDEV std sysmouse tun2 cuaa0 cuaa1 cuaa2 vty10 fd0 pty0; \ ! /dev/MAKEDEV psm0; \ ! /dev/MAKEDEV wd0 wd1 acd0 ) clean: *** picobsd/isp/mfs.tree/Makefile Thu Apr 29 19:58:22 1999 --- picobsd/isp/mfs.tree/Makefile.orig Thu Apr 29 19:55:18 1999 *************** *** 33,40 **** # We don't do it under 'all' because it's needed only on non-DEVFS systems devnodes: tree (cd ${DESTDIR}/dev; \ ! ln -s /dev/MAKEDEV; \ ! ./MAKEDEV std wd0 wd1 acd0 tun2 vty10 fd0 pty0; \ ! ./MAKEDEV cuaa0 cuaa1 cuaa2 cuaa3 cuaa4; \ ! ./MAKEDEV cuaa5 cuaa6 cuaa7 cuaa8 cuaa9; \ ! rm MAKEDEV; ) --- 33,38 ---- # We don't do it under 'all' because it's needed only on non-DEVFS systems devnodes: tree (cd ${DESTDIR}/dev; \ ! /dev/MAKEDEV std wd0 wd1 acd0 tun2 vty10 fd0 pty0; \ ! /dev/MAKEDEV cuaa0 cuaa1 cuaa2 cuaa3 cuaa4; \ ! /dev/MAKEDEV cuaa5 cuaa6 cuaa7 cuaa8 cuaa9) *** picobsd/net/mfs.tree/Makefile Thu Apr 29 19:58:47 1999 --- picobsd/net/mfs.tree/Makefile.orig Thu Apr 29 19:55:18 1999 *************** *** 33,38 **** # We don't do it under 'all' because it's needed only on non-DEVFS systems devnodes: tree (cd ${DESTDIR}/dev; \ ! ln -s /dev/MAKEDEV; \ ! ./MAKEDEV std tun2 cuaa0 cuaa1 cuaa2 vty10 fd0 pty0 wd0 wd1 acd0 ; \ ! rm MAKEDEV; ) --- 33,36 ---- # We don't do it under 'all' because it's needed only on non-DEVFS systems devnodes: tree (cd ${DESTDIR}/dev; \ ! /dev/MAKEDEV std tun2 cuaa0 cuaa1 cuaa2 vty10 fd0 pty0 wd0 wd1 acd0) *** picobsd/router/mfs.tree/Makefile Thu Apr 29 20:00:17 1999 --- picobsd/router/mfs.tree/Makefile.orig Thu Apr 29 19:55:18 1999 *************** *** 33,38 **** # We don't do it under 'all' because it's needed only on non-DEVFS systems devnodes: tree (cd ${DESTDIR}/dev; \ ! ln -s /dev/MAKEDEV; \ ! ./MAKEDEV std tun2 vty3 fd0 pty0 wd0 wd1 acd0 cuaa0 cuaa1 cuaa2; \ ! rm MAKEDEV; ) --- 33,36 ---- # We don't do it under 'all' because it's needed only on non-DEVFS systems devnodes: tree (cd ${DESTDIR}/dev; \ ! /dev/MAKEDEV std tun2 vty3 fd0 pty0 wd0 wd1 acd0 cuaa0 cuaa1 cuaa2) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-small" in the body of the message