1 |
Interesting suggestions, but to me your solution looks more complex than the |
2 |
status quo. Now, instead of just merging the files by hand, I have to: |
3 |
|
4 |
1) Manage another set of scripts in another place (/etc/user.d), which makes |
5 |
troubleshooting harder. |
6 |
|
7 |
2) Deal with another set of config files (If I'm reading your second |
8 |
paragraph correctly), which might break if a new ebuild adds or removes |
9 |
options that this config file must have. |
10 |
|
11 |
3) Worry that any time I update a package, one of the scripts that _was_ |
12 |
playing nicely will now be broken without giving me so much as a warning. |
13 |
|
14 |
If we used your proposal for '.modif' scripts, then updating a build might |
15 |
never warn us of the changes that _did_ take place, and _should_ be handled |
16 |
differently in the custom script. If we added the functionality to portage to |
17 |
warn us when a config script changed, then... well, we'd be back to where we |
18 |
started. |
19 |
|
20 |
Also, I'd challenge the claim that 85-90% of Gentoo users do not alter their |
21 |
init scripts. That may be true for Red Hat or Mandrake (though users of those |
22 |
do have to update /etc/sysconfig files instead, which isn't any better to me). |
23 |
|
24 |
To me, the attractive part about the way it works now is that it is simple |
25 |
and straightforward. I feel like I am in control of things when I update a |
26 |
package. It took me (and probably most people on this list) a minimal amount |
27 |
of time to learn the scheme, and now I rue the days when I used to spend |
28 |
hours debugging problems in Red Hat init scripts (only to have my fixes |
29 |
overwritten the next time I upgraded with RPM). |
30 |
|
31 |
I understand that the current way might slow you down if you're running a lot |
32 |
of services. But to me, that's a small price to pay for soundness of mind and |
33 |
simple elegance. |
34 |
|
35 |
Matt |
36 |
|
37 |
On Monday 11 March 2002 11:16 am, Yannick Koehler wrote: |
38 |
> Craig M. Reece wrote: |
39 |
> > On Mon, Mar 11, 2002 at 12:48:08PM -0500, Yannick Koehler spoke thusly: |
40 |
> >>Guys, |
41 |
> >> |
42 |
> >> not sure for anyone else but is init.d really need to be protected? |
43 |
> >> I mean does someone really change files in that directory (other than |
44 |
> >>adding or removing)? |
45 |
> >> |
46 |
> >> That dir should always get merged. It would also get really nice of |
47 |
> >> the portage could detect that no changes has been made to the file since |
48 |
> >>its installation and therefore merge it without any issues. |
49 |
> >> |
50 |
> >> Like if the protected config file's time were saved in a temp files |
51 |
> >> that portage would look into before merging to see if the date has or |
52 |
> >> not change since the last install. |
53 |
> > |
54 |
> > Yes it needs to be protected. I, for instance, have my own version of |
55 |
> > pcmcia in there that I don't want stepped on. Also, I have a couple of |
56 |
> > other custom scripts for things not in portage yet; and when they are in |
57 |
> > portage, I want to be able to compare the differences before using one |
58 |
> > or the other. |
59 |
> > _______________________________________________ |
60 |
> > gentoo-dev mailing list |
61 |
> > gentoo-dev@g.o |
62 |
> > http://lists.gentoo.org/mailman/listinfo/gentoo-dev |
63 |
> |
64 |
> The reasoning I have is that those are scripts, and not config files. |
65 |
> If ... instead of modifying pcmcia script for example like you |
66 |
> mentionned you were to cp pcmcia pcmcia.modif and rc-update add |
67 |
> pcmcia.modif default / rc-update del pcmcia default the system would |
68 |
> work and you'll never get concerned about the new pcmcia scripts. |
69 |
> |
70 |
> If you changes those scripts maybe it's even better to tell people about |
71 |
> your changes as they may get implemented such that the script itself |
72 |
> read a config files (like net.eth0) so that other people can re-use your |
73 |
> modifications. |
74 |
> |
75 |
> And maybe a user's scripts directory should exists, something like |
76 |
> /etc/user.d where people can move their custom scripts and the stuff |
77 |
> behind rc-update would got here first and if it doesn't found the script |
78 |
> then to /etc/init.d. |
79 |
> |
80 |
> Yannick Koehler |
81 |
> |
82 |
> _______________________________________________ |
83 |
> gentoo-dev mailing list |
84 |
> gentoo-dev@g.o |
85 |
> http://lists.gentoo.org/mailman/listinfo/gentoo-dev |