Date: Tue, 25 May 2021 14:07:05 GMT From: Mathieu Arnold <mat@FreeBSD.org> To: doc-committers@FreeBSD.org, dev-commits-doc-all@FreeBSD.org Subject: git: 0cbb923fa2 - main - phb: fixup WRKDIRPREFIX part. Message-ID: <202105251407.14PE75Ja007065@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by mat: URL: https://cgit.FreeBSD.org/doc/commit/?id=0cbb923fa22504e78bbf4dbfb9baabbf116f7695 commit 0cbb923fa22504e78bbf4dbfb9baabbf116f7695 Author: Mathieu Arnold <mat@FreeBSD.org> AuthorDate: 2021-05-25 14:05:28 +0000 Commit: Mathieu Arnold <mat@FreeBSD.org> CommitDate: 2021-05-25 14:05:28 +0000 phb: fixup WRKDIRPREFIX part. Back in 2013, in a1ca8916e1, stuff was changed, and information was lost. Make it so that this bit is a bit more readable. --- .../content/en/books/porters-handbook/porting-dads/_index.adoc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/documentation/content/en/books/porters-handbook/porting-dads/_index.adoc b/documentation/content/en/books/porters-handbook/porting-dads/_index.adoc index f3db14b370..8339653fc1 100644 --- a/documentation/content/en/books/porters-handbook/porting-dads/_index.adoc +++ b/documentation/content/en/books/porters-handbook/porting-dads/_index.adoc @@ -46,9 +46,9 @@ Do not write anything to files outside `WRKDIR`. `WRKDIR` is the only place that [[porting-wrkdirprefix]] == `WRKDIRPREFIX` -Make sure the port honors `WRKDIRPREFIX`. Most ports do not have to worry about this. In particular, when referring to a `WRKDIR` of another port, note that the correct location is [.filename]#WRKDIRPREFIXPORTSDIR/subdir/name/work# not [.filename]#PORTSDIR/subdir/name/work# or [.filename]#.CURDIR/../../subdir/name/work# or some such. - -Also, if defining `WRKDIR`, make sure to prepend `${WRKDIRPREFIX}${.CURDIR}` in the front. +Make sure the port honors `WRKDIRPREFIX`. +Most ports do not have to worry about this. +In particular, when referring to a `WRKDIR` of another port, note that the correct location is [.filename]#${WRKDIRPREFIX}${PORTSDIR}/subdir/name/work# not [.filename]#${PORTSDIR}/subdir/name/work# or [.filename]#${.CURDIR}/../../subdir/name/work# or some such. [[porting-versions]] == Differentiating Operating Systems and OS Versions
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202105251407.14PE75Ja007065>