Gentoo Archives: gentoo-dev

From: Ulrich Mueller <ulm@g.o>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] Re: RFD: split out some functions from eutils.eclass?
Date: Wed, 11 Jan 2012 22:11:36
Message-Id: 20238.2218.112220.60902@a1i15.kph.uni-mainz.de
In Reply to: [gentoo-dev] RFD: split out some functions from eutils.eclass? by Ulrich Mueller
1 >>>>> On Sat, 7 Jan 2012, Ulrich Mueller wrote:
2
3 > Some functions in eutils.eclass address very special tasks, so I
4 > wonder if they shouldn't be split out to dedicated eclasses:
5
6 > - CDROM functions (cdrom_get_cds, cdrom_load_next_cd).
7 > These are used by some 40 ebuilds only, most of them in games-*.
8 > Maybe they could be moved to a dedicated cdrom.eclass?
9
10 A draft version for a new cdrom.eclass is attached. It contains the
11 cdrom_* functions split out from eutils.eclass. Mike says that the new
12 eclass could be maintained by the games team.
13
14 Please review.
15
16 As far as I can see, eutils.eclass doesn't need to inherit
17 portability.eclass any more, because it was only used in the cdrom
18 functions for get_mounts(). It would be nice if somebody could
19 double-check this.
20
21 (I don't include a diff for eutils.eclass, since apart from the change
22 in inherit it would be some 200 removal lines only.)
23
24 > - unpack_pdv() is used by one ebuild in the tree only.
25
26 Mike told me that it should stay together with unpack_makeself(),
27 so I won't touch this one.
28
29 Ulrich

Attachments

File name MIME type
cdrom.eclass text/plain

Replies