Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Apr 2015 09:03:52 +0000 (UTC)
From:      Tijl Coosemans <tijl@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r384412 - head/Mk
Message-ID:  <201504210903.t3L93qUr033257@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tijl
Date: Tue Apr 21 09:03:52 2015
New Revision: 384412
URL: https://svnweb.freebsd.org/changeset/ports/384412

Log:
  Remove the destination of a copy before copying to it because it may be
  a symlink and then cp follows the link.
  
  Approved by:	portmgr (antoine)

Modified:
  head/Mk/bsd.port.mk

Modified: head/Mk/bsd.port.mk
==============================================================================
--- head/Mk/bsd.port.mk	Tue Apr 21 08:59:11 2015	(r384411)
+++ head/Mk/bsd.port.mk	Tue Apr 21 09:03:52 2015	(r384412)
@@ -3380,9 +3380,11 @@ do-configure:
 	@CONFIG_GUESS_DIRS=$$(${FIND} ${WRKDIR} -name config.guess -o -name config.sub \
 		| ${XARGS} -n 1 ${DIRNAME}); \
 	for _D in $${CONFIG_GUESS_DIRS}; do \
-		${CP} -f ${TEMPLATES}/config.guess $${_D}/config.guess; \
+		${RM} $${_D}/config.guess; \
+		${CP} ${TEMPLATES}/config.guess $${_D}/config.guess; \
 		${CHMOD} a+rx $${_D}/config.guess; \
-	    ${CP} -f ${TEMPLATES}/config.sub $${_D}/config.sub; \
+		${RM} $${_D}/config.sub; \
+		${CP} ${TEMPLATES}/config.sub $${_D}/config.sub; \
 		${CHMOD} a+rx $${_D}/config.sub; \
 	done
 .endif



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