Gentoo Archives: gentoo-portage-dev

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

Replies