From nobody@FreeBSD.org  Sun Nov  8 00:31:44 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id CB9BE106566B
	for <freebsd-gnats-submit@FreeBSD.org>; Sun,  8 Nov 2009 00:31:44 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id BA0F78FC0A
	for <freebsd-gnats-submit@FreeBSD.org>; Sun,  8 Nov 2009 00:31:44 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id nA80ViXC084100
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 8 Nov 2009 00:31:44 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id nA80VhNC084099;
	Sun, 8 Nov 2009 00:31:44 GMT
	(envelope-from nobody)
Message-Id: <200911080031.nA80VhNC084099@www.freebsd.org>
Date: Sun, 8 Nov 2009 00:31:44 GMT
From: "Greg A. Woods" <woods-freebsd.org@planix.ca>
To: freebsd-gnats-submit@FreeBSD.org
Subject: installworld fails trying to use 'chflags schg' on NFS DESTDIR
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         140376
>Category:       misc
>Synopsis:       [build] installworld fails trying to use 'chflags schg' on NFS DESTDIR
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Nov 08 00:40:01 UTC 2009
>Closed-Date:    
>Last-Modified:  Sun Nov 08 03:06:23 UTC 2009
>Originator:     Greg A. Woods
>Release:        FreeBSD/mips
>Organization:
Planix, Inc.
>Environment:
>Description:
I'm building the FreeBSD/mips project using a (virtual) machine running
FreeBSD-8.0-RC2 with source, obj, and destdir NFS mounted (from a NetBSD
server).

During the "installworld" phase, being run as root (sigh, why must I do
any of the build as root?), I encounter the following error:

install -s -o root -g wheel -m 4555   chpass /once/rest/work/freebsd-mips//usr/bin
/once/rest/work/freebsd-mips//usr/bin/chfn -> /once/rest/work/freebsd-mips//usr/bin/chpass
/once/rest/work/freebsd-mips//usr/bin/chsh -> /once/rest/work/freebsd-mips//usr/bin/chpass
chflags schg /once/rest/work/freebsd-mips//usr/bin/chpass
chflags: /once/rest/work/freebsd-mips//usr/bin/chpass: Operation not supported
*** Error code 1

Stop in /once/rest/work/woods/m-FreeBSD-mips/usr.bin/chpass.

>How-To-Repeat:
run installworld to an NFS-mounted DESTDIR?

>Fix:
Don't ever run any of the build or install as root.
(at least not when building install media, or doing
cross-compile builds, etc.)

Do chflags operations during final install only!


>Release-Note:
>Audit-Trail:
>Unformatted:
