Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Apr 2017 11:13:37 +0000 (UTC)
From:      Mathieu Arnold <mat@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r438939 - head/Mk/Uses
Message-ID:  <201704201113.v3KBDb45049901@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



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