Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Aug 2023 04:19:53 GMT
From:      Enji Cooper <ngie@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 22dc8901a73f - main - Use proper convention for relative path linking
Message-ID:  <202308180419.37I4Jr6Q016404@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by ngie:

URL: https://cgit.FreeBSD.org/src/commit/?id=22dc8901a73fcb30ff434ddf5aada43ab10021ae

commit 22dc8901a73fcb30ff434ddf5aada43ab10021ae
Author:     Enji Cooper <ngie@FreeBSD.org>
AuthorDate: 2023-08-18 11:13:06 +0000
Commit:     Enji Cooper <ngie@FreeBSD.org>
CommitDate: 2023-08-18 11:20:32 +0000

    Use proper convention for relative path linking
    
    The change made in e835ee68e13361b841c983fa4a49dd6c19dcdec4 did not
    follow the convention for relative path symlinks. Per the convention,
    paths be prefixed with `${BINDIR}`, not `/bin/`. `${BINDIR}` can be
    modified from the Makefile, on the command line, or in the
    environment. This convention is the canonically correct way to do
    things.
    
    This follows the convention used in `bin/pkill/Makefile`,
    `bin/timeout/Makefile`, etc.
    
    MFC after:      1 week
    MFC with:       f05948d4e98d3abd0965a2994e9e42add6908ff3
    MFC with:       e835ee68e13361b841c983fa4a49dd6c19dcdec4
    Requested by:   jrtc27, kevans
---
 bin/cpuset/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/cpuset/Makefile b/bin/cpuset/Makefile
index a200c4fc1aac..6e88614a6a6e 100644
--- a/bin/cpuset/Makefile
+++ b/bin/cpuset/Makefile
@@ -3,6 +3,6 @@ PROG=   cpuset
 
 LIBADD=	jail
 
-SYMLINKS+=	../../bin/cpuset	/usr/bin/cpuset
+SYMLINKS+=	../..${BINDIR}/cpuset	/usr/bin/cpuset
 
 .include <bsd.prog.mk>



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