Received: by mail.netbsd.org (Postfix, from userid 605) id E932E84D77; Wed, 29 Apr 2020 23:48:45 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 6F25584D41 for ; Wed, 29 Apr 2020 23:48:45 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id Pe2ce1WaGWbV for ; Wed, 29 Apr 2020 23:48:44 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id A89FB84CD3 for ; Wed, 29 Apr 2020 23:48:44 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 9C9D7FB27; Wed, 29 Apr 2020 23:48:44 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1588204124141520" MIME-Version: 1.0 Date: Wed, 29 Apr 2020 23:48:44 +0000 From: "David H. Gutteridge" Subject: CVS commit: pkgsrc/doc/guide/files To: pkgsrc-changes@NetBSD.org Reply-To: gutteridge@netbsd.org X-Mailer: log_accum Message-Id: <20200429234844.9C9D7FB27@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: pkgsrc-changes.NetBSD.org Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_1588204124141520 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: gutteridge Date: Wed Apr 29 23:48:44 UTC 2020 Modified Files: pkgsrc/doc/guide/files: fixes.xml Log Message: fixes.xml: document TEST_DEPENDS To generate a diff of this commit: cvs rdiff -u -r1.154 -r1.155 pkgsrc/doc/guide/files/fixes.xml Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_1588204124141520 Content-Disposition: inline Content-Length: 4373 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/doc/guide/files/fixes.xml diff -u pkgsrc/doc/guide/files/fixes.xml:1.154 pkgsrc/doc/guide/files/fixes.xml:1.155 --- pkgsrc/doc/guide/files/fixes.xml:1.154 Mon Feb 24 21:13:56 2020 +++ pkgsrc/doc/guide/files/fixes.xml Wed Apr 29 23:48:44 2020 @@ -1,4 +1,4 @@ - + Making your package work @@ -299,38 +299,40 @@ ACCEPTABLE_LICENSES+=xv-license Handling dependencies - Your package may depend on some other package being present - - and there are various ways of expressing this dependency. - pkgsrc supports the BUILD_DEPENDS and - DEPENDS and - TOOL_DEPENDS definitions, the + Your package may depend on some other package being present, + and there are various ways of expressing this dependency. + pkgsrc supports the DEPENDS, + BUILD_DEPENDS, + TOOL_DEPENDS, and + TEST_DEPENDS definitions, the USE_TOOLS definition, as well as dependencies via buildlink3.mk, which is the preferred way to handle dependencies, and which uses the variables named above. See for more information. - The basic difference between the two variables is as - follows: The DEPENDS definition registers - that pre-requisite in the binary package so it will be pulled in - when the binary package is later installed, whilst the - BUILD_DEPENDS and TOOL_DEPENDS - definitions does not, marking a dependency that is only needed for - building the package. + The basic difference is that the DEPENDS + definition registers that pre-requisite in the binary package so it + will be pulled in when the binary package is later installed, whilst + the BUILD_DEPENDS, TOOL_DEPENDS, + and TEST_DEPENDS definitions do not, marking a + dependency that is only needed for building or testing the resulting + package. See also for more information. This means that if you only need a package present whilst - you are building, it should be noted as a - TOOL_DEPENDS or - BUILD_DEPENDS. When cross-compiling, + you are building or testing, it should be noted as a + TOOL_DEPENDS, + BUILD_DEPENDS, or + TEST_DEPENDS. When cross-compiling, TOOL_DEPENDS are native packages, i.e. packages for the architecture where the package is built; BUILD_DEPENDS are target - packages, i.e. packages for the architecture for which the package + packages, i.e., packages for the architecture for which the package is built. - The format for BUILD_DEPENDS, - DEPENDS and TOOL_DEPENDS - definition is: + The format for a DEPENDS, + BUILD_DEPENDS, TOOL_DEPENDS, + and TEST_DEPENDS definition is: <pre-req-package-name>:../../<category>/<pre-req-package> @@ -407,6 +409,12 @@ DEPENDS+= tex-latex-bin-[0-9]*:.. + If your package includes a test suite that has extra + dependencies only required for this purpose (frequently this + can be run as a make test target), use the + TEST_DEPENDS variable. + + You can use wildcards in package dependencies. Note that such wildcard dependencies are retained when creating binary packages. The dependency is checked when installing the binary --_----------=_1588204124141520--