From nobody@FreeBSD.org  Sat Jan 22 23:36:10 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id C43B316A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 22 Jan 2005 23:36:10 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id AD15843D1D
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 22 Jan 2005 23:36:10 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j0MNaA77065483
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 22 Jan 2005 23:36:10 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id j0MNaA5r065481;
	Sat, 22 Jan 2005 23:36:10 GMT
	(envelope-from nobody)
Message-Id: <200501222336.j0MNaA5r065481@www.freebsd.org>
Date: Sat, 22 Jan 2005 23:36:10 GMT
From: Jon Passki <cykyc@yahoo.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: RELENG_5 src/Makefile.inc1 CHECK_UIDS and CHECK_GIDS checks are improper
X-Send-Pr-Version: www-2.3

>Number:         76583
>Category:       conf
>Synopsis:       RELENG_5 src/Makefile.inc1 CHECK_UIDS and CHECK_GIDS checks are improper
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jan 22 23:40:24 GMT 2005
>Closed-Date:    Sun Jan 23 00:11:41 GMT 2005
>Last-Modified:  Sun Jan 23 00:11:41 GMT 2005
>Originator:     Jon Passki
>Release:        RELENG_5 as of 1/22/05
>Organization:
>Environment:
N/A
>Description:
#
# $FreeBSD: src/Makefile.inc1,v 1.438.2.11 2004/12/25 07:52:41 ru Exp $
#

.for uid in ${CHECK_UIDS}
        @if ! `id -u ${uid} >/dev/null 2>&1`; then \
                echo "ERROR: Required ${uid} user is missing, see /usr/src/UPDATING."; \
                false; \
        fi
.endfor


This check is improper in that it checks the active system for the user (and later group) accouts.  Logically, at least it should check the destination passwd file for the entry.  I have DESTDIR set for this build, and will be exporting it to other systems.  So, I don't care if the build system has the user account or not.  As a workaround, can these be wrappered with something like a NO_CHECK_IDS make variable?

Thanks,

Jon



>How-To-Repeat:
cd /usr/src; make installworld #don't have all the required ids available
>Fix:
See Full Description above for workaround or check.
>Release-Note:
>Audit-Trail:

From: Brooks Davis <brooks@one-eyed-alien.net>
To: Jon Passki <cykyc@yahoo.com>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: conf/76583: RELENG_5 src/Makefile.inc1 CHECK_UIDS and CHECK_GIDS checks are improper
Date: Sat, 22 Jan 2005 16:02:46 -0800

 The check is correct.  You must have the IDs in order to set the
 permissions of files during install.  For that to work, you must have
 them on your actual system so commands that look them up will work.  You
 can work around this by using a chroot during installworld.
 
 -- Brooks
State-Changed-From-To: open->closed 
State-Changed-By: brooks 
State-Changed-When: Sun Jan 23 00:10:58 GMT 2005 
State-Changed-Why:  
As per followup, this isn't a bug.  The build system really does need 
the UIDs. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=76583 
>Unformatted:
