Bug 12712

Summary: release/Makefile: mounting /some/dir with nodev option
Product: Base System Reporter: Сергей Ласкавый <laskavy>
Component: binAssignee: Bruce A. Mah <bmah>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 3.2-STABLE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Сергей Ласкавый 1999-07-20 08:30:00 UTC
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
Comment 1 Johan Karlsson freebsd_committer freebsd_triage 2001-10-11 22:49:03 UTC
Responsible Changed
From-To: freebsd-bugs->re

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.
Comment 2 Bruce A. Mah freebsd_committer freebsd_triage 2001-11-17 19:57:22 UTC
State Changed
From-To: open->closed

Committed a variant of your text...thanks! 


Comment 3 Bruce A. Mah freebsd_committer freebsd_triage 2001-11-17 19:57:22 UTC
Responsible Changed
From-To: re->bmah

I'm a re-wannabe...I'll take this.