Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Jul 1999 11:27:07 +0400 (MSD)
From:      "Сергей С. Ласкавый" <laskavy@Berkeley.Gambit.Msk.SU>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/12712: release/Makefile: mounting /some/dir with nodev option
Message-ID:  <199907200727.LAA34721@Berkeley.Gambit.Msk.SU>

next in thread | raw e-mail | index | archive | help

>Number:         12712
>Category:       bin
>Synopsis:       release/Makefile: mounting /some/dir with nodev option
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jul 20 00:30:00 PDT 1999
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199907200727.LAA34721>