commit:     ac170fabb913b0818eec678c4be6f1b7a05f8a34
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Apr 22 19:49:49 2019 +0000
Commit:     Göktürk Yüksek <gokturk <AT> gentoo <DOT> org>
CommitDate: Wed May 22 19:34:15 2019 +0000
URL:        https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=ac170fab

general-concepts/use-flags: Explain resolving automagic deps

Explain how developers should resolve automagic deps properly (via
upstream patch), and how they can easily solve it locally (via cache
variables or forcing dep unconditionally).

Suggested-by: Michael Orlitzky <mjo <AT> gentoo.org>
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 general-concepts/use-flags/text.xml | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/general-concepts/use-flags/text.xml 
b/general-concepts/use-flags/text.xml
index 4d56d97..186c51d 100644
--- a/general-concepts/use-flags/text.xml
+++ b/general-concepts/use-flags/text.xml
@@ -27,6 +27,16 @@ dependency is not detected by the package manager tools and 
can easily
 break, among other issues.
 </p>
 
+<p>
+Automagic dependencies are preferably fixed by preparing a build system patch
+adding appropriate options to control the dependency in question, and 
submitting
+this patch upstream for the benefit of all users. To avoid carrying additional
+patches downstream, automagic dependencies can usually be worked around using
+special build system options (e.g. cache variables in autotools) or through
+depending on the relevant packages unconditionally (i.e. forcing the check
+to always succeed).
+</p>
+
 <note>
 The status of USE flags is saved in the VDB, and their value in
 <c>pkg_prerm</c> and <c>pkg_postrm</c> is taken from there. This means that

Reply via email to