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 80467138335 for ; Wed, 22 May 2019 19:37:32 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A76A9E089F; Wed, 22 May 2019 19:37:31 +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 8C486E089F for ; Wed, 22 May 2019 19:37:31 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 0CF1E344E48 for ; Wed, 22 May 2019 19:37:29 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 84E655F2 for ; Wed, 22 May 2019 19:37:26 +0000 (UTC) From: "Göktürk Yüksek" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Göktürk Yüksek" Message-ID: <1558553655.ac170fabb913b0818eec678c4be6f1b7a05f8a34.gokturk@gentoo> Subject: [gentoo-commits] proj/devmanual:master commit in: general-concepts/use-flags/ X-VCS-Repository: proj/devmanual X-VCS-Files: general-concepts/use-flags/text.xml X-VCS-Directories: general-concepts/use-flags/ X-VCS-Committer: gokturk X-VCS-Committer-Name: Göktürk Yüksek X-VCS-Revision: ac170fabb913b0818eec678c4be6f1b7a05f8a34 X-VCS-Branch: master Date: Wed, 22 May 2019 19:37:26 +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: 80746364-c266-457c-9f3a-b10e83ce1728 X-Archives-Hash: 9e46a8293b16a4684c890c8ab25bc10f commit: ac170fabb913b0818eec678c4be6f1b7a05f8a34 Author: Michał Górny gentoo org> AuthorDate: Mon Apr 22 19:49:49 2019 +0000 Commit: Göktürk Yüksek gentoo 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 gentoo.org> Signed-off-by: Michał Górny 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.

+

+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). +

+ The status of USE flags is saved in the VDB, and their value in pkg_prerm and pkg_postrm is taken from there. This means that