Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] Staging 'einstalldocs' for EAPI 6
Date: Tue, 20 Aug 2013 11:01:50
Message-Id: 20130820130134.200c50af@gentoo.org
1 Hello,
2
3 Due to the widespread breakage in the tree noted in bug #480892 [1],
4 and mis-design of multilib-minimal.eclass, we'd like to put some more
5 work into getting einstalldocs() ready for EAPI 6.
6
7 When it's mostly defined, we'd like to backport it to eutils.eclass so
8 that we could use it to fix the existing breakages. But for that, we'd
9 really prefer if we had a final spec for it so that the EAPI switch
10 could be as simple as disabling the function in eutils.
11
12 Therefore, I'd like to open a final discussion for the features set
13 that is intended to be included in it, and it's name.
14
15 [1]:https://bugs.gentoo.org/show_bug.cgi?id=480892
16
17
18 Future EAPI bug: https://bugs.gentoo.org/show_bug.cgi?id=459692
19
20
21 1. Name
22
23 - einstalldocs
24
25 -- probably the least confusing one, consistent with emake
26
27 - edocs
28
29 -- but what does it do to the docs?
30
31 - dodocs
32
33 -- do* prefix suggests it accepts list of files like doins,
34
35 -- single-letter difference from 'dodoc' is confusing
36
37 - dodoc (without arguments)
38
39 -- two different behaviors of a single function -- confusing
40
41 -- wouldn't be feasible for backporting
42
43
44 2. Support for HTML_DOCS
45
46 https://bugs.gentoo.org/show_bug.cgi?id=468310
47
48 It's used consistently in a few eclasses. if we put it into
49 the default, we can replace the eclass implementations with this one.
50
51
52 3. Support DOCS=() / DOCS='' to disable dodoc
53
54 https://bugs.gentoo.org/show_bug.cgi?id=463736
55
56 Well, this one is mostly what the bug is about. I think we should just
57 do it. Implementation could be discussed a bit though.
58
59 For example, hasufell has suggested checking ${DOCS// /} to support
60 DOCS=' ' as well. IMO we shouldn't be supporting such a weird
61 mistakes.
62
63
64 4. Globbing support in DOCS array
65
66 https://bugs.gentoo.org/show_bug.cgi?id=394211
67
68 radhermit suggested this to have equivalent set of features in DOCS
69 as scalar and DOCS as array. IMO it's PITA to implement and not worth
70 the effort.
71
72
73 5. Appending to DOCS
74
75 https://bugs.gentoo.org/show_bug.cgi?id=449806
76
77 That is, ability to install default docs + listed files. I doubt that
78 it's worth the effort, especially for einstalldocs.
79
80
81 What are your thoughts?
82
83 --
84 Best regards,
85 Michał Górny

Attachments

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

Replies