NetBSD Problem Report #45694

From htodd@mara.i8u.org  Wed Dec  7 21:27:58 2011
Return-Path: <htodd@mara.i8u.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 55AA363D735
	for <gnats-bugs@gnats.NetBSD.org>; Wed,  7 Dec 2011 21:27:58 +0000 (UTC)
Message-Id: <20111207212754.EFE28103271C@mara.i8u.org>
Date: Wed,  7 Dec 2011 13:27:54 -0800 (PST)
From: htodd@twofifty.com
Reply-To: htodd@twofifty.com
To: gnats-bugs@gnats.NetBSD.org
Subject: update by ./build.sh doesn't complete because of unwriteable /dev
X-Send-Pr-Version: 3.95

>Number:         45694
>Category:       toolchain
>Synopsis:       update by ./build.sh doesn't complete because of unwriteable /dev
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    toolchain-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 07 21:30:00 +0000 2011
>Closed-Date:    Thu Sep 20 22:23:29 +0000 2012
>Last-Modified:  Mon Dec 30 08:45:02 +0000 2013
>Originator:     H. Todd Fujinaka
>Release:        NetBSD 5.99.58
>Organization:
None
>Environment:


System: NetBSD mara.i8u.org 5.99.58 NetBSD 5.99.58 (MARA) #122: Mon Dec 5 14:48:26 PST 2011 htodd@mara.i8u.org:/usr/obj/sys/arch/amd64/compile.amd64/MARA amd64
Architecture: x86_64
Machine: amd64
>Description:
Using ./build.sh to try to update my sparc64 system dies because of the
kern.securelevel which I can't seem to set by INSECURE in the kernel,
sysctl.conf, or rc.conf.

>How-To-Repeat:

===> build.sh command: /usr/src/build.sh -m sparc64 -B mybuildtest -D /usr/obj/netbsd-5/sparc64/destdir -M /usr/obj/netbsd-5/sparc64/objdir -R /usr/obj/netbsd-5/sparc64/releasedir -T /usr/obj/netbsd-5/sparc64/tooldir -U -X /usr/xsrc -x -N0 -V MAKECONF=/home/builds/etc/make.conf -j2 -U install=/
===> build.sh started: Wed Dec  7 08:49:58 PST 2011
===> NetBSD version:   5.1_STABLE
===> MACHINE:          sparc64
===> MACHINE_ARCH:     sparc64
===> Build platform:   NetBSD 5.1_STABLE sparc64
===> HOST_SH:          /bin/sh
===> TOOLDIR path:     /usr/obj/netbsd-5/sparc64/tooldir
===> DESTDIR path:     /usr/obj/netbsd-5/sparc64/destdir
===> RELEASEDIR path:  /usr/obj/netbsd-5/sparc64/releasedir
===> makewrapper:      /usr/obj/netbsd-5/sparc64/tooldir/bin/nbmake-sparc64-mybuildtest
===> Updated /usr/obj/netbsd-5/sparc64/tooldir/bin/nbmake-sparc64-mybuildtest
installsets ===> distrib/sets   (with: INSTALLDIR=/ INSTALLSETS=)
pax: Cannot set file uid/gid of /./dev (Permission denied)
pax: Cannot set permissions on /./dev (Permission denied)
pax: Access/modification time set failed on: /./dev (Permission denied)
pax: Cannot set file uid/gid of /./dev/fd (Permission denied)
pax: Cannot set permissions on /./dev/fd (Permission denied)
pax: Access/modification time set failed on: /./dev/fd (Permission denied)
pax: Cannot set permissions on /./dev/fd (Permission denied)
pax: Access/modification time set failed on: /./dev/fd (Permission denied)
pax: Cannot set permissions on /./dev (Permission denied)
pax: Access/modification time set failed on: /./dev (Permission denied)

