svn commit: r384412 - head/Mk
Tijl Coosemans
tijl at FreeBSD.org
Tue Apr 21 09:03:53 UTC 2015
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
More information about the svn-ports-all
mailing list