Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Pre-GLEP RFC: Automated enforcing of REQUIRED_USE constraints
Date: Sun, 09 Jul 2017 07:59:59
Message-Id: 1499587186.1815.3.camel@gentoo.org
In Reply to: Re: [gentoo-dev] Pre-GLEP RFC: Automated enforcing of REQUIRED_USE constraints by Daniel Campbell
1 On sob, 2017-07-08 at 15:47 -0700, Daniel Campbell wrote:
2 > On 07/08/2017 03:29 PM, Michał Górny wrote:
3 > > On sob, 2017-07-08 at 15:21 -0700, Daniel Campbell wrote:
4 > > > On 07/08/2017 02:43 AM, Michał Górny wrote:
5 > > > > Hi, everyone.
6 > > > >
7 > > > > I think the affairs have settled enough and I've finished filling
8 > > > > in the pre-GLEP for REQUIRED_USE auto-enforcing. It's got all
9 > > > > the algorithms, rationale and separated reference implementation.
10 > > > >
11 > > > > If there are no major concerns raised, I will soon start working
12 > > > > on writing an optimized implementation for pkgcore/pkgcheck
13 > > > > and integrating the verification algos with the CI.
14 > > > >
15 > > > > The pre-GLEP for review is here:
16 > > > >
17 > > > > https://wiki.gentoo.org/wiki/User:MGorny/GLEP:ReqUse
18 > > > >
19 > > > > TIA.
20 > > > >
21 > > >
22 > > > This has grown quite a bit since first recommended! Great job so far.
23 > > > Forgive me if I missed something, but wouldn't it be helpful to the user
24 > > > to let them know when automatically choosing for them? A single line in
25 > > > a logfile, einfo output, whatever, would be useful for people wondering
26 > > > how certain packages got pulled in. Users will continue to get errors if
27 > > > the constraints aren't met (or are wrong), but where will information go
28 > > > that indicates the automatic solver's choice? You and I can read an
29 > > > ebuild and guess from the dep spec, but what will a user look at?
30 > > >
31 > > > I searched the GLEP page for "log", "einfo", and "output" with no
32 > > > results. If I've missed something please let me know.
33 > > >
34 > > > Thanks for the work that's been put into this so far.
35 > > >
36 > >
37 > > Indeed I have entirely skipped the user output problem, and left it
38 > > purely for package manager's design choice. Do you really feel like we
39 > > need to explicitly specify it? I think it's best if package manager
40 > > authors decide how to best fit it into whatever output the PMs already
41 > > have.
42 > >
43 > >
44 >
45 > I just considered it helpful, that's all. I hadn't considered the PMS
46 > vs. PM devs perspective. Do we plan to support some way for users to get
47 > such output from Portage?
48 >
49
50 The original proposal suggested marking the flags with some symbol
51 indicating that their values were changed, and possibly even grouping
52 them by inferences (like 'foo => {bar}'). But I don't know if Portage
53 will eventually get more than the first one.
54
55 --
56 Best regards,
57 Michał Górny

Attachments

File name MIME type
signature.asc application/pgp-signature