svn commit: r438939 - head/Mk/Uses
Mathieu Arnold
mat at FreeBSD.org
Thu Apr 20 11:13:39 UTC 2017
Author: mat
Date: Thu Apr 20 11:13:37 2017
New Revision: 438939
URL: https://svnweb.freebsd.org/changeset/ports/438939
Log:
Use the new ${RLN} relative symlink magic to create uniquefiles.
Before, the symlinks were created as absolute paths, so it would look
like this:
$ ls -l /usr/local/bin/
[...]
lrwxr-xr-x 1 root wheel 12 Apr 14 14:28 autopep8 -> /usr/local/bin/autopep8-2.7
-rwxr-xr-x 1 root wheel 395 Apr 14 14:28 autopep8-2.7
[...]
After, the symlinks are created with relative paths:
$ ls -l /usr/local/bin/
[...]
lrwxr-xr-x 1 root wheel 12 Apr 14 14:28 autopep8 -> autopep8-2.7
-rwxr-xr-x 1 root wheel 395 Apr 14 14:28 autopep8-2.7
[...]
Reviewed by: bapt
Sponsored by: Absolight
Differential Revision: https://reviews.freebsd.org/D10395
Modified:
head/Mk/Uses/uniquefiles.mk
Modified: head/Mk/Uses/uniquefiles.mk
==============================================================================
--- head/Mk/Uses/uniquefiles.mk Thu Apr 20 11:13:32 2017 (r438938)
+++ head/Mk/Uses/uniquefiles.mk Thu Apr 20 11:13:37 2017 (r438939)
@@ -93,7 +93,7 @@ _UNIQUEPKGLIST= ${WRKDIR}/.PLIST.unique
_DO_CONDITIONAL_SYMLINK= \
if [ ! -e ${STAGEDIR}${PREFIX}/$${fname} -a ! -L ${STAGEDIR}${PREFIX}/$${fname} ]; then \
${ECHO_MSG} "Link: @$${fname} --> $${newf}"; \
- ${LN} -s ${PREFIX}/$${newf} ${STAGEDIR}${PREFIX}/$${fname}; \
+ ${RLN} ${STAGEDIR}${PREFIX}/$${newf} ${STAGEDIR}${PREFIX}/$${fname}; \
${ECHO_CMD} LINKED:$${newf}:$${fname} >> ${_UNIQUEPKGLIST}; \
fi
.else
More information about the svn-ports-head
mailing list