Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Nov 2015 03:04:39 +0000 (UTC)
From:      Garrett Cooper <ngie@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r290840 - head/etc
Message-ID:  <201511150304.tAF34dD2062713@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ngie
Date: Sun Nov 15 03:04:39 2015
New Revision: 290840
URL: https://svnweb.freebsd.org/changeset/base/290840

Log:
  Setup the symlink to /sys to mirror one's current source, e.g. if my source
  tree was /usr/src/svn, /sys would point to usr/src/svn
  
  This fixes the assumption that the source tree will always exist at
  ${DESTDIR}/usr/src
  
  MFC after: 1 week
  PR: 76362
  Reported by: Scot Hetzel <swhetzel@gmail.com>
  Sponsored by: EMC / Isilon Storage Division

Modified:
  head/etc/Makefile

Modified: head/etc/Makefile
==============================================================================
--- head/etc/Makefile	Sun Nov 15 01:50:17 2015	(r290839)
+++ head/etc/Makefile	Sun Nov 15 03:04:39 2015	(r290840)
@@ -408,7 +408,7 @@ distrib-dirs: ${MTREES:N/*} distrib-clea
 		    ${METALOG.add} ; \
 	done; true
 .endif
-	${INSTALL_SYMLINK} usr/src/sys ${DESTDIR}/sys
+	${INSTALL_SYMLINK} ${SRCTOP:C/^\///}/sys ${DESTDIR}/sys
 .if ${MK_MAN} != "no"
 	cd ${DESTDIR}${SHAREDIR}/man; \
 	for mandir in man*; do \



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