Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Mar 2016 22:36:56 +0000 (UTC)
From:      Bryan Drewery <bdrewery@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r296396 - head
Message-ID:  <201603042236.u24Maura052714@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bdrewery
Date: Fri Mar  4 22:36:56 2016
New Revision: 296396
URL: https://svnweb.freebsd.org/changeset/base/296396

Log:
  NO_ROOT: Create the METALOG directory on installworld/distributeworld.
  
  When not using NO_ROOT the DESTDIR is implicitly created by the
  distrib-dirs call.  However with NO_ROOT it is trying to write
  to the METALOG right away before running distrib-dirs which
  may fail.
  
  Sponsored by:	EMC / Isilon Storage Division

Modified:
  head/Makefile.inc1

Modified: head/Makefile.inc1
==============================================================================
--- head/Makefile.inc1	Fri Mar  4 22:36:42 2016	(r296395)
+++ head/Makefile.inc1	Fri Mar  4 22:36:56 2016	(r296396)
@@ -959,6 +959,7 @@ distributeworld installworld: _installch
 	cp $$libs $$progs ${INSTALLTMP}
 	cp -R $${PATH_LOCALE:-"/usr/share/locale"} ${INSTALLTMP}/locale
 .if defined(NO_ROOT)
+	-mkdir -p ${METALOG:H}
 	echo "#${MTREE_MAGIC}" > ${METALOG}
 .endif
 .if make(distributeworld)



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