From owner-dev-commits-doc-all@freebsd.org Tue May 25 14:07:05 2021 Return-Path: Delivered-To: dev-commits-doc-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id AE55964D1EB for ; Tue, 25 May 2021 14:07:05 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FqG9P4ZDfz4pql; Tue, 25 May 2021 14:07:05 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 8512C1ED6C; Tue, 25 May 2021 14:07:05 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 14PE75Fq007066; Tue, 25 May 2021 14:07:05 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 14PE75Ja007065; Tue, 25 May 2021 14:07:05 GMT (envelope-from git) Date: Tue, 25 May 2021 14:07:05 GMT Message-Id: <202105251407.14PE75Ja007065@gitrepo.freebsd.org> To: doc-committers@FreeBSD.org, dev-commits-doc-all@FreeBSD.org From: Mathieu Arnold Subject: git: 0cbb923fa2 - main - phb: fixup WRKDIRPREFIX part. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mat X-Git-Repository: doc X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 0cbb923fa22504e78bbf4dbfb9baabbf116f7695 Auto-Submitted: auto-generated X-BeenThere: dev-commits-doc-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the doc repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 May 2021 14:07:05 -0000 The branch main has been updated by mat: URL: https://cgit.FreeBSD.org/doc/commit/?id=0cbb923fa22504e78bbf4dbfb9baabbf116f7695 commit 0cbb923fa22504e78bbf4dbfb9baabbf116f7695 Author: Mathieu Arnold AuthorDate: 2021-05-25 14:05:28 +0000 Commit: Mathieu Arnold 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