Gentoo Archives: gentoo-dev

From: NP-Hardass <NP-Hardass@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [RFC] New eclass: mate
Date: Wed, 13 Apr 2016 16:22:11
Message-Id: 570E7214.8040006@gentoo.org
In Reply to: Re: [gentoo-dev] [RFC] New eclass: mate by Alexis Ballier
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA256
3
4 On 04/13/2016 12:19 PM, Alexis Ballier wrote:
5 > On Wed, 13 Apr 2016 08:55:56 -0400 NP-Hardass
6 > <NP-Hardass@g.o> wrote: [...]
7 >> The idea was partly due to consistency. Rather than calling
8 >> mate_this gnome2_that, it'd provide one namespace. Additionally
9 >> as mentioned in my initial email, since GNOME and MATE aren't
10 >> always in synch, if the gnome2 eclass chooses to change
11 >> something, and it's better that mate eclass stays with what we
12 >> have, all I have to do is fill in the stub, and all ebuilds
13 >> retain their current implementation. Otherwise, I'd have to mass
14 >> edit all ebuilds to replace the offending gnome2_ with mate_.
15 >
16 > yep, makes sense
17 >
18 >> Furthermore, there was a discussion a long time ago about how
19 >> functions shouldn't be called without an explicit inherit. That
20 >> means that even if the mate eclass uses gnome2, if I opt to call
21 >> gnome2 directly in the ebuild, I have to explicitly inherit it
22 >> (which mostly defeats the purpose of inheriting it in the mate
23 >> eclass).
24 >
25 > nah, this isnt true in your case: you can define mate.eclass' API
26 > to always include gnome2.eclass, making it ok to use gnome2
27 > functions by inheriting only mate.eclass. this means you can never
28 > drop gnome2.eclass from mate.eclass though, which may not be
29 > desired
30 >
31 I'm unfamiliar with this. Do you have a reference that I can look at?
32 >
33 >> This has an added bonus, which is that the gnome2 eclass inherits
34 >> gnome.org, so I have to make sure to re-inherit mate-desktop.org
35 >> whenever gnome2 is (re)inherited to prevent all of variables like
36 >> SRC_URI from being overwritten. Hope that I'm conveying that
37 >> logic adequately.
38 >
39 > ok, maybe you could add a comment that no ebuild should inherit
40 > both gnome2 & mate eclasses then
41 >
42
43
44 - --
45 NP-Hardass
46 -----BEGIN PGP SIGNATURE-----
47 Version: GnuPG v2
48
49 iQIcBAEBCAAGBQJXDnIUAAoJEBzZQR2yrxj7WLgP/0JoEMUrbc3DjYP2SVpUM5F1
50 slgblQuY+2ElDpoDIoSU+GY3aSv7kv1WnH8gPRPTOYsW1XSmjXwSVbAeh0s7g8fR
51 779Kl3aKxHQiaNmSv4wCoBTUO3AXQrC168C13h3PebVnPVUg1df/pILbfR9vAkhR
52 VLL/9A3WVBLb980gywJpiEPWZC7pBIAWdD6jHdhGW9u75k4Q/Ro6jUN+NQYjexr5
53 S0q0CTkxJw3nJA/K+VxnLltyUoJ7i7V3MoQM4hxebTDxev6ni3rahAK7XU00Itgi
54 r8nAOlBbporrl2pnX/xm6HEZm14oRPo8z9Cm7Te6t7eZODtzIZlnRJkqxVVHPRWN
55 dhO9m8u9FpkpTsTWE2eXX9Xqwx1WLXNWxjrkiGV7urEFLI66x05pMm+JLAoyEMB1
56 i1ep8DuXOcTaZPQbiPOoSEcdi79pJ9kClwyRyzVCPca/Pz0n23N/OqSNVa2FTCLT
57 BZ5YByFO9iG90qSqCmbbjygjo51yhQJn3WqS1Kmk8N9Pdj314VQI8anWesL8Q6Ua
58 j9+QtIrmZ727DiLELrox/RvZ5nkr2UuO931k3iCeNSTLmhlPBSrNlQIzFL2snwp3
59 Y0RGgI0QUSc3l/BOP/aPhPTvPgk8JH1zjPRR5tvAPgAMoOU9JcjLDtZA2puNhp+B
60 UchoZyvlfnF+7rOWzcLB
61 =kgsm
62 -----END PGP SIGNATURE-----

Replies

Subject Author
Re: [gentoo-dev] [RFC] New eclass: mate Alexis Ballier <aballier@g.o>