*** Failed target:  installsets
*** Failed command: cd /usr/src/distrib/sets && DESTDIR=/usr/obj/netbsd-5/sparc64/destdir MACHINE=sparc64 MACHINE_ARCH=sparc64 AWK=/usr/obj/netbsd-5/sparc64/tooldir/bin/nbawk CKSUM=/usr/obj/netbsd-5/sparc64/tooldir/bin/nbcksum DB=/usr/obj/netbsd-5/sparc64/tooldir/bin/nbdb HOST_SH=/bin/sh MAKE=/usr/obj/netbsd-5/sparc64/tooldir/bin/nbmake MKTEMP=/usr/obj/netbsd-5/sparc64/tooldir/bin/nbmktemp MTREE=/usr/obj/netbsd-5/sparc64/tooldir/bin/nbmtree PAX=/usr/obj/netbsd-5/sparc64/tooldir/bin/nbpax SED=/usr/obj/netbsd-5/sparc64/tooldir/bin/nbsed TSORT=/usr/obj/netbsd-5/sparc64/tooldir/bin/nbtsort\ -q /bin/sh ./maketars -d /usr/obj/netbsd-5/sparc64/destdir -q -M /usr/obj/netbsd-5/sparc64/destdir/METALOG.sanitised -N /usr/src/etc -b -i /
*** Error code 1

Stop.
nbmake: stopped in /usr/src/distrib/sets

*** Failed target:  installworld
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this=""; real="/usr/src" ;; *) this="${dir}/"; real="/usr/src/${dir}" ;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && /usr/obj/netbsd-5/sparc64/tooldir/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget distrib/sets installsets INSTALLDIR=/ INSTALLSETS=
*** Error code 1

Stop.
nbmake: stopped in /usr/src

ERROR: Failed to make installworld to /
*** BUILD ABORTED ***

>Fix:
Burn a CD and update from the CD. This gets painful.


>Release-Note:

>Audit-Trail:
From: David Holland <dholland-bugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: toolchain/45694: update by ./build.sh doesn't complete because
 of unwriteable /dev
Date: Sat, 10 Dec 2011 18:02:10 +0000

 On Wed, Dec 07, 2011 at 09:30:00PM +0000, htodd@twofifty.com wrote:
  > pax: Cannot set file uid/gid of /./dev (Permission denied)
  > pax: Cannot set permissions on /./dev (Permission denied)
  > pax: Access/modification time set failed on: /./dev (Permission denied)
  > pax: Cannot set file uid/gid of /./dev/fd (Permission denied)
  > pax: Cannot set permissions on /./dev/fd (Permission denied)
  > pax: Access/modification time set failed on: /./dev/fd (Permission denied)
  > pax: Cannot set permissions on /./dev/fd (Permission denied)
  > pax: Access/modification time set failed on: /./dev/fd (Permission denied)
  > pax: Cannot set permissions on /./dev (Permission denied)
  > pax: Access/modification time set failed on: /./dev (Permission denied)
  > [...]
  >
  > Burn a CD and update from the CD. This gets painful.

 A much less painful workaround is to unmount fdesc before installing.

 -- 
 David A. Holland
 dholland@netbsd.org

From: Hisashi T Fujinaka <htodd@twofifty.com>
To: gnats-bugs@NetBSD.org
Cc: toolchain-manager@NetBSD.org, gnats-admin@NetBSD.org,
        netbsd-bugs@NetBSD.org
Subject: Re: toolchain/45694: update by ./build.sh doesn't complete because
 of unwriteable /dev
Date: Sat, 10 Dec 2011 15:12:06 -0800 (PST)

 On Sat, 10 Dec 2011, David Holland wrote:

 > The following reply was made to PR toolchain/45694; it has been noted by GNATS.
 >
 > From: David Holland <dholland-bugs@netbsd.org>
 > To: gnats-bugs@NetBSD.org
 > Cc:
 > Subject: Re: toolchain/45694: update by ./build.sh doesn't complete because
 > of unwriteable /dev
 > Date: Sat, 10 Dec 2011 18:02:10 +0000
 >
 > On Wed, Dec 07, 2011 at 09:30:00PM +0000, htodd@twofifty.com wrote:
 >  > pax: Cannot set file uid/gid of /./dev (Permission denied)
 >  > pax: Cannot set permissions on /./dev (Permission denied)
 >  > pax: Access/modification time set failed on: /./dev (Permission denied)
 >  > pax: Cannot set file uid/gid of /./dev/fd (Permission denied)
 >  > pax: Cannot set permissions on /./dev/fd (Permission denied)
 >  > pax: Access/modification time set failed on: /./dev/fd (Permission denied)
 >  > pax: Cannot set permissions on /./dev/fd (Permission denied)
 >  > pax: Access/modification time set failed on: /./dev/fd (Permission denied)
 >  > pax: Cannot set permissions on /./dev (Permission denied)
 >  > pax: Access/modification time set failed on: /./dev (Permission denied)
 >  > [...]
 >  >
 >  > Burn a CD and update from the CD. This gets painful.
 >
 > A much less painful workaround is to unmount fdesc before installing.

 Ah, that works, but no man page for fdesc and no real idea what's going
 on.

 -- 
 Hisashi T Fujinaka - htodd@twofifty.com
 BSEE(6/86) + BSChem(3/95) + BAEnglish(8/95) + MSCS(8/03) + $2.50 = latte

