From laskavy@Berkeley.Gambit.Msk.SU Tue Jul 20 00:28:55 1999
Return-Path: <laskavy@Berkeley.Gambit.Msk.SU>
Received: from Berkeley.Gambit.Msk.SU (d5.si.ru [195.128.76.45])
	by hub.freebsd.org (Postfix) with ESMTP id 61BC515178
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 20 Jul 1999 00:28:46 -0700 (PDT)
	(envelope-from laskavy@Berkeley.Gambit.Msk.SU)
Received: (from laskavy@localhost)
	by Berkeley.Gambit.Msk.SU (8.9.3/8.9.3) id LAA34721;
	Tue, 20 Jul 1999 11:27:07 +0400 (MSD)
	(envelope-from laskavy)
Message-Id: <199907200727.LAA34721@Berkeley.Gambit.Msk.SU>
Date: Tue, 20 Jul 1999 11:27:07 +0400 (MSD)
From: " . " <laskavy@Berkeley.Gambit.Msk.SU>
Reply-To: laskavy@Berkeley.Gambit.Msk.SU
To: FreeBSD-gnats-submit@freebsd.org
Subject: release/Makefile: mounting /some/dir with nodev option
X-Send-Pr-Version: 3.2

>Number:         12712
>Category:       bin
>Synopsis:       release/Makefile: mounting /some/dir with nodev option
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bmah
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jul 20 00:30:00 PDT 1999
>Closed-Date:    Sat Nov 17 11:57:22 PST 2001
>Last-Modified:  Sat Nov 17 11:58:37 PST 2001
>Originator:     Sergei Laskavy
>Release:        FreeBSD 3.2-STABLE i386
>Organization:
The FreeBSD Documentation Project
>Environment:

/usr/src/release/Makefile:
     $Id: Makefile,v 1.460.2.20 1999/05/30 22:36:44 billf Exp $

>Description:

The release/Makefile warns user only about avaliable space on /some/dir
and ``vn'' driver.

We also found, that if /some/dir is mounted with ``nodev'' option
(suggested in security(7) for all users partitions), ``make release''
will fail on the ``Building everything'' final part of chrooted to
/some/dir make world stage:

===> gnu/usr.bin/perl/perl
find: build: No such file or directory
find: build: No such file or directory
sh config_h.sh
Extracting config.h (with variable substitutions)
sh writemain.sh
Extracting writemain (with variable substitutions)
sh writemain lib/auto/DynaLoader/DynaLoader.a > perlmain.c
cc -nostdinc -O -pipe -I/usr/src/gnu/usr.bin/perl/perl/../../../../contrib/perl5 -I/usr/obj/usr/src/gnu/usr.bin/perl/perl   -I/usr/obj/usr/src/tmp/usr/include -c perlmain.c
miniperl /usr/src/gnu/usr.bin/perl/perl/../../../../contrib/perl5/configpm  Config.pm Porting/Glossary myconfig config.sh
cd lib ; ln -sf ../Config.pm
miniperl -I/usr/obj/usr/src/gnu/usr.bin/perl/perl/lib  -e 'use AutoSplit; autosplit_lib_modules(@ARGV)'  lib/*.pm lib/*/*.pm
Can't open perl script "-e": Device not configured
*** Error code 6

Here is ktrace:
  4580 miniperl NAMI  "/dev/null"
  4580 miniperl RET   open -1 errno 6 Device not configured
  4580 miniperl CALL  write(0x2,0x8111000,0x33)
  4580 miniperl GIO   fd 2 wrote 51 bytes
       "Can't open perl script "-e": Device not configured"

>How-To-Repeat:

	# mount -u -o nodev /some/dir # as suggested in security(7)
	# cd /usr/src/release && \
	  make release CHROOTDIR=/some/dir RELEASETAG=RELENG_3

>Fix:

--- Makefile.orig	Thu Jun 10 23:35:32 1999
+++ Makefile	Tue Jul 20 11:26:17 1999
@@ -8,8 +8,13 @@
 # name should be used when checking out the sources to build the release
 # (default is HEAD).
 #
-# Please note: the vn driver must also be compiled into your kernel,
-# otherwise the target 'release.8' and possibly others will fail.
+# Please note:
+#
+#	the vn driver must also be compiled into your kernel,
+#	otherwise the target 'release.8' and possibly others will fail.
+#
+#	the "/some/dir" should NOT be mounted with "nodev" option,
+#	otherwise the chrooted 'buildworld' for target 'release' may fail.
 #
 # Set these, release builder!
 #

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->re 
Responsible-Changed-By: johan 
Responsible-Changed-When: Thu Oct 11 14:49:03 PDT 2001 
Responsible-Changed-Why:  
vn has been replaced by md in the Makefile. However, I think the release 
engineers know if this is a problem with md as well. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=12712 
State-Changed-From-To: open->closed 
State-Changed-By: bmah 
State-Changed-When: Sat Nov 17 11:57:22 PST 2001 
State-Changed-Why:  
Committed a variant of your text...thanks! 


Responsible-Changed-From-To: re->bmah 
Responsible-Changed-By: bmah 
Responsible-Changed-When: Sat Nov 17 11:57:22 PST 2001 
Responsible-Changed-Why:  
I'm a re-wannabe...I'll take this. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=12712 
>Unformatted:
