Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Nov 2018 21:30:00 +0000 (UTC)
From:      Alex Richardson <arichardson@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r340162 - head/tools/build
Message-ID:  <201811052130.wA5LU0X3039980@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: arichardson
Date: Mon Nov  5 21:30:00 2018
New Revision: 340162
URL: https://svnweb.freebsd.org/changeset/base/340162

Log:
  Fix -DNO_CLEAN build after r340157
  
  Approved By:	jhb (mentor)

Modified:
  head/tools/build/Makefile

Modified: head/tools/build/Makefile
==============================================================================
--- head/tools/build/Makefile	Mon Nov  5 21:28:32 2018	(r340161)
+++ head/tools/build/Makefile	Mon Nov  5 21:30:00 2018	(r340162)
@@ -114,9 +114,17 @@ installdirs:
 # bootstrap-tools phase. We could also overrride BINDIR when building bootstrap
 # tools but adding the symlinks is easier and means all tools are also
 # in the directory that they are installed to normally.
-	ln -sf bin ${DESTDIR}/sbin
-	ln -sf ../bin ${DESTDIR}/usr/bin
-	ln -sf ../bin ${DESTDIR}/usr/sbin
+
+.for _dir in sbin usr/sbin usr/bin
+# delete existing directories from before r340157
+	@if [ ! -L ${DESTDIR}/${_dir} ]; then \
+	    echo "removing old non-symlink ${DESTDIR}/${_dir}"; \
+	    rm -rf "${DESTDIR}/${_dir}"; \
+	fi
+.endfor
+	ln -sfn bin ${DESTDIR}/sbin
+	ln -sfn ../bin ${DESTDIR}/usr/bin
+	ln -sfn ../bin ${DESTDIR}/usr/sbin
 .for _group in ${INCSGROUPS:NINCS}
 	mkdir -p "${DESTDIR}/${${_group}DIR}"
 .endfor



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