Discussion:
git: 0cbb923fa2 - main - phb: fixup WRKDIRPREFIX part.
Mathieu Arnold
2021-05-25 14:07:05 UTC
Permalink
The branch main has been updated by mat:

URL: https://cgit.FreeBSD.org/doc/commit/?id=0cbb923fa22504e78bbf4dbfb9baabbf116f7695

commit 0cbb923fa22504e78bbf4dbfb9baabbf116f7695
Author: Mathieu Arnold <***@FreeBSD.org>
AuthorDate: 2021-05-25 14:05:28 +0000
Commit: Mathieu Arnold <***@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

Loading...