aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2019-04-22 21:49:49 +0200
committerGöktürk Yüksek <gokturk@gentoo.org>2019-05-22 15:34:15 -0400
commitac170fabb913b0818eec678c4be6f1b7a05f8a34 (patch)
treeae7ccb96b61e75de478cd3001f0736bcad1be483 /general-concepts/use-flags
parentgeneral-concepts/use-flags: Also note about flags controlling CFLAGS (diff)
downloaddevmanual-ac170fabb913b0818eec678c4be6f1b7a05f8a34.tar.gz
devmanual-ac170fabb913b0818eec678c4be6f1b7a05f8a34.tar.bz2
devmanual-ac170fabb913b0818eec678c4be6f1b7a05f8a34.zip
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@gentoo.org> Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'general-concepts/use-flags')
-rw-r--r--general-concepts/use-flags/text.xml10
1 files changed, 10 insertions, 0 deletions
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