Gentoo Archives: gentoo-portage-dev

From: Zac Medico <zmedico@g.o>
To: Zac Medico <zmedico@g.o>, "Michał Górny" <mgorny@g.o>, gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] [PATCH] emerge: auto-enable --with-bdeps if --usepkg is not enabled (bug 598444)
Date: Sat, 04 Mar 2017 22:59:14
Message-Id: 992666d4-2756-8776-c976-c69981cc366c@gentoo.org
In Reply to: Re: [gentoo-portage-dev] [PATCH] emerge: auto-enable --with-bdeps if --usepkg is not enabled (bug 598444) by Zac Medico
1 On 03/04/2017 02:30 AM, Zac Medico wrote:
2 > On 03/04/2017 01:59 AM, Michał Górny wrote:
3 >> W dniu 04.03.2017, sob o godzinie 01∶34 -0800, użytkownik Zac Medico
4 >> napisał:
5 >>> It's useful to enable --with-bdeps by default so that @world updates
6 >>> will update all packages that are not eligible for removal by
7 >>> emerge --depclean. However, many users of binary packages do not want
8 >>> unnecessary build time dependencies installed, therefore do not
9 >>> auto-enable --with-bdeps for installation actions when the --usepkg
10 >>> option is enabled.
11 >>>
12 >>> X-Gentoo-bug: 598444
13 >>> X-Gentoo-bug-url: https://bugs.gentoo.org/show_bug.cgi?id=598444
14 >>> ---
15 >>> man/emerge.1 | 18 ++-
16 >>> pym/_emerge/create_depgraph_params.py | 4 +
17 >>> pym/_emerge/depgraph.py | 4 +-
18 >>> pym/portage/tests/resolver/ResolverPlayground.py | 5 +
19 >>> pym/portage/tests/resolver/test_bdeps.py | 197 +++++++++++++++++++++++
20 >>> 5 files changed, 223 insertions(+), 5 deletions(-)
21 >>> create mode 100644 pym/portage/tests/resolver/test_bdeps.py
22 >>
23 >> Just to be clear, this will break stuff for people who have more than
24 >> one slot of LLVM enabled since different slots build-depend on colliding
25 >> packages.
26 >
27 > Hmm, that's unfortunate, because putting --with-bdeps=n in
28 > EMERGE_DEFAULT_OPTS is not good for --depclean. I'll have to think about
29 > a better way to handle this case. We've already got a bug open for this
30 > sort of situation here:
31 >
32 > https://bugs.gentoo.org/show_bug.cgi?id=427938
33
34 For people who want --with-bdeps disabled for installation actions, and
35 --with-bdeps enabled for removal actions like --depclean, putting
36 --with-bdeps=n in EMERGE_DEFAULT_OPTS is going to do the wrong thing for
37 removal actions. So, we'll need to introduce some kind of flag that can
38 be used to disable the automatic --with-bdeps behavior. For example,
39 when can introduce --with-bdeps-auto=n as a means to disable the
40 automatic --with-bdeps behavior.
41 --
42 Thanks,
43 Zac