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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id DECF2158090 for ; Sun, 22 May 2022 06:37:51 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B6A28E0AB5; Sun, 22 May 2022 06:37:50 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4FC73E0AB4 for ; Sun, 22 May 2022 06:37:50 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 72596341C40 for ; Sun, 22 May 2022 06:37:49 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 47A6A326 for ; Sun, 22 May 2022 06:37:47 +0000 (UTC) From: "Joonas Niilola" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Joonas Niilola" Message-ID: <1653201417.d08d5f0dea3d8580c55a052d6424863d6aeb8ae9.juippis@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: juippis X-VCS-Committer-Name: Joonas Niilola X-VCS-Revision: d08d5f0dea3d8580c55a052d6424863d6aeb8ae9 X-VCS-Branch: master Date: Sun, 22 May 2022 06:37:47 +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: 82cad0f8-0f69-482a-b80b-f25ad388550d X-Archives-Hash: 75767de7e0a5bd1273eb2a9f1ae5c0f2 commit: d08d5f0dea3d8580c55a052d6424863d6aeb8ae9 Author: Joonas Niilola gentoo org> AuthorDate: Sat Apr 23 12:32:51 2022 +0000 Commit: Joonas Niilola gentoo org> CommitDate: Sun May 22 06:36:57 2022 +0000 URL: https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=d08d5f0d general-concepts/dependencies: add new section for indirect deps Signed-off-by: Joonas Niilola gentoo.org> general-concepts/dependencies/text.xml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/general-concepts/dependencies/text.xml b/general-concepts/dependencies/text.xml index ef27ac2..ab1a799 100644 --- a/general-concepts/dependencies/text.xml +++ b/general-concepts/dependencies/text.xml @@ -781,6 +781,23 @@ There are three kinds of circular dependencies: + + + +
+Indirect dependencies + + +

+Always list each direct dependency that your package needs to build and run +correctly. Do not rely on dependency chains to meet the dependency +requirements. For example, a package needs dep1 and dep2, but +dep1 also depends on dep2. You might consider just adding +dep1 since it currently pulls dep2 too, but in the future, +dep1 might drop dep2 as a dependency, or make it conditional with +USE flags. This would then break building your ebuild. +

+