Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: hwoarang@g.o
Subject: Re: [gentoo-dev] git-r3: initial draft for review
Date: Sat, 31 Aug 2013 07:26:48
Message-Id: 20130831092406.666da852@gentoo.org
In Reply to: Re: [gentoo-dev] git-r3: initial draft for review by Markos Chandras
1 Dnia 2013-08-31, o godz. 01:17:26
2 Markos Chandras <hwoarang@g.o> napisał(a):
3
4 > On 31 August 2013 00:37, Michał Górny <mgorny@g.o> wrote:
5 > > Hello, all.
6 > >
7 > > After a few days of thinking, discovering and working, here it is.
8 > > The first working draft of new git eclass codenamed 'git-r3'.
9 > >
10 > > First of all, the name is not final. I'm open to ideas. I'm open to
11 > > naming it 'git-r1' to put it in line with my other -r1 eclasses :).
12 > > I'd definitely like to avoid 'git-3' though, since that version-like
13 > > naming was a mistake as almost-'python-2' eclass shown.
14 > >
15 > > Secondly, it's not even final that there will be a new eclass. Most
16 > > likely I will commit it as a new eclass since that way is easier for us
17 > > but if you prefer I may try to get it and git-2 more API-friendly
18 > > and work on making it a almost-drop-in replacement. Since, after all,
19 > > internals have actually changed much more than the API.
20 > >
21 >
22 > Hi,
23 >
24 > I have no capacity to review the eclass right now (although I promise
25 > I will soon)
26 > but I was wondering why the whole eclass is inside the " if [[ !
27 > ${_GIT_R3} ]] " block.
28 > Is it so you can avoid inheriting the same eclass twice? I haven't
29 > seen that before
30 > so I was wondering if that's the only reason. If yes, then maybe this
31 > needs to be solved in PM scope instead?
32 > As in, prevent portage from inheriting the same eclass twice instead
33 > of handling this case in the eclass itself.
34
35 Yep, it's exactly that. All my new eclasses use that, and vapier's use
36 rather some 'spank' serpentines. Plus mine have 'EXPORT_FUNCTIONS' out
37 of it, so wrapping them does not change export order.
38
39 I suggested that into EAPI [1] but it didn't get in so far. The issue
40 is that some eclasses may actually need to be sourced twice, e.g. due
41 to environment changing. Though they are nowhere near 'sane' then.
42
43 [1]:https://bugs.gentoo.org/show_bug.cgi?id=422533
44
45 --
46 Best regards,
47 Michał Górny

Attachments

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