1 |
Would it be wrong for Gentoo to settle for a standardized configuration |
2 |
file format and implement it in the distro? |
3 |
|
4 |
I think the current situation is a mess and if we (through patches or |
5 |
upstream changes) could rely on a single configuration format (xml |
6 |
mabey) a lot of nice features could be engineered. |
7 |
|
8 |
1. A standard parser library API for all apps. |
9 |
2. Same frontend usable for all configurations. |
10 |
3. A final solution to all config file upgrade problems. |
11 |
|
12 |
I know that this is a little outside the scope of Gentoo or Portage |
13 |
development, but the whole point of using OSS is the ability to mess |
14 |
with the source. I see no reason why Gentoo can not be a leader in |
15 |
distributon innovations... |
16 |
|
17 |
-John |
18 |
|
19 |
On Fri, 2004-02-20 at 12:03, Marius Mauch wrote: |
20 |
> On 02/07/04 Seemant Kulleen wrote: |
21 |
> |
22 |
> > On Sat, 2004-02-07 at 20:06, Steven Elling wrote: |
23 |
> > > On Wed, 2004-02-04 at 13:48, purslow@×××××××××.ca wrote: |
24 |
> > > > recently, i re-emerged 'baselayout', |
25 |
> > > > which caused a set of candidates to be created for 'etc-update'. |
26 |
> > > > most were innocuous or easily understood, |
27 |
> > > > but one was for /etc/fstab , which seems both dangerous & |
28 |
> > > > unjustified. |
29 |
> > > |
30 |
> > > I agree! |
31 |
> > > |
32 |
> > > This has been brought to the attention of the devs already, |
33 |
> > > discussed at length, debated at length, and eventually ignored as if |
34 |
> > > it is not a problem. |
35 |
> > |
36 |
> > Not so. It has been discussed and debated, yes, but not ignored. The |
37 |
> > only reason for the perceived inaction is really the absence of an |
38 |
> > acceptable solution. I'm toying with the notion of creating the .cfg |
39 |
> > file using the user's installed fstab file so that the diff is against |
40 |
> > a locally known quantity rather than a blind default quantity. I'm |
41 |
> > not sure on the pros and cons and haven't given the thought much air |
42 |
> > time for discussion yet, so I guess consider this the official |
43 |
> > throwing out. |
44 |
> |
45 |
> Just thinking about this, how about the following procedure: |
46 |
> - if a config file is installed the first time also let portage make a |
47 |
> backup to a safe place (say /var/db/pkg/cat/pkg-ver/config) |
48 |
> - whenever the file is target to be updated make a diff against the |
49 |
> original config file, replace the backup with the to-be-installed file |
50 |
> and use the diff to create the .cfg* file. |
51 |
> - Optionally ignore comments/cvs headers in the diff |
52 |
> |
53 |
> Maybe that's what you meant, just formalizing it a bit more ;) |
54 |
> |
55 |
> Marius |