Gentoo Archives: gentoo-dev

From: Michael Mol <mikemol@×××××.com>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] About using a CONFIGURATION (or SETUP) file under /usr/share/doc for configuration information
Date: Tue, 08 Jan 2013 01:36:23
Message-Id: CA+czFiAG=+h5UUdDAK1=7MPUmQo5LKqR6ozqzxHANfrd8wuw=A@mail.gmail.com
In Reply to: Re: [gentoo-dev] About using a CONFIGURATION (or SETUP) file under /usr/share/doc for configuration information by Zac Medico
1 On Sun, Jan 6, 2013 at 8:54 PM, Zac Medico <zmedico@g.o> wrote:
2 > On 01/06/2013 05:36 PM, Michael Mol wrote:
3 >>
4 >> On Jan 6, 2013 8:32 PM, "Zac Medico" <zmedico@g.o
5 >> <mailto:zmedico@g.o>> wrote:
6 >>>
7 >>> On 01/06/2013 01:04 AM, Ralph Sennhauser wrote:
8 >>> > On Fri, 4 Jan 2013 23:34:59 -0600
9 >>> > Donnie Berkholz <dberkholz@g.o <mailto:dberkholz@g.o>>
10 >> wrote:
11 >>> >
12 >>> >> On 10:26 Sat 22 Dec , Pacho Ramos wrote:
13 >>> >>> Hello
14 >>> >>>
15 >>> >>> After seeing:
16 >>> >>> https://bugs.gentoo.org/show_bug.cgi?id=440214
17 >>> >>>
18 >>> >>> Looking to a lot of its blockers shows that we are using "elog"
19 >>> >>> messages for informing people about configuration (like pointing
20 >>> >>> people to external links to get proper way of configuring things,
21 >>> >>> tell them to add to some system groups...). I thought that maybe
22 >>> >>> this kind of information could be simply included in a canonical
23 >>> >>> file under /usr/share/doc/ package dir called, for example,
24 >>> >>> CONFIGURATION or SETUP. We would them point people (now with a news
25 >>> >>> item, for the long term provably a note to handbook to newcomers
26 >>> >>> would be nice) to that file to configure their setups. The main
27 >>> >>> advantages I see:
28 >>> >>> - We will flood less summary.log ;)
29 >>> >>> - The information to configure the package is always present while
30 >>> >>> package is installed, now, if we remove merge produced logs, people
31 >>> >>> will need to reemerge the package or read directly the ebuild
32 >>> >>>
33 >>> >>> What do you think?
34 >>> >>
35 >>> >> Bikeshedding ... would go with README.gentoo, because people are
36 >>> >> already used to looking for README files. Every time we can eliminate
37 >>> >> Gentoo-specific weirdness, we should.
38 >>> >>
39 >>> >
40 >>> > See the documentation for README.Debian[1], most importantly the
41 >>> > example. ;)
42 >>> >
43 >>> > I'd say we should handle it the same as Debian does.
44 >>>
45 >>> README.gentoo sounds good to me.
46 >>>
47 >>> > What could we possibly gain from doing it differently?
48 >>>
49 >>> Does Debian have a postinst message, like the proposed eclass would
50 >>> generate? Do you agree that a postinst message is desirable feature?
51 >>>
52 >>> > [1] http://www.debian.org/doc/manuals/maint-guide/dother.en.html#readme
53 >>> >
54 >>> --
55 >>> Thanks,
56 >>> Zac
57 >>>
58 >>
59 >> If we had README.gentoo, I'd love it if Portage alerted me as those
60 >> files changed.
61 >
62 > Even if it's just whitespace or formatting changes? Maybe it's better to
63 > let the ebuild do version comparisons and decide whether to generate a
64 > message based on that.
65
66 I see two solutions to that:
67
68 1) Define a format for the file, so that substantive difference can be
69 programmatically discerned from non-substantive differences. I don't
70 have a good proposal for a particular format.
71
72 2) Make it so that an author of a README.gentoo file is well aware
73 that any change he makes will potentially annoy all his users if the
74 change isn't substantive.
75
76 Frankly, (2) seems entirely reasonable. And at the same time, being
77 able to look at version history for README.gentoo files would be
78 extraordinarily enlightening.
79
80 --
81 :wq

Replies