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 87A14158090 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 AEFA4E0AB4; Sun, 22 May 2022 06:37:50 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (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 8555DE0AB4 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 69328341C3F 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 5B2613C3 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: <1653201422.6c0b51ae63833c2ddfd58412727c0004db06d605.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: 6c0b51ae63833c2ddfd58412727c0004db06d605 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: a3210096-ae41-4f34-9212-3bffe8954bcc X-Archives-Hash: 19ec0a0c8102c767150bf734d28f6f9d commit: 6c0b51ae63833c2ddfd58412727c0004db06d605 Author: Joonas Niilola gentoo org> AuthorDate: Sat Apr 23 12:42:10 2022 +0000 Commit: Joonas Niilola gentoo org> CommitDate: Sun May 22 06:37:02 2022 +0000 URL: https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=6c0b51ae general-concepts/dependencies: expand on finding correct deps a bit Signed-off-by: Joonas Niilola gentoo.org> Closes: https://github.com/gentoo/devmanual/pull/284 general-concepts/dependencies/text.xml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/general-concepts/dependencies/text.xml b/general-concepts/dependencies/text.xml index ab1a799..59b1b37 100644 --- a/general-concepts/dependencies/text.xml +++ b/general-concepts/dependencies/text.xml @@ -631,7 +631,9 @@ package:
Use a tool like scanelf -n (from app-misc/pax-utils) or objdump -p (from sys-devel/binutils) to list DT_NEEDED - entries + entries. + app-portage/iwdevtools and portage's own qa-unresolved-soname-deps + FEATURE can help finding these.
Look in configure.ac
@@ -647,12 +649,12 @@ package:
Look at the application/library website
Check the application website for possible dependencies that they suggest - are needed + are needed.
Read the README and INSTALL for the package
They usually also contain useful information about building and installing - packages + packages.
Remember non-binary dependencies such as pkg-config, doc generation @@ -664,6 +666,12 @@ package: are clearly stated. Again, such dependencies usually belong in BDEPEND. +
Testing in chroots, containers and virtual machines
+
+ A sure-way to find missing dependencies is to test your ebuild in a + deprived environment. Chroots, containers, virtual machines and + dev-util/ebuildtester can achieve this. +