Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Nov 1996 23:16:14 -0800 (PST)
From:      Dave Cornejo <dave@dogwood.com>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   misc/2013: 'make world' fails on read-only /usr/src
Message-ID:  <199611150716.XAA24270@white.dogwood.com>
Resent-Message-ID: <199611150720.XAA21635@freefall.freebsd.org>

index | next in thread | raw e-mail


>Number:         2013
>Category:       misc
>Synopsis:       'make world' fails on read-only /usr/src
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Nov 14 23:20:04 PST 1996
>Last-Modified:
>Originator:     Dave Cornejo
>Organization:
Dogwood Media
>Release:        FreeBSD 3.0-CURRENT i386
>Environment:

FreeBSD-current 14 Nov 1996

>Description:

In the 'make world' process, 'bootstrap' removes .../usr.bin/lex/lib,
which 'libraries' is expecting to be there.  If /usr/src is mounted
r/w the make succeeds by using the source directory to build in.  If
/usr/src is read-only, then it fails since it can't save the .depend
file.

>How-To-Repeat:

Do 'make world' on a source tree mounted read-only via NFS.

>Fix:
	
My proposed fix is below - you could also solve this by not doing an
'rm -rf' in /usr/obj/.../usr.bin/lex, but this has more far reaching
effects.  Apply the following patch to /usr/src/Makefile:

===== cut here =====
*** Makefile.orig	Thu Nov 14 22:34:28 1996
--- Makefile	Thu Nov 14 22:35:16 1996
***************
*** 364,370 ****
  	cd ${.CURDIR}/usr.bin/xinstall && ${MAKE} depend && \
  		${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
  	cd ${.CURDIR}/usr.bin/lex && ${MAKE} bootstrap && ${MAKE} depend && \
! 		${MAKE} ${MK_FLAGS} -DNOLIB all install ${CLEANDIR} ${OBJDIR}
  
  #
  # include-tools - generally the same as 'bootstrap', except that it's for
--- 364,371 ----
  	cd ${.CURDIR}/usr.bin/xinstall && ${MAKE} depend && \
  		${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
  	cd ${.CURDIR}/usr.bin/lex && ${MAKE} bootstrap && ${MAKE} depend && \
! 		${MAKE} ${MK_FLAGS} -DNOLIB all install ${CLEANDIR} && \
! 		${MAKE} ${OBJDIR}
  
  #
  # include-tools - generally the same as 'bootstrap', except that it's for
===== cut here =====

>Audit-Trail:
>Unformatted:


help

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