From: David Holland <dholland-bugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: toolchain/45694: update by ./build.sh doesn't complete because
 of unwriteable /dev
Date: Sun, 11 Dec 2011 00:58:28 +0000

 On Sat, Dec 10, 2011 at 11:15:06PM +0000, Hisashi T Fujinaka wrote:
  >  >  > Burn a CD and update from the CD. This gets painful.
  >  >
  >  > A much less painful workaround is to unmount fdesc before installing.
  >  
  >  Ah, that works, but no man page for fdesc and no real idea what's going
  >  on.

 fdesc implements /dev/fd. It should have a man page; that is a bug.
 (There is actually an fd(4) page for /dev/fd, but it makes no mention
 of fdesc. This also raises the question of whether the floppy driver
 has a man page.)

 It should also accept chown/chmod operations that do not actually
 change the attributes of its objects, instead of just failing
 unconditionally. I'm pretty sure that's what it's doing and that it's
 what causes the behavior you're seeing.

 -- 
 David A. Holland
 dholland@netbsd.org

From: Matthew Mondor <mm_lists@pulsar-zone.net>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: toolchain/45694: update by ./build.sh doesn't complete because
 of unwriteable /dev
Date: Sun, 11 Dec 2011 01:07:46 -0500

 On Sun, 11 Dec 2011 01:00:06 +0000 (UTC)
 David Holland <dholland-bugs@netbsd.org> wrote:

 >  fdesc implements /dev/fd. It should have a man page; that is a bug.
 >  (There is actually an fd(4) page for /dev/fd, but it makes no mention
 >  of fdesc. This also raises the question of whether the floppy driver
 >  has a man page.)

 However there seems to be mount_fdesc(8)/fd(4) and fdc(4); I agree that
 mount_fdesk(8) should refer to fd(4) and vice-versa.

 Interestingly, on a system of mine where I checked, /dev/fd contains
 files dating from 2004, and fdesc is unmounted; I guess that if it's
 not obsolete, it's probably a functionality very rarely expected by
 applications?
 -- 
 Matt

State-Changed-From-To: open->closed
State-Changed-By: mrg@NetBSD.org
State-Changed-When: Thu, 20 Sep 2012 22:23:29 +0000
State-Changed-Why:
with an unwriteable /dev/fd, there's nothing we can do about this.  a simple
workaround has been provided (and fdesc probably doesn't need to be mounted
anyway...)


From: "David A. Holland" <dholland@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/45694 CVS commit: src/share/man/man4
Date: Mon, 30 Dec 2013 08:42:00 +0000

 Module Name:	src
 Committed By:	dholland
 Date:		Mon Dec 30 08:42:00 UTC 2013

 Modified Files:
 	src/share/man/man4: fd.4

 Log Message:
 Add cross reference to mount_fdesc(8), as noted a while back in PR 45694.
 Also add a note that the floppy driver is documented in fdc(4). Bump date.


 To generate a diff of this commit:
 cvs rdiff -u -r1.5 -r1.6 src/share/man/man4/fd.4

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: "David A. Holland" <dholland@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/45694 CVS commit: src/sbin/mount_fdesc
Date: Mon, 30 Dec 2013 08:43:22 +0000

 Module Name:	src
 Committed By:	dholland
 Date:		Mon Dec 30 08:43:22 UTC 2013

 Modified Files:
 	src/sbin/mount_fdesc: mount_fdesc.8

 Log Message:
 Add crossreference to fd(4) as noted a while back in PR 45694. Bump date.


 To generate a diff of this commit:
 cvs rdiff -u -r1.15 -r1.16 src/sbin/mount_fdesc/mount_fdesc.8

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.