1 |
On Sun, 2003-09-07 at 10:19, Troy Dack wrote: |
2 |
> On Sun, 2003-09-07 at 15:59, Jan Krueger wrote: |
3 |
> > On Sunday 07 September 2003 03:08, Martin Schlemmer wrote: |
4 |
> > > Come on guys, think what is best for the *distro* (meaning, |
5 |
> > > what will work best for the other 90% of users, |
6 |
> |
7 |
> I'd say 95% of user, but that's just me :P |
8 |
> |
9 |
> > From my point of view the best for the 90% of users in this case (make.conf) |
10 |
> > would be: |
11 |
> > 1. a very precise documentation with examples about the user settable things |
12 |
> > for make.conf thats accessable via a standard command, like man make.conf or |
13 |
> > info make.conf |
14 |
> |
15 |
> How imprecise and unaccessible is: |
16 |
> |
17 |
> nano -w /etc/make.conf |
18 |
> |
19 |
> All settings are commented, and commented well, and it's available using |
20 |
> standard commands (you could even use ed or a combination of cat, less, |
21 |
> head & tail if you really wanted to) |
22 |
> |
23 |
> > 2. a clean, easy to read configuration file without mess and things the user |
24 |
> > doesnt care about so it is easy for the user (even easier for tools) to |
25 |
> > change exactly the setting the user wants to change because it is easier to |
26 |
> > identify the place where the change must happen and easier to identify the |
27 |
> > values that already are there. |
28 |
> |
29 |
> OK, I've installed Gentoo on my boxes that many times I know the process |
30 |
> pretty much off the top of my head, however I can't remember all of the |
31 |
> FEATURES that are available, having them listed in make.conf is |
32 |
> beneficial. |
33 |
> |
34 |
> > You may try this yourself: |
35 |
> > nano -w make.conf as it gets installed |
36 |
> > |
37 |
> > and |
38 |
> > nano -w make.conf with just the settings you actually use, everything else |
39 |
> > thrown out. |
40 |
> |
41 |
> grep -v "#" /etc/make.conf|wc -l && wc -l < /etc/make.conf |
42 |
> 31 |
43 |
> 290 |
44 |
> |
45 |
> Fair enough, I've got 259 lines of comments, I can live with that, the |
46 |
> file isn't confusing and the options are grouped sensibly. |
47 |
> |
48 |
> It seems to me to be fairly standard Linux practice to provide a well |
49 |
> commented config file that can be modified slightly as suited, eg: |
50 |
> |
51 |
> grep -v "#" /etc/squid/squid.conf | wc -l && wc -l < |
52 |
> /etc/squid/squid.conf |
53 |
> 258 |
54 |
> 3231 |
55 |
> |
56 |
> So, I've got nearly 3000 lines of comments in my squid.conf, I bet you |
57 |
> won't see anyone suggesting that squid gets installed with an empty |
58 |
> config file and you have to roll one by hand. |
59 |
> |
60 |
> > Which one is easier to modify? |
61 |
> > Especially try to change a FEATURE setting. Or even better, let a new gentoo |
62 |
> > user try to change a FEATURE setting. |
63 |
> > |
64 |
> > If the user is not sure about the variables/values to put there the user may |
65 |
> > at anytime suspend nano or open another terminal or use another virtual |
66 |
> > console and execute man make.conf |
67 |
> |
68 |
> So it is easier to explain to a newbie that they need to switch to a |
69 |
> new virtual console, start up the documentation viewer (man, less, |
70 |
> lynx), read through the docs, switch back to the other virtual console, |
71 |
> make a few changes in the file, lather, rinse, repeat. |
72 |
> |
73 |
> I'll differ with your opinion here, I think it is much easier to have a |
74 |
> well commented file (same as reading code, if the comments are in the |
75 |
> code, it's easier than referring to a description of it and trying to |
76 |
> read the code). |
77 |
> |
78 |
> > most users probably use just 4 or 5 settings: |
79 |
> > use flags |
80 |
> > c(xx) flags |
81 |
> > sync |
82 |
> > mirrors |
83 |
> > features |
84 |
> |
85 |
> True, those are probably the only ones people set, but they are some of |
86 |
> the most important ones in the system. |
87 |
> |
88 |
> Having a config file that lists only the variables to be changed will |
89 |
> lead to people swapping conf files ("Here, use this one it is all set |
90 |
> and works well for me") which could in turn lead to more problems |
91 |
> because people have settings enabled/disabled and they don't know why, |
92 |
> or what those things do. |
93 |
> |
94 |
> > the rest is for the majority of users just useless in make.conf. So my |
95 |
> > expirience (and assumption). |
96 |
> > |
97 |
> > |
98 |
> > So i strongly support: |
99 |
> > On Saturday 06 September 2003 23:48, Steven Elling wrote: |
100 |
> > > Requiring portage updates to make.conf at all has always bugged me. The |
101 |
> > > file is meant to contain custom settings for portage and to append to or |
102 |
> > > override variables in make.globals and the defaults. It should not hold |
103 |
> > > all the documentation for make.conf. It should not hold all the |
104 |
> > > defaults... that's what make.globals and the defaults are for. |
105 |
> > > |
106 |
> > > Why is all the documentation on make.conf in make.conf anyway? Shouldn't |
107 |
> > > it be in make.globals or better yet the man page? |
108 |
> > > |
109 |
> > > make.conf is used for system customization and, as such, portage should |
110 |
> > > leave it alone. When portage is installed on the drive for the first time |
111 |
> > > it should not create make.conf. Portage should leave it up to the |
112 |
> > > admin/user of the box to create the file. |
113 |
> > Thats sound like a clean solution to me. Thats the way it should be. |
114 |
> |
115 |
> Given that a very, very, very large portion of the questions that get |
116 |
> fielded on #gentoo are the result of a significant lack of RTF'ing M I |
117 |
> don't think having an empty file is the way to go, #gentoo would just |
118 |
> degenerate into "RTFM" responses (of which I am pleased to say that |
119 |
> generally there are not *that* many). |
120 |
> |
121 |
> [see above re: swapping of config files as well] |
122 |
> |
123 |
> > I refuse to update my customised and over the time grown settings in |
124 |
> > /etc/make.conf with /etc/make.conf with comments for things i never intend to |
125 |
> > use. That doesnt make any sense to me to put such useless comments with |
126 |
> > documentation that has to be in the man page anyway in a file thats so |
127 |
> > important for my system. |
128 |
> > I refuse to let anything automaticly update this file. |
129 |
> > I refuse to touch this file until there is a strong need to edit it because i |
130 |
> > want a feature/useflag or whatever. So then, and only then, i edit this file |
131 |
> > or let a tool edit it (eg: euse). |
132 |
> |
133 |
> etc-update, merge files, half a dozen l's, a couple of r's, the odd eb |
134 |
> and it's all done, new FEATURES merged in, old settings left intact. |
135 |
> |
136 |
> Not hard, plus I am now aware of what new things are available. |
137 |
> |
138 |
> > If a change, because of a new advanced portage version, to my existing |
139 |
> > settings is needed, this change should be delayed as other software does it: |
140 |
> > mark the old thing as deprecated and warn the user for some time|versions to |
141 |
> > give the user time to get informed and do the change manually or by using a |
142 |
> > dedicated tool. |
143 |
> > |
144 |
> |
145 |
> "Gentoo moves pretty fast; if you don't stop and look around once and |
146 |
> awhile, you could miss out." |
147 |
|
148 |
Amen |
149 |
|
150 |
|
151 |
-- |
152 |
|
153 |
Martin Schlemmer |
154 |
Gentoo Linux Developer, Desktop/System Team Developer |
155 |
Cape Town, South Africa |