From owner-svn-ports-head@freebsd.org Thu Apr 20 11:13:34 2017 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1C8C6D45795; Thu, 20 Apr 2017 11:13:34 +0000 (UTC) (envelope-from mat@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DD9F21E6; Thu, 20 Apr 2017 11:13:33 +0000 (UTC) (envelope-from mat@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v3KBDXSt049803; Thu, 20 Apr 2017 11:13:33 GMT (envelope-from mat@FreeBSD.org) Received: (from mat@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v3KBDWLR049802; Thu, 20 Apr 2017 11:13:32 GMT (envelope-from mat@FreeBSD.org) Message-Id: <201704201113.v3KBDWLR049802@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: mat set sender to mat@FreeBSD.org using -f From: Mathieu Arnold Date: Thu, 20 Apr 2017 11:13:32 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r438938 - head/Mk X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Apr 2017 11:13:34 -0000 Author: mat Date: Thu Apr 20 11:13:32 2017 New Revision: 438938 URL: https://svnweb.freebsd.org/changeset/ports/438938 Log: Add a RLN command (relative ln), it can be used to create relative symlinks using install's relative symlinks feature. If you were going through hoops doing things like this to get relative symlinks: ${LN} -sf ../lib/some/thing ${STAGEDIR}${PREFIX}/bin You can now use full paths for both the source and destination: ${RLN} ${STAGEDIR}${PREFIX}/libexec/some/thing ${STAGEDIR}${PREFIX}/bin One caveat is that the source must exist when this is run, because install needs to run realpath(1) on it. Sponsored by: Absolight Modified: head/Mk/bsd.commands.mk (contents, props changed) Modified: head/Mk/bsd.commands.mk ============================================================================== --- head/Mk/bsd.commands.mk Thu Apr 20 09:28:04 2017 (r438937) +++ head/Mk/bsd.commands.mk Thu Apr 20 11:13:32 2017 (r438938) @@ -75,6 +75,7 @@ PS_CMD?= /bin/ps PW?= /usr/sbin/pw READELF?= /usr/bin/readelf REALPATH?= /bin/realpath +RLN?= ${INSTALL} -l rs RM?= /bin/rm -f RMDIR?= /bin/rmdir SED?= /usr/bin/sed