From owner-freebsd-current Sun Sep 17 8:19:42 2000 Delivered-To: freebsd-current@freebsd.org Received: from homer.softweyr.com (bsdconspiracy.net [208.187.122.220]) by hub.freebsd.org (Postfix) with ESMTP id 2EA9737B424 for ; Sun, 17 Sep 2000 08:19:39 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=softweyr.com ident=Fools trust ident!) by homer.softweyr.com with esmtp (Exim 3.16 #1) id 13agMK-0000Vf-00; Sun, 17 Sep 2000 09:28:00 -0600 Message-ID: <39C4E300.242244E9@softweyr.com> Date: Sun, 17 Sep 2000 09:28:00 -0600 From: Wes Peters Organization: Softweyr LLC X-Mailer: Mozilla 4.75 [en] (X11; U; FreeBSD 4.1-STABLE i386) X-Accept-Language: en MIME-Version: 1.0 To: Warner Losh Cc: Garrett Wollman , current@FreeBSD.ORG Subject: Re: SMPNG kernel on UP References: <200009142042.QAA15287@khavrinen.lcs.mit.edu> <200009141941.MAA86101@pike.osd.bsdi.com> <200009141946.NAA98535@harmony.village.org> <200009142044.OAA99073@harmony.village.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Warner Losh wrote: > > 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. Add ${DESTDIR} to PASSWD and GROUP? That will help. -- "Where am I, and what am I doing in this handbasket?" Wes Peters Softweyr LLC wes@softweyr.com http://softweyr.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message