diff options
author | tijl <tijl@FreeBSD.org> | 2015-04-21 17:03:52 +0800 |
---|---|---|
committer | tijl <tijl@FreeBSD.org> | 2015-04-21 17:03:52 +0800 |
commit | a2231801eb823043f176397e1878edbf43a7681d (patch) | |
tree | c6af8de2a901d5958d4cb2349078a106101f6ee1 /Mk | |
parent | 2bbcfb2296af56d291179ae1f1522f5425d82885 (diff) | |
download | freebsd-ports-gnome-a2231801eb823043f176397e1878edbf43a7681d.tar.gz freebsd-ports-gnome-a2231801eb823043f176397e1878edbf43a7681d.tar.zst freebsd-ports-gnome-a2231801eb823043f176397e1878edbf43a7681d.zip |
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)
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/bsd.port.mk | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk index 7d128f9c102f..69a2d7ebc5a2 100644 --- a/Mk/bsd.port.mk +++ b/Mk/bsd.port.mk @@ -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 |