From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D3048138239 for ; Wed, 29 Jan 2020 07:59:59 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0A41BE084A; Wed, 29 Jan 2020 07:59:59 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D8655E084A for ; Wed, 29 Jan 2020 07:59:58 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B854D34E4B4 for ; Wed, 29 Jan 2020 07:59:57 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5CA4317 for ; Wed, 29 Jan 2020 07:59:56 +0000 (UTC) From: "Ulrich Müller" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ulrich Müller" Message-ID: <1580284706.d25e172b16fa3c59f6868dc164bc6dcc801c4fc2.ulm@gentoo> Subject: [gentoo-commits] proj/devmanual:master commit in: general-concepts/dependencies/ X-VCS-Repository: proj/devmanual X-VCS-Files: general-concepts/dependencies/text.xml X-VCS-Directories: general-concepts/dependencies/ X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Müller X-VCS-Revision: d25e172b16fa3c59f6868dc164bc6dcc801c4fc2 X-VCS-Branch: master Date: Wed, 29 Jan 2020 07:59:56 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 42fed429-4364-441a-bfa5-c3805cf6bef9 X-Archives-Hash: 16f4f45f163af0b1c8326ec573d919b0 commit: d25e172b16fa3c59f6868dc164bc6dcc801c4fc2 Author: Michał Górny gentoo org> AuthorDate: Sun Dec 29 07:59:28 2019 +0000 Commit: Ulrich Müller gentoo org> CommitDate: Wed Jan 29 07:58:26 2020 +0000 URL: https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=d25e172b general-concepts/dependencies: Document BDEPEND Signed-off-by: Michał Górny gentoo.org> Signed-off-by: Ulrich Müller gentoo.org> general-concepts/dependencies/text.xml | 48 ++++++++++++++++++++++++++++++++-- 1 file changed, 46 insertions(+), 2 deletions(-) diff --git a/general-concepts/dependencies/text.xml b/general-concepts/dependencies/text.xml index 32feff1..8deca1f 100644 --- a/general-concepts/dependencies/text.xml +++ b/general-concepts/dependencies/text.xml @@ -11,17 +11,61 @@ provided by emerge.

+
+CHOST vs CBUILD + + +

+In order to avoid ambiguity, we use the following terms to indicate different +systems when cross-compiling: +

+ +
+
CBUILD
+
+ The system on which the build is performed. Dependencies that apply + to the CBUILD system can be executed during build time. When + cross-compiling, they are not installed into the system being built. +
+ +
CHOST
+
+ The system on which the package is going to be executed. When + cross-compiling, dependencies applying to CHOST can not be executed. +
+
+ +

+When not cross-compiling, CBUILD and CHOST have the same value and both classes +of dependencies are merged. +

+ + +
+
Build Dependencies

-The DEPEND ebuild variable should specify any dependencies which are -required to unpack, patch, compile or install the package (but see +Build dependencies are used to specify any dependencies that are required +to unpack, patch, compile, test or install the package (but see for exemptions).

+

+Starting with EAPI 7, build dependencies are split into two variables: +BDEPEND and DEPEND. BDEPEND specifies dependencies +applicable to CBUILD, i.e. programs that need to be executed during the build, +e.g. virtual/pkgconfig. DEPEND specifies dependencies for CHOST, +i.e. packages that need to be found on built system, e.g. libraries and headers. +

+ +

+In earlier EAPIs, all build dependencies are placed in DEPEND. +

+