From owner-freebsd-current Thu Sep 14 13:45:21 2000 Delivered-To: freebsd-current@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id 62EAE37B424 for ; Thu, 14 Sep 2000 13:45:18 -0700 (PDT) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id OAA71768; Thu, 14 Sep 2000 14:45:15 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id OAA99073; Thu, 14 Sep 2000 14:44:42 -0600 (MDT) Message-Id: <200009142044.OAA99073@harmony.village.org> To: Garrett Wollman Subject: Re: SMPNG kernel on UP Cc: current@FreeBSD.ORG In-reply-to: Your message of "Thu, 14 Sep 2000 16:42:00 EDT." <200009142042.QAA15287@khavrinen.lcs.mit.edu> References: <200009142042.QAA15287@khavrinen.lcs.mit.edu> <200009141941.MAA86101@pike.osd.bsdi.com> <200009141946.NAA98535@harmony.village.org> Date: Thu, 14 Sep 2000 14:44:42 -0600 From: Warner Losh Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <200009142042.QAA15287@khavrinen.lcs.mit.edu> Garrett Wollman writes: : < said: : > Hmmm, they look good to me. Maybe Mark's system doesn't have group : > operator at gid 5. That's one bad thing about the new DEVFS: it : > appears to enshrine things like this in the kernel... : : It would only take a small amount of Makefile magic to fix : this... something like: : : PASSWD?= /etc/passwd : GROUP?= /etc/group : : uidgid.h: ${PASSWD} ${GROUP} : perl -ne 'split(/:/); print ("#define\tUID_", uc($_[0]), "\t", \ : $_[2], "\n");' ${PASSWD} >${.TARGET} : perl -ne 'split(/:/); print ("#define\tGID_", uc($_[0]), "\t", \ : $_[2], "\n");' ${GROUP} >>${.TARGET} : : ...add this to and include "uidgid.h" as necessary in : source files. Hmmm, I like it... But it does suffer from one problem that we already have enough of in our tree. The build on one system, install on another problem. It would be better than the current situtation. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message